Aimless
January 25th, 2002, 12:10
Its called instrmentation/profiling of the code. You need the profiler/instrumenter/sourcecode/debug symbols..[OR}
There is another tool...
...And its called (DEBUGGER)!!!
Surprised??
Don't be.
ALL debuggers have this capability to log the necessary.
Lets talk about the two main ones:
(a) SoftICE
(b) M$ on available on www.microsoft.com/ddk/debugging
Both are heavy-duty ones, though softice is better if you want to crack VXD's but M$ is better if you want to crack APPS.
(a) SOFTICE
1. Turn off the code window (that correct!!)
2. Keep on pressing F10 key (or F8) and see the disassembly as it progresses!!
3. Feeling bored? Try giving the command T 300 in softice (this will trace and display the 300 lines in softice starting from the address you speficified)
4. Want to do the same as point3, but for P? You can. Write a macro that says:
MACRO XXX = "P; XXX"
This actually LOOPS the macro. The last line in this macro will ALWAYS be a CALL .... (don't bother if you do not understand this. Just try it)
(b) M$ Debugger
Slightly tricky.
(1) Ensure that the command window is open
(2) Ensure that before the debugging starts you have the entry point of the exe (m$ does not give you that

)
(3) Ensure file logging is on
(4) Start and keep on pressing F10 (you! here too) and the command window and the log files get filled with the instructions. Better than softice because with each instruction you also get the REGISTER figures (good!)
(5) Bored of pressing the same? Try giving:
$<xyz.txt
where xyz.txt is a file that mentions
P
$<xyz.txt
as a LOOP in itself.
(c)
If you are looking at PROFESSIONAL levels of the same, you may want to try ETCH, the Washington.edu site (this does not even require symbols. Only an binary image will also do (!!!) But sadly, the site is currently out for repairs (I think). Try giving:
"instrument win32 binary without source"
without the quotes in Google, and you can carry on from there.
---------
Officially speaking? No tools CURRENTLY does that that I know of, except maybe hacker written routines.
Feel free to email me to let me explain how to use IDA to generate a listing that can show up in M$ debugger (with IDA comments!!!!! YEAH!!!)., tho' its a bit crude in implementation...
...Have Phun