paper-with-me

Papers

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

2026-07-10 · Charles Edward Gagnon, Steven H. H. Ding, Philippe Charland, Benjamin C. M. Fung 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.

📄 PDF Abstract BibTeX arXiv:2607.09452

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Practical Low-density Codes for PB-ToF Sensing

2023-07-21 · Alvaro Lopez Paredes, Miguel Heredia Conde

An indirect Pulse-based Time-of-Flight camera can be modelled as a linear sensing system in which the target's depth is recovered from few measurements through a sensing matrix formed by a set of demodulation functions. …

Source Code Foundation Models are Transferable Binary Analysis Knowledge Bases

2024-05-30 · Zian Su, Xiangzhe Xu, Ziyang Huang, Kaiyuan Zhang 외

Human-Oriented Binary Reverse Engineering (HOBRE) lies at the intersection of binary and source code, aiming to lift binary code to human-readable content relevant to source code, thereby bridging the binary-source seman…

Transfer Learning

Constraint-Guided Multi-Agent Decompilation for Executable Binary Recovery

2026-04-27 · Yifan Zhang, Xiaohan Wang, Yueke Zhang, Yu Huang 외 arxiv

Decompilation -- recovering source code from compiled binaries -- is essential for security analysis, malware reverse engineering, and legacy software maintenance. However, existing decompilers produce code that often fa…

DIRECT : A Transformer-based Model for Decompiled Identifier Renaming

2021-08-01 · ACL (NLP4Prog) 2021 8 · Vikram Nitin, Anthony Saieva, Baishakhi Ray, Gail Kaiser

Decompiling binary executables to high-level code is an important step in reverse engineering scenarios, such as malware analysis and legacy code maintenance. However, the generated high-level code is difficult to unders…

Malware Analysis

kTrans: Knowledge-Aware Transformer for Binary Code Embedding

2023-08-24 · Wenyu Zhu, Hao Wang, Yuchen Zhou, JiaMing Wang 외

Binary Code Embedding (BCE) has important applications in various reverse engineering tasks such as binary code similarity detection, type recovery, control-flow recovery and data-flow analysis. Recent studies have shown…

Outlier Detection