Patent ID: 11934458
Assignee: THE GEORGE WASHINGTON UNIVERSITY
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A method for comparing a source code and a target binary code, wherein the source code cannot be directly compared to the target binary code, the method comprising:
identifying a target compiling configuration of the target binary code, the target compiling configuration indicating the compilation configuration for the target binary code, wherein identifying the target compiling configuration comprises:
generating an attributed function call graph of the target binary code and each of the binary codes in a training dataset, where the attributed function call graph represents a calling relationship between functions in the target binary code and the binary codes in the training dataset;
training a graph attention network on the attributed function call graph of the binary codes in the training dataset; and
identifying the target compiling configuration, by the graph attention network, based on the attributed function call graph of the target binary code;

generating a comparing binary for the source code, the comparing binary compiled from the source code using the target compiling configuration; and
comparing the target binary code to the generated comparing binary to determine a similarity between the source code and the target binary code.