2025conference-paper/from-opcodes-to-semantics-a-hybrid-approach-for-function-name-inference-in-stripped-binaries

From Opcodes to Semantics: A Hybrid Approach for Function Name Inference in Stripped Binaries

The absence of debugging symbols in stripped binaries, particularly descriptive function names, hinders reverse engineering and security analysis. This paper introduces a structured pipeline for automated function name inference, combining Transformer models, calibrated confidence estimation, and context-aware refinement using large language models pretrained on code. In the first stage, a specialized Transformer model is trained on normalized assembly instructions to predict initial function names, along with statistical indicators. These indicators are then mapped to reliable confidence scores using a logistic regression calibration module. In the final stage, lowconfidence functions are reprocessed using fine-tuned, pretrained code language models, which leverage the context derived from high-confidence caller and callee relationships. The method is validated on a dataset of approximately 21.3 million functions extracted from 6,824 Windows executables compiled with various MSVC versions and architectures. The results demonstrate that our approach supports the practical recovery of meaningful function identifiers and enhances malware analysis tasks.

Attachments

No attachments yet.