mlsanityData to 14 Oct 2026

Refining Decompiled C Code with Large Language Models

arXiv 2310.06530 ↗First posted 10 Oct 2023cs.SEcited by 24

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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2023: 1; 2024: 5; 2025: 10; 2026: 8.

24 papers.

Sort:

By area:

  1. 2023Unifying the Perspectives of NLP and Software Engineering: A Survey on Language Models for Codecited by 62
  2. 2024How Far Are We From AGI: Are LLMs All We Need?cited by 31
  3. 2024Testing and Understanding Erroneous Planning in LLM Agents through Synthesized User Inputscited by 22
  4. 2025Large Language Models (LLMs) for Source Code Analysis: applications, models and datasetscited by 16
  5. 2025IP Leakage Attacks Targeting LLM-Based Multi-Agent Systemscited by 8
  6. 2025EditLord: Learning Code Transformation Rules for Code Editingcited by 4
  7. 2025DecompileBench: A Comprehensive Benchmark for Evaluating Decompilers in Real-World Scenarioscited by 4
  8. 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Modelscited by 3
  9. 2026HELIOS: Hierarchical Graph Abstraction for Structure-Aware LLM Decompilationcited by 3
  10. 2024VulCatch: Enhancing Binary Vulnerability Detection through CodeT5 Decompilation and KAN Advanced Feature Extractioncited by 2
  11. 2024StackSight: Unveiling WebAssembly through Large Language Models and Neurosymbolic Chain-of-Thought Decompilationcited by 1
  12. 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
  1. 2025Can Large Language Models Understand Intermediate Representations in Compilers?cited by 1
  2. 2025TREAT: A Code LLMs Trustworthiness / Reliability Evaluation and Testing Frameworkcited by 1
  3. 2026CoDe-R: Refining Decompiler Output with LLMs via Rationale Guidance and Adaptive Inferencecited by 1
  4. 2025NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executablescited by 0
  5. 2025QiMeng-NeuComBack: Self-Evolving Translation from IR to Assembly Codecited by 0
  6. 2025Asm2SrcEval: Evaluating Large Language Models for Assembly-to-Source Code Translationcited by 0
  7. 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modescited by 0
  8. 2026Decomposer: Learning to Decompile Symbolic Music to Programscited by 0
  9. 2026Evaluating Neural Decompilation of Dart AOT Binaries: Fine-Tuning, Metric Validity, Specification Leakage, and Reliabilitycited by 0
  10. 2026Beyond Text Matching: Towards Reference-Free Evaluation for Human-Oriented Binary Reverse Engineeringcited by 0
  11. 2026Instruction Alignment for Binary Code Representation Learningcited by 0
  12. 2026Echo: Learning-based Matching Decompilation using Trusted Back Translationcited by 0