Results 1 to 7 of 7

Thread: Ollydbg overwrites code when editing instructions

Threaded View

  1. #1

    Ollydbg overwrites code when editing instructions

    I'm a newbie when it comes to this kind of stuff so please forgive me. As I'm trying to change values for some instructions when debugging a program I'm sometimes out of luck. If I change a value for the first instruction then the next instruction gets messed up. I believe this has to do with not using equal bytes.

    This is a original screenshot:
    Name:  Skärmavbild 2012-07-21 kl. 18.30.55.png
Views: 7085
Size:  201.6 KB
    And this is a screenshot where I have tried to change "MOV BYTE PTR DS:[ESI+C1],AL" to "MOV BYTE PTR DS:[ESI+0C1],2"
    but this also changes "MOV EDX,DWORD PTR DS:[9BBAA4]" to "ADC EAX,9BBAA4".
    Name:  Skärmavbild 2012-07-21 kl. 18.31.26.png
Views: 7528
Size:  201.8 KB

    Do you have any idea of how I could change "MOV BYTE PTR DS:[ESI+C1],AL" to for example "MOV BYTE PTR DS:[ESI+0C1],2" without overwriting the other code?

    Edit: Sorry for posting in the wrong forum, should be in the OllyDbg Support Forums even if this is a newbie question.
    Last edited by universalis; July 21st, 2012 at 11:45.
    I promise that I have read the FAQ and tried to use the Search to answer my question.

Similar Threads

  1. 4 instructions and more?
    By BanMe in forum Advanced Reversing and Programming
    Replies: 6
    Last Post: January 19th, 2013, 14:23
  2. Ollydbg overwrites code when editing instructions
    By universalis in forum The Newbie Forum
    Replies: 1
    Last Post: July 21st, 2012, 14:12
  3. Ollydbg overwrites code when editing instructions
    By universalis in forum Plugins (General)
    Replies: 1
    Last Post: July 21st, 2012, 14:12
  4. ADD and DEC instructions
    By cse_india in forum The Newbie Forum
    Replies: 12
    Last Post: June 4th, 2006, 18:11

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •