ReSource is presented, the first multi-phase LLM framework designed for transformation-agnostic source recovery, which maintains robust semantic identifiability where state-of-the-art baselines severely overfit or degrade, provides a scalable and reliable foundation for downstream security analysis.
Abstract
Reverse engineering is essential for software security analysis and vulnerability detection. Decompilation, the process of lifting binaries to high-level pseudocode, is central to this task. However, production binaries are hostile environments: aggressive compiler optimizations and adversarial obfuscation jointly mangle control structures, obscure variable intents, and disguise high-level program logic. Consequently, existing LLM-based decompilation tools frequently suffer from structural collapse and semantic hallucinations. We present ReSource, the first multi-phase LLM framework designed for transformation-agnostic source recovery. To tackle these intertwined distortions, ReSource conceptualizes the binary-to-source discrepancies into three orthogonal tiers, namely lexical, syntactic, and semantic, and decouples the recovery process accordingly. First, to ground the LLM and prevent logic drift, it retrieves empirical priors from a curated Semantic Distortion Database. Second, to resolve control-flow flattening, it integrates a lightweight predictor to reconstruct the source-level structural skeleton. Finally, a contextual lexical deduction stage refines identifiers to restore human readability. Evaluated on a massive benchmark of over 80,000 decompiled-source function pairs across three optimization levels and four obfuscation techniques, ReSource achieves an 83% Top-5 source retrieval accuracy and an average similarity score of 0.66. By maintaining robust semantic identifiability where state-of-the-art baselines (DeGPT, LLM4Decompile, and FidelityGPT) severely overfit or degrade, ReSource provides a scalable and reliable foundation for downstream security analysis.
BinMirror is introduced, an approach that reformulates binary deobfuscation as a behavior-specification-guided program synthesis task that synthesizes high-quality source code and validates it against runtime observations collected from heavily obfuscated binaries.
Kang-Chen Zhu, Shang-Wen Wang, Zhi-Liang Tian et al.· 0 citations
This work presents CHISEL, a test suite-free framework to iteratively recover source code from Ghidra-derived pseudo-C, and systematically evaluates CHISEL for compilation and semantic recovery, feedback oracle soundness, and iteration overhead on 120 ExeBench functions compiled for the x86-64 architecture.
Varun Kohli, N. Raghava, B. Sikdar et al.· 2 citations
This study shows that automated semantic recovery is needed to audit build artifacts and map the obscured attack surfaces of modern web deployments, using JS Recon, an automated semantic recovery framework that performs decompiler-like analysis for modern JavaScript bundles.
Shriyans Sudhi, Yin-Xi Liu· Proceedings of the 41st IEEE...· 1 citation
Effective source recovery is critical to security applications such as malware analysis, vulnerability assessment, and legacy maintenance. Large Language Models (LLMs) are reshaping this field, shifting the paradigm away from rule-based heuristics to probabilistic and high fidelity semantic recovery of source code from...
Varun Kohli, Bing-Cheng Lee, Nur Hazim Ghazali et al.· 0 citations
PCodeTrans is presented, a dynamic feedback driven framework that implements a loop of recompilation, validation, and alignment for the recovery of functional source code that paves a practical path toward recovered source that can be recompiled, validated to pass test harnesses, and consumed by source-level security a...
Yu-Xin Cui, Ze-Yu Gao, Si-Liang Qin et al.· Proceedings of the 41st IEEE...· 0 citations
Decompile-Diverge is proposed, a behavioral comparison oracle not relying on fixed or hand-crafted tests: for each function it synthesizes a driver, grows a fuzzing corpus from the reference, and reruns the decompiled code on the same inputs to detect changes in the function's behavior.
Chang Liu, Edward Raff, Kristopher K. Micinski· 3 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.