Binary decompilation plays an important role in software security analysis, reverse engineering, and malware understanding when source code is unavailable. However, existing decompilation techniques often fail to produce source code that can be successfully recompiled and re-executed, particularly for optimized binaries. Recent advances in large language models (LLMs) have enabled neural approaches to decompilation, but the generated code is typically only semantically plausible rather than truly executable, limiting their practical reliability. These shortcomings arise from compiler optimizations and the loss of semantic cues in compiled code, which LLMs struggle to recover without contextual guidance. To address this challenge, we propose ICL4Decomp, a hybrid decompilation framework that leverages in-context learning (ICL) to guide LLMs toward generating re-executable source code. We evaluate our method across multiple datasets, optimization levels, and compilers, demonstrating around 40\% improvement in re-executability over state-of-the-art decompilation methods while maintaining robustness.
Statistical Analysis of Executability and Program Equivalence in Decompilation for IoT Vulnerability Detection
College of Science and Technology, Nihon University(日本大学理工学部);Waseda Institute for Advanced Study, Waseda University(早稻田大学高等研究院);Graduate School of Informatics and Engineering, The University of Electro-Communications(电气通信大学信息工学研究科)
CoDe-R: Refining Decompiler Output with LLMs via Rationale Guidance and Adaptive Inference
School of Computer Science and Technology / School of Artificial Intelligence, China University of Mining and Technology(计算机科学与技术学院/人工智能学院,中国矿业大学);Mine Digitization Engineering Research Center of the Ministry of Education, China University of Mining and Technology(教育部矿山数字化工程研究中心,中国矿业大学)
Decompile-Bench: Million-Scale Binary-Source Function Pairs for Real-World Binary Decompilation
Research Institute of Trustworthy Autonomous Systems, Southern University of Science and Technology(南方科技大学可信自主系统研究院);Department of Computing, The Hong Kong Polytechnic University, Research Centre for Data Science & Artificial Intelligence(香港理工大学计算学系数据科学与人工智能研究中心)
SciWalker: Synthesizing Scientific Coding Problems with Operator Graphs and Execution Feedback
The Hong Kong University of Science and Technology(香港科技大学);Shanghai AI Laboratory(上海人工智能实验室);Tsinghua University(清华大学);Nanyang Technological University(南洋理工大学)
CHISEL-ing Back Source Code with AI-enabled Iterative Recovery
A*STAR Institute of Advanced Intelligence and Computing(A*STAR先进智能与计算研究所);Coimbatore Institution of Technology(科因巴托尔理工学院);National University of Singapore(新加坡国立大学)