Log in

View Full Version : win32 api debugging delphi


Broomop
January 9th, 2011, 03:14
i want to know how i can debug a process in delphi and change the registers on execute of code in a process and change them. Is this possible and does anyone have any examples?

dELTA
January 9th, 2011, 16:51
Be more specific, or this thread will be junked...

Broomop
January 17th, 2011, 14:25
well like for example a piece of code in the exe has mov [eax+0x22], edx

i want to work out what edx is without touching the code. i know you can do it by finding pointers etc. but i don't want to do this i want to debug the register itself.

disavowed
January 18th, 2011, 00:54
http://www.ollydbg.de

BanMe
January 18th, 2011, 01:41
www.cheatengine.com check out the source code.. for delphi examples of such tasks.

dELTA
January 18th, 2011, 10:32
To automate/implement this yourself, the basic technique would be to attach to the application with your own tool, using the Windows Debug API, set breakpoints in the desired locations, and then use the debug APIs for reading/writing the processor context, and then finally return control to the target again.