Upload your binary to binaryai.net and wait for the analysis finishes, then you can download the result json file with BinaryAI similarity button.
Or try with binaries and results in samples.

- Download
binaryai.pyand put it in$USER_HOME/ghidra_scripts - Open your binary in Ghidra
- Open
Window -> Script Manager, findbinaryai.pyand double click to run script - Select the result json file downloaded from binaryai.net in the file dialog
- Open
Window -> Bookmarkto see all matched functions inBinaryAIcategory, navigate in code browser to see matched function details
- Download
binaryai.pyand put it in$IDA_INSTALL_DIR/plugins - Install dependency:
pip install pygments - Open your binary in IDA Pro
- Invoke the plugin with
Ctrl-Shift-BorEdit -> Plugins -> BinaryAI - Select the result json file downloaded from binaryai.net in the file dialog
- Matched functions will be highlighted in
Functions window, navigate inIDA vieworPesudocode viewto see matched function details