Constraint-Guided Multi-Agent Decompilation for Executable Binary Recovery
YZYifan ZhangXWXiaohan WangYZYueke Zhang
Kevin LeachYu Huang YZYifan Zhang
XWXiaohan Wang
YZYueke Zhang

Kevin Leach
Yu Huang
+5
Existing decompilers produce code that often fails to compile or execute correctly. This paper introduces a multi-agent framework, Multi-level Constraint-Guided Decompilation (MCGD), that iteratively refines decompiled code through three validation levels: syntactic parsing, compilation via GCC, and behavioral equivalence via LLM-generated test cases. On 1,641 ExeBench binaries across RetDec, Ghidra, and Angr, MCGD achieves 84–97% re-executability, improving baselines by 28–89 percentage points. With GPT-4o, it reaches 84.1% re-executability, outperforming prior LLM-based methods. Execution-based validation proves critical: compile-only achieves 0% behavioral correctness despite 91–99% compilation rates. The system converges within 2 iterations at $0.03–0.05 per binary.

arXiv ·
· April 27, 2026