PDA

View Full Version : bit of a simple one here


GES1234
September 1st, 2008, 11:51
Hi all

Within Ollydbg I am having difficulty finding the part of assembly code i want to add a break point in. What i want to to do is put a break point in the very first instruction the program goes in to after a click of a certain button but i cannot find where this is in the code, is it possble to set an instant breakpoint on submission of any operation.

I've only been doing simple key gens in the past and been able to manually set my breakpoint.

susanalic
September 1st, 2008, 14:00
Read Chapter 3, "Windows and Messages", of Charles Petzold's Programming Windows. Once you understand how windows messages work, it's very easy to find the procedure that is called when pressing a button. There must be some tutorials on this matter.

Another possibility is to pause Olly after clicking the button and look at the call stack. The call after the messages loop (DispatchMessage, Sendmessage APIs, etc) will be what you are looking for.

You have not said what language your program is coded on, though; I'm supposing c/c++

vect0r
September 2nd, 2008, 05:59
If you want to see it visually, I recommend the Lena tutorials.. They have a number of video demonstrations of reversing. Again, in the time it took to write your post you would have identified a large number of examples on your nearest and dearest search engine.