Please use this identifier to cite or link to this item: http://hdl.handle.net/10397/117348
Title: ex2vec : enhancing assembly code semantics with end-to-end execution-aware embeddings
Authors: Gong, X
Xu, Y
Zhang, S
He, C 
Issue Date: Sep-2025
Source: Neural networks, Sept 2025, v. 189, 107506
Abstract: Binary code similarity detection (BSCD), whose goal is to identify and analyze similar or identical functions in compiled binaries, is an essential task in computer security. Recent methods leveraging deep neural networks (DNN) for numerical vector representation of code have achieved significant success. However, these methods primarily adapt techniques from masked language modeling (MLM), encoding code instructions by predicting missing values from an instruction context, which limits their ability to fully capture execution semantics. In this paper, we propose Ex2vec, an innovative end-to-end encoding method that generates high-quality embeddings rich in execution semantics for BCSD. Ex2vec employs a novel pre-training strategy that enables the model to learn the impact of assembly instructions on register states, thus mitigating the reliance on learning the frequency and co-occurrence of the instructions in the assembly context. By simulating the execution of assembly instructions, Ex2Vec accurately captures the semantic features of assembly code, which is further demonstrated by Principal Component Analysis (PCA) that functionally similar instructions cluster closely in the embedding space. Extensive experiments on large datasets validate that Ex2vec performs exceptionally well in binary code similarity detection, surpassing all existing state-of-the-art methods. In real-world vulnerability detection experiments, Ex2Vec exhibits the highest accuracy.
Keywords: Binary code similarity detection
Binary similarity analysis
Function semantic
Graph Matching Networks (GMN)
Transformer
Vulnerability detection
Publisher: Pergamon Press
Journal: Neural networks 
ISSN: 0893-6080
DOI: 10.1016/j.neunet.2025.107506
Appears in Collections:Journal/Magazine Article

Open Access Information
Status embargoed access
Embargo End Date 2027-09-30
Access
View full-text via PolyU eLinks SFX Query
Show full item record

Google ScholarTM

Check

Altmetric


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.