Skip to content

When LLM Decompilers Recompile More and Preserve Less

Sep 2026 · 3 citations · 50 references
Computer Science

TL;DR

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.

Abstract

Decompilation recovers high-level source from compiled machine code and serves as a foundation for security tasks such as vulnerability detection and malware analysis. Traditional decompilers like Ghidra and Hex-Rays expose whatever they cannot resolve as visible placeholders and often emit pseudocode that will not compile or execute; LLM-based decompilers produce clean, idiomatic C and are now judged almost entirely by recompilability and re-executability: whether the output builds and passes its shipped input/output tests. We show that these metrics can reward the wrong path: a function may recompile and pass every shipped test yet diverge on other legitimate inputs, and a disclosed vulnerability may disappear from the recompiled code with no visible trace of the crash. Neither failure is caught by existing suites. To address this gap, we propose Decompile-Diverge, 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. Across eight systems in nine configurations on established LLM decompilation corpora, candidates that pass every shipped test still diverge from the original on our input corpus: 4.9% overall, and as many as 13% for a single system. On 300 real GitHub library functions and 287 CVE-grounded functions, recompilability and behavioral agreement can come apart: the strongest refinement LLM lifts Ghidra's build rate from 75% to 90%, while its Matched rate falls from 74% to 62%; on disclosed vulnerabilities, up to one tenth exhibit Crash Absence in its output. Source-level analysis traces this divergence to introduced fields, types, callees, and guards that replace the visible unknowns traditional tools leave behind.

View source

Similar papers

Preprint Sep 2026

Faultless: A Program Equivalence Technique for Validating and Evaluating Neural Decompilers

Neural decompilers are machine learning models which perform the process of decompilation, lifting code from a lower-level language to a higher one. Neural decompilers offer substantial utility relative to traditional deterministic decompilers because they can probabilistically recover information discarded during lowe...

Luke Dramko, Claire Le Goues, Edward J. Schwartz · 0 citations
Preprint Aug 2026

Decoupling is a Necessity: Transformation-Agnostic Decompiled Code Recovery under Optimization and Obfuscation

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.

Zhi-Ping Zhou, Xiaohong Li, Ruitao Feng et al. · 0 citations
Open access Sep 2026

Evaluating Shaker for Flaky Test Detection in Python Projects

The first empirical evaluation of Shaker for Python is presented, comparing non-order-dependent flaky tests from the ground-truth dataset of Gruber et al., and finding that Shaker provides no statistically significant detection advantage over plain re-execution.

G. Leal, Denini Silva, Leopoldo Teixeira · 0 citations
Preprint Aug 2026

CHISEL-ing Back Source Code with AI-enabled Iterative Recovery

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
#artificial intelligence Preprint Sep 2026

Echo: Learning-based Matching Decompilation using Trusted Back Translation

Echo is presented, a matching decompilation system based on trusted back-translation that uses compilation not only for verification, but also as trusted feedback to guide iterative search in exact matching for optimized binaries under unknown compilation configurations.

Jun Bi, Xiang-Xin Fang, A. Chaube et al. · 0 citations

Related blog posts

GPT-Lab Oct 30, 2026

Black October? The Week AI Changed the Cybersecurity Conversation

Critical flaws, compromised release channels and agentic AI threats landed within days of each other in mid-October 2026. Why “Black October” may say more about how well we now find weaknesses than about the attacks themselves. The post Black October? The Week AI Changed the Cybersecurity Conversation appeared first on GPT-Lab.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.