Static Analysis & Decompilation
Inspecting strings, imports, cross-references, and decompiled pseudocode to map program intent.
Key Techniques: Finding main() via libc_start_main, rebuilding structs, and isolating key verification routines.
Reverse engineering asks you to understand compiled programs—ELF, PE, Mach-O, Android APKs, WebAssembly, .NET, or custom VMs—without original source code. You combine static disassembly/decompilation with dynamic instrumentation and SMT constraint solving to uncover secret checks and flag generators.
Inspecting strings, imports, cross-references, and decompiled pseudocode to map program intent.
Key Techniques: Finding main() via libc_start_main, rebuilding structs, and isolating key verification routines.
Running binaries under debuggers or hooking frameworks to inspect live registers and decrypted buffers.
Key Techniques: Conditional breakpoints, patching anti-debug checks (ptrace/IsDebuggerPresent), and Frida runtime hooks.
Modeling complex math constraints as equations and letting solvers compute valid inputs automatically.
Key Techniques: z3-solver bitvector modeling and angr path exploration for branch-heavy crackmes.
Unpacking UPX/custom crypters, untangling control-flow flattening, and disassembling custom bytecode.
Key Techniques: Dumping memory at OEP (Original Entry Point), scripting IDAPython/Ghidra headless analyzers, and lifting VM opcodes.
Decompiling managed runtimes where rich metadata and bytecode often survive compilation.
Key Techniques: jadx for Android APK/DEX, dnSpy/ILSpy for .NET, pyinstxtractor/uncompyle6 for PyInstaller, and wasm2c.
Triage first: run file, strings, ldd/objdump, and Detect It Easy (DIE) to spot language, packer, and compiler.
Open in Ghidra/IDA/Binary Ninja and locate string references like "Correct" or "Wrong" to jump straight to logic.
Rename functions and variables aggressively—good naming turns unreadable decompiler output into clear pseudocode.
Verify tricky bitwise transforms dynamically in GDB or x64dbg instead of guessing by hand.
When facing 200+ arithmetic checks, extract constraints into a Python z3 script rather than inverting manually.
from z3 import *
s = Solver()
chars = [BitVec(f'c{i}', 8) for i in range(3)]
s.add(chars[0] ^ 0x42 == 0x21)
s.add(chars[1] == ord('t'))
s.add(chars[1] + chars[2] == 0xda)
if s.check() == sat:
m = s.model()
print(''.join(chr(m[c].as_long()) for c in chars)) # "ctf"SMT solvers turn tedious algebraic flag checks into millisecond automated solutions.
| Challenge / Track | Platform | Level | Focus |
|---|---|---|---|
| Beginner Crackmes (Level 1-2) | Crackmes.one | Beginner | Static analysis and simple XOR/string checks |
| Reverse Engineering Track | picoCTF | Beginner | Assembly reading, GDB, and Python bytecode |
| Flare-On Annual Archive | Mandiant FLARE | Advanced | Real-world malware-grade Windows, VM, and obfuscation puzzles |
| Reversing Category | Root-Me | Intermediate | ELF, PE, Android, and anti-debug progression |
Never rely on client-side obfuscation to protect secrets or licensing logic; move sensitive verification server-side and use reverse engineering skills to rapidly dissect real malware payloads during incident response.