Manuscript Offprint

arXiv:2610.11556

SoK: Are LLMs Reliable at Source Code Recovery? A Taxonomy and Empirical Evaluation

Varun Kohli, Lee Bing Cheng, Nur Hazim Ghazali, Gao Yuze, Daryl Poon, Dinil Mon Divakaran

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Varun Kohli*, Lee Bing Cheng*, Nur Hazim Ghazali†, Gao Yuze*, Daryl Poon*, and Dinil Mon Divakaran*

ASTAR Institute of Advanced Intelligence and Computing, Singapore

{Kohli_Varun, Lee_Bing_Cheng, Gao_Yuze, Daryl_Poon, Dinil_Divakaran}@a-star.edu.sg

†National University of Singapore, Singapore

nurhazim@u.nus.edu

Abstract—Effective source recovery is critical to security applications such as malware analysis, vulnerability assessment, and legacy maintenance. Large Language Models (LLMs) are reshaping this field, shifting the paradigm away from rule-based heuristics to probabilistic and high fidelity semantic recovery of source code from assembly or classical decompiler-derived pseudo-C. However, despite rapid progress, the field suffers from fragmentation across numerous approaches as well as their non-unified evaluations, limiting objective comparisons. Further, existing works have limited coverage of embedded, IoT architectures and source languages beyond C/C++. In this work, we present the first Systematization of Knowledge (SoK) focused specifically on LLM-assisted binary-to-source recovery. We provide a granular design-centric taxonomy of LLM-assisted source recovery methods and systematic evaluations using seven key metrics along six evaluation dimensions. We evaluate state-of-the-art methods on 45,000 test samples derived from four standard and five embedded architectures, five optimization levels, and symbol stripping. We ablate the impact of design choices on recovery performance, including input representation, contextual enrichment, model scale, iteration and review roles using controlled in-house recovery pipelines and three off-the-shelf models. Finally, we test same-language and cross-language recovery capability covering four mature and two legacy languages. Our systematization and comprehensive evaluations provide key insights that guide future directions in this field.

Index Terms—Source Code Recovery, Large Language Models, Reliability, Reverse Engineering, Binary Decompilation

I. INTRODUCTION

Source code recovery is a critical building block of reverse engineering, computer security, and software maintenance. It enables security analysts to inspect and investigate programs [68], analyze malware [81], audit third-party binaries for vulnerabilities [57], plagiarism detection [73], and so on, all without access to original source code. Traditional decompilers such as Hex-Rays [3], Binary Ninja [1], Ghidra [2], and Angr [58] typically operate on a pipeline of deterministic Intermediate Representations (IR), control flow reconstruction algorithms, pattern matching and type inference heuristics. While these classical tools preserve lower-level control execution semantics, their output is marred by issues like poor readability, unnatural control constructs, lost variable names, and fragmented type structures, which ultimately hinders human analysis and recompilation [25].

The emergence of Large Language Models (LLMs) trained on massive language and code corpora has led to unprecedented capabilities in code generation, analysis, and software comprehension. Building upon this proficiency, LLMs are now increasingly being used to address the challenges in reverse engineering [40], [56], [72]. Rather than relying purely on deterministic rules, LLM-assisted source recovery models treat decompilation or pseudo-C refinement as a neural sequence-to-sequence translation task that converts low-level representations to recompileable and equivalent high-level source code. These approaches show promise in recovering idiomatic function names, expressive variable and type structures, and clean high-level abstractions directly from assembly or decompiled pseudo-C output [41], [55], [64], [65], [69], [71], [72]. Despite rapid proliferation across top security, software engineering, and AI venues, the research landscape remains highly fragmented. Even when restricting the scope to top-tier venues (see Section III-B) over the past two years, 13 distinct methodologies have been published [6], [16], [26], [31], [38], [41], [46], [61]–[64], [70], [78], alongside several pre-prints this year [21], [32], [44], [49], [59], [77].

Prior systematizations broadly explore LLM applications in reverse engineering with coarse taxonomies of LLM-based source recovery [7], [39], [48]. To the best of our knowledge, there is no existing systematization of the granular design choices of LLM-assisted source recovery methods, and no controlled ablations of such choices to measure their impact on fidelity. Further, evaluation metrics are highly fragmented, with 53 unique metrics identified across 20+ research papers in top venues on LLM-assisted source recovery from 2024–2026. Moreover, existing evaluations and benchmarks on LLM-assisted source recovery focus almost exclusively on x86-64 and C/C++ target generation [33], [65], [76], with coverage of non-C languages only by a few method papers and limited to C++ [46], [70], CUDA [62], and Dart [5]. Further, decompilation fidelity across legacy and mature languages has only been studied for pre-LLM neural decompiations [37]. There is no existing evaluation of LLM-assisted source recovery that covers embedded systems architectures (armv7m, armv8m, armv7a, armv8a, and mips23le) [66].

To bridge this gap, this paper presents the first comprehensive Systematization of Knowledge (SoK) dedicated to LLM-assisted source recovery. We formulate four core Research Questions (RQs) to evaluate state-of-the-art (SOTA) decompilation paradigms:

• RQ1: Evaluation Dimensions (Sections IV, V-A, VI-A). As the Law of Leaky Abstraction (Joel Spolsky) states, “All non-trivial abstractions, to some extent, are leaky.” Two distinct source codes may have the same functional behavior through the reduction of noise to machine language during compilation. Thus, what dimensions must be considered to evaluate the fidelity of source recovery?

• RQ2: Generalization (Section VI-A). How well does SOTA LLM-assisted source recovery generalize when evaluated against cross-architecture binaries covering standard and embedded (IoT) architectures, diverse compiler optimization flags (OO-Os), and symbol availability?

• RQ3: Pipeline Design (Sections III-B, VI-A, VI-B). What are the key building blocks and design choices of LLM-assisted methods, and their impact on source recovery?

• RQ4: Multi-Language Recovery Spectrum (Section VI-C). How effectively can LLMs recover the same language or cross-recover C from a different mature or legacy source language?

The following are the key findings from our evaluations to answer the above questions (see Section VII for details):

References (73)