Results 1 to 3 of 3

Thread: How to find specific instruction?

  1. #1
    CFSworks
    Guest

    How to find specific instruction?

    I need to find an ADD where one of the numbers being added is '84'. How do I do that? Could someone give an example, please? Thanks in advance.
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  2. #2
    haggar
    Guest

    How to find specific instruction?

    You can writte script for OllyScript plugin that will find first such opcode or all ADD opcodes and wrote their addresses in log window.

    You said that added number is 84. To what is added? To register, memory address...?

    This is one example; if you want to find:

    0040170B 05 84000000 ADD EAX,84

    then script goes (search in whole code section where, for example, code section starts from 401000)

    findop 401000,#0584000000#
    msg $RESULT
    ret

    This script will find first ADD EAX,84 opcode starting from 401000 address and it will display in MessageBox it's offset.

    Read readme.txt which comes with Script plugin and ou will very fast learn how to write scripts.
    I promise that I have read the FAQ and tried to use the Search to answer my question.

  3. #3
    Super Moderator
    Join Date
    Dec 2004
    Posts
    1,525
    Blog Entries
    15

    How to find specific instruction?

    right click --> search for constant -- type 84 press ok it will show the
    first occurance keep pressing ctrl+ L for all other occurances or till the memory blaock ends

Similar Threads

  1. Is Import Rebuilding OS-specific?
    By TiGa in forum The Newbie Forum
    Replies: 3
    Last Post: August 3rd, 2007, 17:04
  2. How to find all rows/lines with a specific memory address?
    By tDJ in forum OllyDbg Support Forums
    Replies: 4
    Last Post: October 21st, 2005, 01:26
  3. Nb question: specific string breakpoint
    By cyb0rg in forum OllyDbg Support Forums
    Replies: 3
    Last Post: August 2nd, 2005, 13:04
  4. How to watch a specific range of memory ?
    By Xtra in forum OllyDbg Support Forums
    Replies: 2
    Last Post: May 1st, 2005, 01:59
  5. Thief 2 but not target specific
    By Fake51 in forum Advanced Reversing and Programming
    Replies: 3
    Last Post: July 2nd, 2001, 11:31

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
  •