Datalog Disassembly

Originally published on

29th USENIX Security Symposium, USENIX Security 2020, August 12-14, 2020 (distinguished paper)

Antonio Flores-Montoya and Eric Schulte, GrammaTech Inc.

Disassembly is fundamental to binary analysis and rewriting. We present a novel disassembly technique that takes a stripped binary and produces reassembleable assembly code. The resulting assembly code has accurate symbolic information, providing cross-references for analysis and to enable adjustment of code and data pointers to accommodate rewriting. Our technique features multiple static analyses and heuristics in a combined Datalog implementation. We argue that Datalog’s inference process is particularly well suited for disassembly and the required analyses. Our implementation and experiments support this claim. We have implemented our approach into an open-source tool called Ddisasm. In extensive experiments in which we rewrite thousands of x64 binaries we find Ddisasm is both faster and more accurate than the current state-of-the-art binary reassembling tool, Ramblr.

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.


Flores-Montoya PDF

Flores-Montoya Paper (Prepublication) PDF

View the slides

Flores-Montoya PDF

Contact Us

Get a personally guided tour of our solution offerings. 

Contact US