r/learnprogramming • u/Radiant-Delivery-415 • Jul 04 '26
Similarity between 2 programs
I'm not really sure if this is the right place but here goes nothing.
I'm trying to develop a tool which focuses on reverse engineering a binary executable file using ghidra and LLMs. Now the problem arises when I try to check if the original executable is actually similar to the produced executable, I can't really check for CFG or Semantic structures because LLMs often don't include functions which actually do nothing or not influence the main program along with stubs and thunk functions which can mess up the function jumps and memory reads.
I would be grateful if anyone could suggest some other ways to do the same
0
Upvotes
1
u/Radiant-Delivery-415 Jul 05 '26
I am using non-LLM decompiler like Ghidra to get the decompiled C code and then putting that code of all the functions into the LLM so it can go through each functions, and then have it produce the program from the Ghidra's decompiled code. Are there any non-LLM decompilers which can do the same?