Table of Contents
Concepts
Debuggers, decompilers and disassemblers are a wide topic. The amount of options, their roles and preferences is quite huge so here I gather my knowledge about them.
Debugger vs decompiler vs disassembler
| Tool | Purpose | Example |
|---|---|---|
| Debugger | Runs a program step-by-step and lets you inspect its state | GDB, LLDB, WinDbg |
| Decompiler | Tries to convert compiled/machine code back into a higher-level language | Ghidra, IDA, RetDec |
| Disassembler | Converts machine code into assembly instructions | objdump, Ghidra, IDA |
| Additionally, there are also “Assembly Editors” which can edit assembly code. For the sake of clarity, I will include them under “Disassembler” mark. |
Static vs dynamic analysis
Static analysis is used when you want to understand a program’s capabilities without executing it, such as finding suspicious code or functions. Dynamic analysis is used when behavior is unknown or hidden, because it shows what the program actually does while running. Analysts often combine both for better results.
Tools
| Tool | Type | Analysis | Languages | Platform | Usage |
|---|---|---|---|---|---|
| dnSpy | Debugger, Disassembler | Both | C#, VB | Windows | Cascade, Support |
| GDB | Debugger | Dynamic | C, C++ | Linux | |
| x64dbg | Debugger | Dynamic | C, C++, Rust | Windows | Shoppy |
| Ghidra | Debugger, Decompiler, Disassembler | Both | Versatile | Versatile | Shoppy |
| Immortal Debugger | Debugger, Disassembler | Dynamic | C/C++ | Windows | |
| Procmon | System monitoring, Dynamic analysis | Dynamic | - | Windows | Full windows privilege escalation checklist, Shoppy |
| LLDB | Debugger | Dynamic | Versatile | Mac | |
| Visual Studio | Debugger | Dynamic | C, C++, C# | Windows | |
| IDA Pro | Debugger, Decompiler, Disassembler | Both | Versatile | Versatile | |
| Binary Ninja | Debugger, Decompiler, Disassembler | Both | C, C++, Rust, Go | Windows, Linux, Mac | |
| Capstone | Disassembler | Static | Assembly | Windows, Linux, Mac | |
| OllyDbg | Debugger, Disassembler | Dynamic | C, C++ | Windows | |
| Radare2 | Debugger, Disassembler | Both | C, C++, Rust, Go | Versatile | |
| JADX | Decompiler | Static | Java, Kotlin | Versatile | |
| Frida | Dynamic Instrumentation | Dynamic | Java, C, Swift | Versatile | |
| dotPeek | Decompiler | Static | C# | Windows |
I sorted those tools by my previous expiriences with them, linking additional notes so you might have a better form of reference.
Even tho IDA Pro and Ghidra are often most popular, from my expirience it it much better to look for the tool that specializes in a given language that the program you want to look into operates in.
Some debuggers can also extend their capabilities with plugins, for example GDB with PEDA (Python Exploit Development Assistance for GDB).
I also included some additional tools that have similar uses, but not quite.