Abstract
Stripped binaries pose a significant challenge to security researchers by removing descriptive metadata such as function names. Traditional machine learning approaches treat function name inference as a classification task, which suffers from limited vocabularies and poor generalization to unseen code. This paper introduces SYMGEN, a framework that shifts the paradigm to autoregressive generation using domain-adapted Large Language Models (LLMs). By leveraging decompiled code summarization and parameter-efficient fine-tuning, SYMGEN achieves substantial performance improvements, demonstrating resilience against obfuscation and effectiveness in real-world malware analysis.
Introduction
When software is compiled for production, it is typically "stripped" of debugging symbols and function names to reduce file size and protect intellectual property. For reverse engineers, this process transforms readable code into a collection of anonymous labels (e.g., FUN_00401234), significantly hindering manual and automated analysis. While previous research has applied machine learning to this problem, most existing tools treat it as a classification task over a fixed vocabulary. This approach fails to generalize to the diverse and evolving naming conventions found in real-world software.
The SYMGEN Framework
SYMGEN addresses these limitations by adopting a generative paradigm. Instead of selecting a label from a predefined set, the model generates function names token-by-token, allowing it to "invent" semantically appropriate names even for functions not seen during training.
The framework employs a multi-stage domain adaptation process. First, it bridges the gap between low-level binary representations and high-level semantics by training the model to summarize decompiled code into natural language. This step ensures the LLM understands the underlying logic before attempting to assign a name. Additionally, SYMGEN uses cloze-solving input masking to replace artificial labels generated by decompilers with [MASK] tokens, forcing the model to rely solely on functional context.
Parameter-Efficient Training
To handle the computational demands of large-scale LLMs, SYMGEN utilizes Low-Rank Adaptation (LoRA). This technique freezes the majority of the pretrained model's weights and introduces a small number of trainable parameters, significantly reducing the resource requirements for domain adaptation.
Experimental Setup and Datasets
The authors evaluated SYMGEN using a massive dataset derived from 33 popular open-source C projects, encompassing over 2.2 million binary functions. The dataset covers four major architectures (x86-64, x86-32, ARM, MIPS) and multiple optimization levels (O0-O3). To ensure the integrity of the results, a rigorous deduplication process was implemented to prevent "data leakage" between training and test sets.
Key Results
SYMGEN demonstrates a transformative improvement over state-of-the-art baselines:
- Massive Performance Gains: The model outperformed existing tools like SYMLM and XFL by an average of 409% in precision and 489% in F1 score.
- Obfuscation Resilience: SYMGEN maintained high accuracy even against code mangled by control flow flattening, where baseline models experienced significant performance degradation.
- Malware Analysis Utility: In practical applications, SYMGEN successfully identified critical functions in botnet malware, such as
get_random_ip, which had been obscured in the stripped binary.
Conclusion
By moving beyond classification to a generative, domain-adapted approach, SYMGEN provides a robust solution for recovering semantics in stripped binaries. Its ability to generalize across architectures and resist obfuscation makes it a powerful tool for the security community. Future work will explore the integration of Retrieval-Augmented Generation (RAG) to further improve the handling of project-specific naming conventions.
Summary updated