Little Fighter Empire - Forums
[Utility]Calltree generator - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43)
+--- Thread: [Utility]Calltree generator (/showthread.php?tid=9673)



[Utility]Calltree generator - Som1Lse - 03-05-2015

I wrote this small tool these past two days, and thought I'd share it.

What it is:
It analyzes a piece of compiled code, and does its best to generate a calltree structure and dumps it as xml.
It can be useful to get a basic understanding of what a function does.
It also contains a html file which can be viewed in the browser, which will display calltree in a graphical interface (it doesn't actually generate a tree structure, but just a bunch of blocks)

What it isn't:
This is not an alternative to IDA, or any other disassembler. It is a very basic (500 lines or so) calltree generator, and that is with a very generous definition of calltree.
It is also not going to work well on anything that has a somewhat crazy code structure. Luckily this isn't a big deal for LF2 which is rather simple.

You can find the source code here: http://www.mediafire.com/download/aq7gzcccgsv9cps/LF2FuncDisasm.7z
It uses udis86 which can be found here: https://github.com/vmt/udis86

I am not going to be distributing a binary form of this as it would be basically pointless as the code needs to be modified to be of any use, and if you can't figure out how to compile a program it will not be of any use to you anyway.