llasm: Naming Functions in Binaries by Fusing Encoder-only and Decoder-only LLMs

Predicting function names in stripped binaries, which requires succinctly summarizing semantics of binary code in natural languages, is a crucial but challenging task. Recently, many machine learning based solutions have been proposed. However, they have poor generalizability, i.e., fail to handle unseen binaries. To advance the state of the art, we present large assembly language Model ( llasm ) , a novel framework which fuses encoder-only and decoder-only LLMs for function name prediction. It refines encoder-only models to preserve more binary information and learn better binary representations. Then it adopts a novel architecture to project the encoding to the input space of a decoder-only natural language model, which enables it to have better capability of inferring general knowledge and better generalizability. We have evaluated llasm in the BinaryCorp and Debin datasets. llasm outperforms the state-of-the-art function name prediction tools by up to 19.9%, 40.7%, and 36.5% in precision, recall, and F1 score, with significantly better generalizability in unseen binaries. Our case studies further demonstrate the practical use cases of llasm in analyzing real-world malware, showing the usefulness of function name prediction.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Software Engineering and Methodology
Published
2024-11-05
DOI
https://doi.org/10.1145/3702988
Citations
7
Primary Topic
Natural Language Processing Techniques
Type
article
Field-Weighted Citation Impact
2.43
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

llasm: Naming Functions in Binaries by Fusing Encoder-only and Decoder-only LLMs

Zihan Sha, Bolun Zhang, Ziqing Wang, Chao Zhang et al.
7 citations
ACM Transactions on Software Engineering and Methodology
Natural Language Processing Techniques
2.43
article

llasm: Naming Functions in Binaries by Fusing Encoder-only and Decoder-only LLMs

Zihan Sha, Bolun Zhang, Ziqing Wang, Chao Zhang, Hao Wang, Zeyu Gao, Hui Shu
article en
7 citations

Abstract

Predicting function names in stripped binaries, which requires succinctly summarizing semantics of binary code in natural languages, is a crucial but challenging task. Recently, many machine learning based solutions have been proposed. However, they have poor generalizability, i.e., fail to handle unseen binaries. To advance the state of the art, we present large assembly language Model ( llasm ) , a novel framework which fuses encoder-only and decoder-only LLMs for function name prediction. It refines encoder-only models to preserve more binary information and learn better binary representations. Then it adopts a novel architecture to project the encoding to the input space of a decoder-only natural language model, which enables it to have better capability of inferring general knowledge and better generalizability. We have evaluated llasm in the BinaryCorp and Debin datasets. llasm outperforms the state-of-the-art function name prediction tools by up to 19.9%, 40.7%, and 36.5% in precision, recall, and F1 score, with significantly better generalizability in unseen binaries. Our case studies further demonstrate the practical use cases of llasm in analyzing real-world malware, showing the usefulness of function name prediction.

ACM Transactions on Software Engineering and MethodologyVol. 34(4)
Ministry of Education of the People's Republic of China (CN), Institute of Information Engineering (CN), Tsinghua University (CN)
Openalex Percentile: Top 9%
Natural Language Processing Techniques
2.43
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.

llasm: Naming Functions in Binaries by Fusing Encoder-only and Decoder-only LLMs — Zihan Sha, Bolun Zhang, et al. · ACM Transactions on Software Engineering and Methodology (2024) | TGRS Research Map | TGRS