Open source code to extract sequences of API calls and control flows from assembly code

Is there any open source code out there to extract a sequence of API calls and control flow graphs from assembly code?

I am using a disassembler to first come up with the assembly code for a PE file. And now I need to extract sequences of API calls and of course cfg.

+3


source to share


2 answers


I would suggest you take a look at LLVM in combination with clang . There you can parse the call tree of the clan-spawned bitcode, which is an intermediate language and can subsequently be compiled into the target architecture. CallGraphSCCPass should be helpful.



Edit . You need to disassemble first, perhaps the x86 Disassembler with LLVM.

0


source


https://pypi.org/project/barf/0.3/#description I think this will solve your purpose. BARF is an open source analysis and analysis tool



0


source







All Articles