1
0
Fork 0
Commit Graph

3 Commits

Author SHA1 Message Date
tr4ceflow c38375c1ce UInt64 test 2014-08-25 22:01:47 +02:00
tr4ceflow 3f697969f0 less memory leaks. This commit solves the problem of circles in the graph and the issue of deleting the caller-instance itself.
Further two heuristics were implemented:
- detection of api calls for propagating arguments for DbgSetAutoComment()
- functionbody finder for marking functions with DbgSetAutoFunction()
2014-08-20 21:25:10 +02:00
tr4ceflow 03fc3ef014 DBG: first sketch of the my idea to perform a smart static code analysis
the analysis will start at the OEP and will move hand over hand along a rope every instruction. Conditional branches like jnz, je, jz, jg will be registered for further analysis. Uncond. jumps like "ret", "jmp" or unknown OpCodes will finish the analyse of the current sub-flow-graph.

This will allow:
- easy and fast xRefs
- "do not run into garbage code" like data in code segement
- a graph view ;-)
- robust heuristics for switch cases and loop detection
- easier api-call argument propagation
- updating of the graph when patching instructions without a complete rebuild

WARNING: THIS IS HIGH EXPERIMENTAL CODE! I THINK OR PRAY THAT IT IS CORRECT. I DIDN'T CHECKED IT!
2014-08-19 21:23:28 +02:00