Datalog Disassembly

Antonio Flores-Montoya, Eric Schulte
6/7/2019
cs.PL

Official code: GrammaTech/ddisasm (886 stars, C++, AGPL-3.0, last commit 2026-11-05).

Abstract

Disassembly is fundamental to binary analysis and rewriting. We present a novel disassembly technique that takes a stripped binary and produces reassembleable assembly code.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

GrammaTech/ddisasmOfficial100%
AGPL-3.0

A fast and accurate disassembler

88672C++, PythonSep 13, 20183 weeks agoAGPL-3.0
analysisbinarybinary-analysisbinary-rewritingdisassembler+3 more

Similar Papers

Cite this paper

@article{floresmontoya2019datalog,
  title  = {Datalog Disassembly},
  author = {Antonio Flores-Montoya and Eric Schulte},
  year   = {2019},
  eprint = {1906.03969},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.03969}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1906.03969.svg)](https://codeofpaper.com/paper/1906.03969)

Discussion