Lune

S&P2023Top-tier venue

XFL: Naming Functions in Binaries with Extreme Multi-label Learning

James Patrick-Evans, Moritz Dannehl, Johannes Kinder

Abstract

Reverse engineers benefit from the presence of identifiers such as function names in a binary, but usually these are removed for release. Training a machine learning model to predict function names automatically is promising but fundamentally hard: unlike words in natural language, most function names occur only once. In this paper, we address this problem by introducing eXtreme Function Labeling (XFL), an extreme multi-label learning approach to selecting appropriate labels for binary functions. XFL splits function names into tokens, treating each as an informative label akin to the problem of tagging texts in natural language. We relate the semantics of binary code to labels through Dexter, a novel function embedding that combines static analysis-based features with local context from the call graph and global context from the entire binary. We demonstrate that XFL/Dexter outperforms the state of the art in function labeling on a dataset of 10,047 binaries from the Debian project, achieving a precision of 83.5%. We also study combinations of XFL with alternative binary embeddings from the literature and show that Dexter consistently performs best for this task. As a result, we demonstrate that binary function labeling can be effectively phrased in terms of multi-label learning, and that binary function embeddings benefit from including explicit semantic features.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • BLens: Contrastive Captioning of Binary Functions using Ensemble Embedding cites CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo Code
  • BLens: Contrastive Captioning of Binary Functions using Ensemble Embedding cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • BLens: Contrastive Captioning of Binary Functions using Ensemble Embedding cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • BLens: Contrastive Captioning of Binary Functions using Ensemble Embedding cites PalmTree: Learning an Assembly Language Model for Instruction Embedding
  • CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo Code cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • CADE: Detecting and Explaining Concept Drift Samples for Security Applications cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features cites CADE: Detecting and Explaining Concept Drift Samples for Security Applications
  • Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features cites PalmTree: Learning an Assembly Language Model for Instruction Embedding
  • Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph Features cites Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs
  • PalmTree: Learning an Assembly Language Model for Instruction Embedding cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • PalmTree: Learning an Assembly Language Model for Instruction Embedding cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
  • PalmTree: Learning an Assembly Language Model for Instruction Embedding cites Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs
  • Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs cites Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler Optimization
  • Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function Pairs cites Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity Detection
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. ACETest: Automated Constraint Extraction for Testing Deep Learning OperatorsJingyi Shi, Yang Xiao, Yuekang Li, Yeting Li et al.ISSTA 2023 · 24 citations
  2. Improving ML-based Binary Function Similarity Detection by Assessing and Deprioritizing Control Flow Graph FeaturesJialai Wang, Chao Zhang, Longfei Chen, Yi Rong et al.USENIX Security 2024 · 15 citations
  3. CP-BCS: Binary Code Summarization Guided by Control Flow Graph and Pseudo CodeTong Ye, Lingfei Wu, Tengfei Ma, Xuhong Zhang et al.EMNLP 2023 · 4 citations
  4. BLens: Contrastive Captioning of Binary Functions using Ensemble EmbeddingTristan Benoit, Yunru Wang, Moritz Dannehl, Johannes KinderUSENIX Security 2025
  5. Beyond Classification: Inferring Function Names in Stripped Binaries via Domain Adapted LLMsLinxi Jiang, Xin Jin, Zhiqiang LinNDSS 2025

Builds on12

  1. Neural Network-based Graph Embedding for Cross-Platform Binary Code Similarity DetectionXiaojun Xu, Chang Liu, Qian Feng, Heng Yin et al.CCS 2017 · 682 citations
  2. Asm2Vec: Boosting Static Representation Robustness for Binary Clone Search against Code Obfuscation and Compiler OptimizationSteven H. H. Ding, Benjamin C. M. Fung, Philippe CharlandS&P 2019 · 447 citations
  3. Neural Machine Translation Inspired Binary Code Similarity Comparison beyond Function PairsFei Zuo, Xiaopeng Li, Patrick Young, Lannan Luo et al.NDSS 2019 · 262 citations
  4. CADE: Detecting and Explaining Concept Drift Samples for Security ApplicationsLimin Yang, Wenbo Guo, Qingying Hao, Arridhana Ciptadi et al.USENIX Security 2021 · 241 citations
  5. PalmTree: Learning an Assembly Language Model for Instruction EmbeddingXuezixiang Li, Yu Qu, Heng YinCCS 2021 · 139 citations

Related papers

  1. Enhancing Function Name Prediction using Votes-Based Name Tokenization and Multi-task LearningXiaoling Zhang, Zhengzi Xu, Shouguo Yang, Zhi Li et al.FSE 2024 · 5 citations
  2. SymLM: Predicting Function Names in Stripped Binaries via Context-Sensitive Execution-Aware Code EmbeddingsXin Jin, Kexin Pei, Jun Yeon Won, Zhiqiang LinCCS 2022 · 56 citations
  3. A lightweight framework for function name reassignment based on large-scale stripped binariesHan Gao, Shaoyin Cheng, Yinxing Xue, Weiming ZhangISSTA 2021 · 46 citations
  4. Hieronym: Leveraging Hierarchical Multi-Source Information for Function Renaming in Stripped BinaryXiaoling Zhang, Jian Sun, Dawei Wang, Chongyu Wang et al.CCS 2026
  5. Debin: Predicting Debug Information in Stripped BinariesJingxuan He, Pesho Ivanov, Petar Tsankov, Veselin Raychev et al.CCS 2018 · 148 citations
Dusk over the sea between two cliffs drawn in fine vertical lines