SMDA
A minimalist recursive disassembler library optimized for accurate Control Flow Graph recovery from memory dumps and various binary formats.
0 projects
By whyamas
About SMDA
SMDA is a recursive disassembler library built on Capstone. It recovers Control Flow Graphs (CFG) from PE, ELF, Mach-O files, .NET assemblies, raw DEX files, and arbitrary memory dumps. The tool produces a tree structure containing functions, basic blocks, and instructions. It performs optional analysis passes including symbol and label recovery for imports, exports, PDB, Go and Rust metadata, and Delphi VMTs, alongside string extraction and Windows API reference inference. SMDA prioritizes completeness over precision, employing aggressive function entry point discovery and linear gap scanning. It enforces a strict, IDA-style CFG model where instructions do not overlap and belong to exactly one function. The library supports Python 3.11+ and provides both a programmatic API and command-line scripts for batch analysis. It is used as a backend for tools like capa and MCRIT. While it supports multiple architectures including x86, x64, ARM64, 32-bit ARM, CIL, and Dalvik, it lacks backends for several other machine types such as MIPS, PowerPC, and RISC-V. The tool is designed to be deterministic, with output independent of the number of parallel workers, except for timeout-related behavior.
Summarised from the official page linked above.