modders help / il2cpp dumper + export mapper
motd join the discord: /link6
inputlocal · nothing uploaded
pick a file, then press dump

drop both files at once or one at a time, then confirm with dump. apk / xapk / obb gets unpacked — metadata and libil2cpp.so are pulled out and routed to the right tab; a .so in slot 2 is mapped on the symbols tab too.

options
statusidle
waiting for a file
inputlocal · nothing uploaded

rebuilds the il2cpp_* export map on builds where the api was renamed to random tokens (il2cpp_init → nZXAVQ_init).

options
statusidle
waiting for a file
notes.txtwhy dumps fail

1 / the metadata isn't encrypted, the header is

strings sit in the clear but the Il2CppGlobalMetadataHeader is scrambled, so every offset is garbage. structural rescue kicks in: find the string table, then locate the type table by sliding a stride and checking the first two int32 of each record resolve to real identifiers. you get type names and namespaces, no members.

2 / it's a keystream, not a cipher

bytes 0-7 are always AF 1B B1 FA + version, and the file is full of NUL padding. inside a run of constant plaintext enc[i] == enc[i+period], so a repeating xor key up to 256 bytes comes out exact with one byte compare — no brute force. position-keyed streams (pos+c, c-pos, pos^c, pos*c) fall out of the 4 magic bytes alone.

3 / the strides don't match the version

v24.0 through v24.5 all write 24, but Il2CppMethodDefinition is 0x38 on 24.0/24.1 and 0x20 on 24.2+. nothing here is hardcoded per version. every record ends with a metadata token whose high byte is its table id — typedef 0x02, field 0x04, method 0x06, param 0x08, event 0x14, property 0x17 — so strides get measured by sliding until the id lands right, record after record.

the whole typedef layout then falls out of that one number, since every field is placed from the record end:

version  stride  flags  fieldStart  counts  token
 <=24.5   0x5C    0x20     0x24      0x44    0x58
 >=27     0x58    0x1C     0x20      0x40    0x54
 39       0x52    0x16     0x1A      0x3A    0x4E
                    |         |         |      |
             stride-60  stride-56  stride-24  stride-4

checked against all three, including a v39 build whose header uses 3-word (offset, size, count) descriptors instead of 2-word (offset, size). the width is detected by testing which reading makes the table offsets chain end to end, so post-v31 layouts work with no version table — and when count is there, strides come free.

4 / enum and const values are compressed

integral defaults are zigzag compressed varints (ReadCompressedInt32); floats and doubles are raw. read them fixed-width and every value doubles. caught against ground truth:

                       raw      correct
System.DayOfWeek.Saturday       12        6
System.KeyCode.Delete         -384      127   (encodes as 80 FE)
StringSplitOptions.RemoveEmptyEntries  2   1

the blob isn't fixed-width either — a byte-backed enum stores one byte per member, a float four. each width comes from the gap to the next dataIndex.

5 / it's inside a container you didn't unpack

split apks, obbs, xapk wrappers, or a packer that prepends a blob so the magic isn't at offset 0. zip central directories are read directly and the first 16 MB gets scanned for the magic.

6 / it's genuinely decrypted at runtime

aes, chacha, or a custom block cipher inside libil2cpp.so. no static tool wins and anything claiming otherwise is guessing. on a failed dump the diagnostics panel draws an entropy map in 32 KB samples — plaintext metadata sits at 4-6 bits/byte, a cipher pins it near 8.0 with a flat histogram. all red means stop. dump it out of memory instead:

// frida - grab metadata after il2cpp_init has decrypted it
Interceptor.attach(Module.findExportByName('libil2cpp.so', 'il2cpp_init'), {
  onLeave() {
    Process.enumerateRanges('r--').forEach(r => {
      try {
        if (Memory.readU32(r.base) === 0xFAB11BAF) {
          console.log('metadata @ ' + r.base + ' size ' + r.size);
          const f = new File('/data/local/tmp/global-metadata.dat', 'wb');
          f.write(Memory.readByteArray(r.base, r.size));
          f.close();
        }
      } catch (e) {}
    });
  }
});

then drop that file here. it's plaintext, and you get the full member-level dump.

what metadata alone can't give you

this is the format, not the tool, so it's worth knowing where the line is.

you get type names, namespaces, class/struct/enum/interface kind, type modifiers, base classes and interfaces (~95% resolve), field names, property names, event names, enum member names and values, method names, method modifiers, parameter names, tokens, vtable slots.

no field offsets or method RVAs. those live in Il2CppCodeRegistration / Il2CppMetadataRegistration inside libil2cpp.so.

no member type names. a field's typeIndex does not point at the same Il2CppType its class publishes as byvalTypeIndex — every field and parameter gets its own entry, because that struct also carries the member's attrs. measured on real builds: class-level refs resolve ~95%, member types ~0%. unresolved types print as T_0xNNNN, and the same id always means the same type, so it stays usable for grouping and hooking. pairing the .so closes all three gaps.

credits
larpex main dev

wrote most of it

Lace contributor

shared the symbol getting process

discord — discord