mlsanityData to 14 Oct 2026

Practical Source Code Recovery from Binary Functions Using Anchor-Based Retrieval and LLM Reasoning

arXiv 2607.09452 ↗First posted 10 Jul 2026cs.SE cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

We present a practical pipeline for recovering source code from stripped binary functions by combining reverse engineering, anchor-based source code retrieval, and large language model reasoning. Our binary-to-source-code retrieval method attempts to identify the source function from a source code database, rather than generating approximate decompiled pseudocode. It extracts anchors such as strings, constants, external calls, and available function names using Ghidra, retrieves candidate files via an inverted-index search database, narrows candidates to likely function snippets, and re-ranks them with a large language model (LLM) based on disassembly, decompiled code, and source metadata. Confident matches can also serve as anchors in later passes. In an evaluation backed by our high-fidelity source code database on a stripped, optimized tcpdump binary, our proposed binary-to-source matching method achieves 95.2% assembly instruction coverage. Experiments on a GitHub-based retrieval database showed lower performance with 35.5% instruction coverage on average, mainly due to retrieval misses. These results show that source-level binary recovery excels with high-quality databases and remains a useful tool in noisy environments.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 7 of its 26 references that are in the map. First posted on arXiv 10 Jul 2026.

Builds on

7 of 26 references.

References · 7

  1. 2021PalmTree: Learning an Assembly Language Model for Instruction Embeddingcited by 49
  2. 2024LLM4Decompile: Decompiling Binary Code with Large Language Modelscited by 39
  3. 2018SAFE: Self-Attentive Function Embeddings for Binary Similaritycited by 33
  4. 2024CLAP: Learning Transferable Binary Code Representations with Natural Language Supervisioncited by 17
  5. 2026Incompressible Knowledge Probes: Estimating Black-Box LLM Parameter Counts via Factual Capacitycited by 17
  6. 2017BinPro: A Tool for Binary Source Code Provenancecited by 4
  7. 2024Automating SBOM Generation with Zero-Shot Semantic Similaritycited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Tool-Guided Retrieval-Augmented Repair for Securing LLM-Generated C Code
  2. 2026Can LLMs Deobfuscate Binary Code? A Systematic Analysis of Large Language Models into Pseudocode Deobfuscation ↗
  3. 2025Cross-modal Retrieval Models for Stripped Binary Analysis
  4. 2026Improving LLM-Assisted Secure Code Generation through Retrieval-Augmented-Generation and Multi-Tool Feedback
  5. 2025FidelityGPT: Correcting Decompilation Distortions with Retrieval Augmented Generation
  6. 2024Self-Constructed Context Decompilation with Fined-grained Alignment Enhancement
  7. 2025Lares: LLM-driven Code Slice Semantic Search for Patch Presence Testing ↗
  8. 2025ReCopilot: Reverse Engineering Copilot in Binary Analysis