Reverse Engineering
Reverse engineering is the process of analyzing compiled binaries to understand their functionality without access to source code. This skill is essential for malware analysis, vulnerability research, exploit development, and software security auditing.
Legal Considerations
How to Use This Section
Each page stands on its own as reference material, so read the one that matches the problem in front of you rather than working through all eleven in order. Pages 1 to 5 establish the vocabulary the later pages assume: registers and calling conventions, disassembly and string-level reconnaissance, debugger control, assembly idioms, and decompiler output. Pages 6 to 9 cover what changes when the binary is hostile or hostilely packaged: anti-debugging and virtual-machine checks, packed executables, kernel-mode code, and managed runtimes. Pages 10 and 11 change the assumptions rather than the target. AArch64 replaces x86-64 as the instruction set most shipped code actually uses, and Frida replaces the stopped process with one that keeps running while you watch it.
The section assumes you can read C and are comfortable on a command line. Every command is written to run against a binary you own or have signed off on; where a technique executes a sample, the page says so before the command does.
Tooling Across the Section
Tooling recurs across the page set in three groups. IDA Pro, Ghidra, Binary Ninja and radare2 disassemble: they turn machine code into assembly, names and cross-references. To stop a program and read its memory, use x64dbg on Windows, GDB with pwndbg on Linux, or WinDbg for the Windows kernel. Hex-Rays, the Ghidra decompiler, dnSpyEx for .NET, Vineflower for Java and CFR for class files from older JDKs recover a C-like approximation of the original. Pages give the exact invocation where their own task depends on one.
Where Reverse Engineering Applies
- Malware analysis: understanding what a sample does, and extracting its C2 domains and encryption keys.
- Vulnerability research: finding memory-safety and logic bugs in closed-source software you are authorised to test.
- Exploit development: mapping a target's mitigations and code paths so a proof of concept is reliable.
- Interoperability and licence checks: reading licence-validation and file-format code in order to interoperate with, audit or triage software you hold a licence for, recognising the check rather than defeating it.
Guide Contents
Fundamentals
Registers, calling conventions and process memory layout.
Static Analysis
Disassembly and reconnaissance without execution.
Dynamic Analysis
Debugger control on Windows and Linux.
Assembly
The instruction set and the shapes compilers emit.
Decompilation
Recovering readable pseudo-C from assembly.
Anti-Analysis
Debugger and virtual-machine detection.
Unpacking
Recovering code from packed executables.
Kernel Debugging
WinDbg against kernel-mode targets.
Managed Code
Decompiling .NET assemblies and Java bytecode.
AArch64
The register file, AAPCS64 call sites and the prologues compilers emit for ARM64.
Frida
Instrumenting a live process: attach versus spawn, interceptors, and what a hook proves.
Related Topics
YARA Rules
Turning the strings and structure you annotate into detection that survives a rebuild of the sample.
Binary Exploitation
Where reversing leads when the goal is a working exploit rather than an understanding of the code.
DFIR
Incident response and forensics, including the triage that decides which binaries are worth reversing at all.
Payload Development
Building the payloads that binary analysis is usually pointed at during an authorised internal engagement.