← Lab /Software

LLM-assisted binary-to-source recovery shows mixed performance across architectures and languages

LLMs can recover source code from binaries but their effectiveness varies widely depending on architecture, optimization level, and language

Software arXiv 8 Oct 2026 Theory

Published as “SoK: Are LLMs Reliable at Source Code Recovery? A Taxonomy and Empirical Evaluation”

Why it matters

LLM-based decompilation can substantially improve automated analysis of binaries, but its current limitations on embedded Thumb2 firmware and non-C languages restrict its immediate utility in many security contexts.

Summary

Agent4Decompile is the top-performing method for producing compilable code with byte-level semantics and functional similarity. However, LLM-based decompilers still struggle on Thumb2 IoT ISAs and on non-C languages, with readability often lower than earlier approaches. The paper provides a systematic taxonomy, evaluates seven metrics across 45,000 samples from standard and embedded architectures, and shows that larger models and compiler-feedback iterations improve functional recovery but can hurt readability.

What they found 2

  1. Agent4Decompile achieves the highest recompilability and functional similarity among evaluated methods.

    “Agent4Decompile [77] is the best method for recovering compilabile code with byte-level semantics and functional similarity.”

  2. Current LLM and classical decompiler pipelines are heavily C-centric and perform poorly on non-C languages.

    “Current LLM and classical decompiler capabilities are C-centric and heavily under-perform in non-C recovery.”

Caveats 5

  • This also explains the poor readability and ES observed in Agent4Decompile compared to FidelityGPT and SK2Decompile.
  • CIT31b incurs a degradation of 18.3% ∆R2I and 3.8% ES due to defensive code frames added into new generations for compilability.
  • recovery quality is sensitive to prompt wording, input formatting, and decoding settings [29].
  • We did not search over paraphrases, and different phrasings would likely move absolute scores.
  • we assume the availability and derivability of the function call interface due to the general availability of repository-level context.

What’s new here 4

  • First Systematization of Knowledge (SoK) focused specifically on LLM-assisted binary-to-source recovery.
  • A granular five-axis taxonomy of design choices (model setup, control flow, roles, input representation, augmentation).
  • Comprehensive evaluation on 45,000 samples covering four standard and five embedded architectures, five optimization levels, and symbol stripping.
  • Cross-language recovery study (C, C++, Go, Rust, Fortran, Ada) including same-language and C-target translations.