Refining Decompiled C Code with Large Language Models
Not on the map. Why?
Abstract (arXiv)
A C decompiler converts an executable into source code. The recovered C source code, once re-compiled, is expected to produce an executable with the same functionality as the original executable. With over twenty years of development, C decompilers have been widely used in production to support reverse engineering applications. Despite the prosperous development of C decompilers, it is widely acknowledged that decompiler outputs are mainly used for human consumption, and are not suitable for automatic recompilation. Often, a substantial amount of manual effort is required to fix the decompiler outputs before they can be recompiled and executed properly. This paper is motived by the recent success of large language models (LLMs) in comprehending dense corpus of natural language. To alleviate the tedious, costly and often error-prone manual effort in fixing decompiler outputs, we investigate the feasibility of using LLMs to augment decompiler outputs, thus delivering recompilable decompilation. Note that different from previous efforts that focus on augmenting decompiler outputs with higher readability (e.g., recovering type/variable names), we focus on augmenting decompiler outputs with recompilability, meaning to generate code that can be recompiled into an executable with the same functionality as the original executable. We conduct a pilot study to characterize the obstacles in recompiling the outputs of the de facto commercial C decompiler -- IDA-Pro. We then propose a two-step, hybrid approach to augmenting decompiler outputs with LLMs. We evaluate our approach on a set of popular C test cases, and show that our approach can deliver a high recompilation success rate to over 75% with moderate effort, whereas none of the IDA-Pro's original outputs can be recompiled. We conclude with a discussion on the limitations of our approach and promising future research directions.
Key facts. Cited by 24 papers in the map (data through 14 Oct 2026). First posted on arXiv 10 Oct 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 1; 2024: 5; 2025: 10; 2026: 8.
24 papers.
Sort:
By area:
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024How Far Are We From AGI: Are LLMs All We Need?cited by 31
- 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputscited by 22
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 16
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
- 2025EditLord: Learning Code Transformation Rules for Code Editingcited by 4
- 2025DecompileBench: A Comprehensive Benchmark for Evaluating Decompilers in Real-World Scenarioscited by 4
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Modelscited by 3
- 2026HELIOS: Hierarchical Graph Abstraction for Structure-Aware LLM Decompilationcited by 3
- 2024VulCatch: Enhancing Binary Vulnerability Detection through CodeT5 Decompilation and KAN Advanced Feature Extractioncited by 2
- 2024StackSight: Unveiling WebAssembly through Large Language Models and Neurosymbolic Chain-of-Thought Decompilationcited by 1
- 2024Towards LLM-based optimization compilers. Can LLMs learn how to apply a single peephole optimization? Reasoning is all LLMs need!cited by 1
12 more
- 2025Can Large Language Models Understand Intermediate Representations in Compilers?cited by 1
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Frameworkcited by 1
- 2026CoDe-R: Refining Decompiler Output with LLMs via Rationale Guidance and Adaptive Inferencecited by 1
- 2025NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executablescited by 0
- 2025QiMeng-NeuComBack: Self-Evolving Translation from IR to Assembly Codecited by 0
- 2025Asm2SrcEval: Evaluating Large Language Models for Assembly-to-Source Code Translationcited by 0
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modescited by 0
- 2026Decomposer: Learning to Decompile Symbolic Music to Programscited by 0
- 2026Evaluating Neural Decompilation of Dart AOT Binaries: Fine-Tuning, Metric Validity, Specification Leakage, and Reliabilitycited by 0
- 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineeringcited by 0
- 2026Instruction Alignment for Binary Code Representation Learningcited by 0
- 2026Echo: Learning-based Matching Decompilation using Trusted Back Translationcited by 0
- 2026Echo: Learning-based Matching Decompilation using Trusted Back Translation16 Sep 2026
- 2026Instruction Alignment for Binary Code Representation Learning12 Aug 2026
- 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineering7 Aug 2026
- 2026Evaluating Neural Decompilation of Dart AOT Binaries: Fine-Tuning, Metric Validity, Specification Leakage, and Reliability7 Jul 2026
- 2026Decomposer: Learning to Decompile Symbolic Music to Programs2 Jul 2026
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modes9 Jun 2026
- 2026CoDe-R: Refining Decompiler Output with LLMs via Rationale Guidance and Adaptive Inference14 Apr 2026
- 2026HELIOS: Hierarchical Graph Abstraction for Structure-Aware LLM Decompilation21 Jan 2026
- 2025Asm2SrcEval: Evaluating Large Language Models for Assembly-to-Source Code Translation28 Nov 2025
- 2025QiMeng-NeuComBack: Self-Evolving Translation from IR to Assembly Code3 Nov 2025
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Framework20 Oct 2025
- 2025NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executables8 Sep 2025
12 more
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Models11 Jun 2025
- 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systems18 May 2025
- 2025DecompileBench: A Comprehensive Benchmark for Evaluating Decompilers in Real-World Scenarios16 May 2025
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets21 Mar 2025
- 2025EditLord: Learning Code Transformation Rules for Code Editing10 Mar 2025
- 2025Can Large Language Models Understand Intermediate Representations in Compilers?7 Feb 2025
- 2024Towards LLM-based optimization compilers. Can LLMs learn how to apply a single peephole optimization? Reasoning is all LLMs need!11 Dec 2024
- 2024VulCatch: Enhancing Binary Vulnerability Detection through CodeT5 Decompilation and KAN Advanced Feature Extraction13 Aug 2024
- 2024StackSight: Unveiling WebAssembly through Large Language Models and Neurosymbolic Chain-of-Thought Decompilation7 Jun 2024
- 2024How Far Are We From AGI: Are LLMs All We Need?16 May 2024
- 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputs27 Apr 2024
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Code14 Nov 2023
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Modelscited by 3
- 2024StackSight: Unveiling WebAssembly through Large Language Models and Neurosymbolic Chain-of-Thought Decompilationcited by 1
- 2024Towards LLM-based optimization compilers. Can LLMs learn how to apply a single peephole optimization? Reasoning is all LLMs need!cited by 1
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modescited by 0
- 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modes9 Jun 2026
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Models11 Jun 2025
- 2024Towards LLM-based optimization compilers. Can LLMs learn how to apply a single peephole optimization? Reasoning is all LLMs need!11 Dec 2024
- 2024StackSight: Unveiling WebAssembly through Large Language Models and Neurosymbolic Chain-of-Thought Decompilation7 Jun 2024
- 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
- 2024How Far Are We From AGI: Are LLMs All We Need?cited by 31
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 16
- 2025EditLord: Learning Code Transformation Rules for Code Editingcited by 4
- 2025DecompileBench: A Comprehensive Benchmark for Evaluating Decompilers in Real-World Scenarioscited by 4
- 2026HELIOS: Hierarchical Graph Abstraction for Structure-Aware LLM Decompilationcited by 3
- 2024VulCatch: Enhancing Binary Vulnerability Detection through CodeT5 Decompilation and KAN Advanced Feature Extractioncited by 2
- 2025Can Large Language Models Understand Intermediate Representations in Compilers?cited by 1
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Frameworkcited by 1
- 2026CoDe-R: Refining Decompiler Output with LLMs via Rationale Guidance and Adaptive Inferencecited by 1
- 2025NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executablescited by 0
- 2025Asm2SrcEval: Evaluating Large Language Models for Assembly-to-Source Code Translationcited by 0
12 most cited of 17 All 17 (JSON)
- 2026Echo: Learning-based Matching Decompilation using Trusted Back Translation16 Sep 2026
- 2026Instruction Alignment for Binary Code Representation Learning12 Aug 2026
- 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineering7 Aug 2026
- 2026Evaluating Neural Decompilation of Dart AOT Binaries: Fine-Tuning, Metric Validity, Specification Leakage, and Reliability7 Jul 2026
- 2026Decomposer: Learning to Decompile Symbolic Music to Programs2 Jul 2026
- 2026CoDe-R: Refining Decompiler Output with LLMs via Rationale Guidance and Adaptive Inference14 Apr 2026
- 2026HELIOS: Hierarchical Graph Abstraction for Structure-Aware LLM Decompilation21 Jan 2026
- 2025Asm2SrcEval: Evaluating Large Language Models for Assembly-to-Source Code Translation28 Nov 2025
- 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Framework20 Oct 2025
- 2025NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executables8 Sep 2025
- 2025DecompileBench: A Comprehensive Benchmark for Evaluating Decompilers in Real-World Scenarios16 May 2025
- 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasets21 Mar 2025
12 newest of 17 All 17 (JSON)