EN
ENNA

Capstone

๐Ÿงฌ Reverse Engineering ยท C

Capstone is a lightweight, multi-platform, multi-architecture disassembly framework. It provides a clean, simple API to disassemble binary code into human-readable assembly for x86 (16/32/64-bit), ARM, ARM64, MIPS, PowerPC, SPARC, SystemZ, XCore, M68K, TMS320C64x, M680x, and EVM architectures. Capstone is the disassembly engine embedded in many major security tools including Ghidra, radare2/rizin, Cutter, Binary Ninja, and dozens of others. Its design emphasizes thread safety, zero external dependencies, and rich detail extraction - each disassembled instruction includes operand details, register access information, and instruction groups. Bindings are available for Python, Java, Go, Ruby, Rust, OCaml, and many other languages, making it the standard building block for custom disassembly and binary analysis tools.

8.6kstars
1.7kforks
362issues
Updated 4d ago

Installation

pip (Python)

$ pip install capstone

brew (macOS)

$ brew install capstone

apt (Debian/Ubuntu)

$ sudo apt install libcapstone-dev

Use Cases

  • Building custom disassembly tools for specific binary analysis workflows
  • Extracting instruction-level details for automated binary analysis
  • Embedding disassembly in security tools and malware analysis pipelines
  • Cross-architecture disassembly in a single unified API
  • Teaching and learning assembly language across multiple architectures

Tags

disassemblermulti-archlibraryframeworkx86armarm64bpfethereumm0s65xxm680xm68kmipspowerpcreverse-engineeringriscvsecuritysparcsystemztms320c64xwebassemblyx86-64

Alternatives & Comparisons

More in Reverse Engineering