Log in

View Full Version : softICE question


gas can
March 25th, 2001, 13:21
Hi all,
I'm having trouble finding the click counter mechanism in a program!.
+ORC in his tutorial talks of doing "snap saves" and "snap compares" and being able to print them out!.
How is this acheived in softICE!, I have read the pdf files and tried several ideas with no success!
ps. Another problem with +ORC tutorial is that when I follow his small debug routine to stop the system clock, it wont stop!. I run win98 but I've also tried the above in dos mode.
Please help, I have practised some of his more advanced articles and have built up a better knowledge of asm but I am stuck on this one!.

Sam

tsehp
March 25th, 2001, 19:55
two easy ways :
first locate the window's handle by the hwnd command, then do a bmsg wm_leftbuttondown (or related) this will trigger the window's message handler, by tracing you could be soon or later inside the routine that count the clicks

second : count the clicks yourself I'm not kidding but find the exact number of clicks you do before it quits, then scan the code to find a cmp eax, (number) or instruction related, do your list and try to patch them (ugly method).