7

7-1-cert.png

A Win32 desktop calculator. The .text code is a red herring — the real payload is x64 shellcode hidden inside the Authenticode certificate, mapped RWX and run from a window message handler

7-2-trigger.png

The shellcode is unlocked by a hidden calculator sequence: a divide-by-zero handler checks the last three results, and those digits build the key string

7-3-demod.png

The cert holds ~1000 tiny encrypted x64 modules under a custom OID. Each one is MD5(key‖id)-keyed keystream XOR, then de-interleaved by an LCG that keeps 1 byte and skips a few

7-4-bfs.png

The modules form a byte-labyrinth state machine (each wastes time on a sum(0..1e6) stall). Emulate them in Unicorn, fast-forward the stall, and BFS from the start state to the flag state

7-5-flag.png

Reaching state 0x1185 recovers the key FLAREON_ASN1_Labyrinth_Key_2026!; that module then decrypts the flag blob with the buffer the key left behind

t3mplat3s_asn_and_j1t_0h_my@flare-on.com