Unleashing the Power of Generative Model in Recovering Variable Names from Stripped Binary

Decompilation aims to recover the source code form of a binary executable.It has many security applications, such as malware analysis, vulnerability detection, and code hardening.A prominent challenge in decompilation is to recover variable names.We propose a novel technique that leverages the strengths of generative models while mitigating model biases.We build a prototype, GENNM, from pre-trained generative models CodeGemma-2B, CodeLlama-7B, and CodeLlama-34B.We finetune GENNM on decompiled functions and teach models to leverage contextual information.GENNM includes names from callers and callees while querying a function, providing rich contextual information within the model's input token limitation.We mitigate model biases by aligning the output distribution of models with symbol preferences of developers.Our results show that GENNM improves the state-of-the-art name recovery precision by 5.6-11.4percentage points on two commonly used datasets and improves the state-of-the-art by 32% (from 17.3% to 22.8%) in the most challenging setup where ground-truth variable names are not seen in the training dataset.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.14722/ndss.2025.240276
Citations
5
Primary Topic
Handwritten Text Recognition Techniques
Type
article
Field-Weighted Citation Impact
6.38

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Unleashing the Power of Generative Model in Recovering Variable Names from Stripped Binary

Nan Jiang, Xiangzhe Xu, Yapeng Ye, Lin Tan et al.
5 citations
Handwritten Text Recognition Techniques
6.38
article

Unleashing the Power of Generative Model in Recovering Variable Names from Stripped Binary

Nan Jiang, Xiangzhe Xu, Yapeng Ye, Lin Tan, Danning Xie, Ziyang Huang, Zian Su, Zhuo Zhang, Shiwei Feng, Xiangyu Zhang, Siyuan Cheng
article en
5 citations

Abstract

Decompilation aims to recover the source code form of a binary executable.It has many security applications, such as malware analysis, vulnerability detection, and code hardening.A prominent challenge in decompilation is to recover variable names.We propose a novel technique that leverages the strengths of generative models while mitigating model biases.We build a prototype, GENNM, from pre-trained generative models CodeGemma-2B, CodeLlama-7B, and CodeLlama-34B.We finetune GENNM on decompiled functions and teach models to leverage contextual information.GENNM includes names from callers and callees while querying a function, providing rich contextual information within the model's input token limitation.We mitigate model biases by aligning the output distribution of models with symbol preferences of developers.Our results show that GENNM improves the state-of-the-art name recovery precision by 5.6-11.4percentage points on two commonly used datasets and improves the state-of-the-art by 32% (from 17.3% to 22.8%) in the most challenging setup where ground-truth variable names are not seen in the training dataset.

National Science Foundation, Defense Advanced Research Projects Agency, Intelligence Advanced Research Projects Activity, Office of Naval Research
Openalex Percentile: Top 4%
Handwritten Text Recognition Techniques
6.38
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Unleashing the Power of Generative Model in Recovering Variable Names from Stripped Binary — Nan Jiang, Xiangzhe Xu, et al. · (2025) | TGRS Research Map | TGRS