$ cat writeup.md…
$ cat writeup.md…
Hack.lu2026
Task: Reverse an IL2CPP PE whose metadata is damaged in many places and whose input checker is split across native stage methods. Solution: Trace method pointers and byte dispatchers, decode usage tokens into surviving string-literal offset pairs, then verify a formatted candidate through all checked stages.
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
I sawed this boat metadata in half many pieces, you can still enter the flag though :)
An IL2CPP Windows program and its damaged global-metadata.dat implement a staged flag-input checker. Recover the validation logic without needing to repair and execute the program.
The PE is a 64-bit IL2CPP binary. Its startup trampoline invokes Program.Main, but that trampoline is not itself the validator. The module method-pointer array starts at PE file offset 0x9e3d80; pointer 257*n leads to the dispatcher for Stage<n> for stages 0–34. Program.Main is at RVA 0x381670. Each of stages 0–33 reads one character, chooses one of 256 branches, resolves an IL2CPP string-literal usage token, and tests the managed string's length at object offset 0x10 against 0xa. On a match it advances to the next stage. It does not compare the input character to the literal's contents.
Although the metadata header and many internal regions are corrupted, its string-literal offsets are recoverable locally: 32-bit cumulative offsets begin at file offset 0x20c, and literal data begins at 0xd6c8. For a token in the 0x8....... class, the literal index is (token & 0x0fffffff) >> 1. If adjacent offset entries remain intact, their difference gives the literal length. The safe rule is to reject invalid/out-of-range intervals rather than treat corrupted offsets as evidence.
...
$ grep --similar