AI
Researchers develop embedding models to match source code with decompiled binaries
A new fine-tuned embedding model improves the ability to automatically associate source code with stripped binary code, advancing reverse engineering workflows.
Binary reverse engineers often need to identify which source code functions correspond to functions in compiled, stripped binaries—a task that becomes harder at scale. While AI-powered search tools exist to tackle this challenge, they have not fully leveraged modern embedding techniques to link source code with decompiled binaries in both directions.
The Problem#
Traditional approaches to function association in reverse engineering lack the sophistication of current AI embedding methods. There is a gap between what these tools can do and the practical needs of security researchers working with binaries stripped of debug symbols and human-readable identifiers. Existing embedding models for reverse engineering have only partially addressed this space, typically handling one-directional matching or requiring extra preprocessing steps that limit their scalability.
The Solution#
Researchers tackled this by formalizing the bidirectional function association problem—matching source functions to decompiled stripped binaries and vice versa—and developing a specialized embedding model. Using contrastive learning, they fine-tuned a Qwen3-Embedding model to better understand the relationship between these two code representations.
Key Results#
The resulting model substantially outperforms competing approaches across multiple benchmark tests. Beyond its primary task, it also generalizes well to constant-algorithm association—matching functions that perform identical computations—without explicit training on that specific challenge. This unexpected capability suggests the model has learned meaningful structural patterns in code that transfer across different reverse engineering scenarios.

