+ Reply to Thread
Showing results 1 to 7 of 7

Thread: OllyDbg questions

  1. #1

    Heretic
    poiuy_qwert is on a distinguished road
    Join Date
    Jun 2005
    Posts
    39
    Downloads
    7
    Uploads
    0

    OllyDbg questions

    I've been learning reversing with OllyDbg for a bit now and I have had a couple questions along the way, so i'll be using this thread to ask various questions about it when i have them.

    Right now i'm trying to find a way to play a wav in starcraft, which is located in one of starcrafts mpqs. I've found where the Play WAV trigger (for custom maps) is located and have stepped through a lot of it figuring out what is going on. I have tried calling it with my own custom data (the data is correct), but it isn't playing the sound. What I want to do is find where in the function its deviating from when I play the wav normally with a trigger. I've tried stepping through both ways until it goes somewhere I don't recognize, but there is just too much to check. Is there an easier way to do this? The "Trace" options stand out but I don't really know how to use them.

    Thanks in advance!

  2. #2

    Advocate
    zonemikel has a spectacular aura about zonemikel's Avatar
    Join Date
    Jul 2007
    Location
    TeXaS
    Posts
    308
    Downloads
    0
    Uploads
    0

    If you wanted to play a sound i would hook research how direct x sound works, figure out how to use it in cpp, then when you start olly click the 'e' look for dsound right click then hit view names and look for the function that plays the sound, you can bp on it and execute till return and see what actually calls it.

    this is all theory of course.
    Go to the Beginning . . . Continue till the end . . . when you get to the end, stop.

    "Socrates concluded he was indeed the wisest man, if only because he knew he was ignorant. Then as now, this is the cardinal rule of intelligence analysis: we take from it what we bring to it: our fears and hopes, selfish biases and selfless concerns, our insight and blindness."




  3. #3

    Heretic
    poiuy_qwert is on a distinguished road
    Join Date
    Jun 2005
    Posts
    39
    Downloads
    7
    Uploads
    0

    I already have what calls it as stated in my first post (the Play WAV custom map trigger), i just was looking for an easy way to find where two calls to a function with different parameters, deviate in execution. Also, I found why the sound wasn't playing (i had the wrong file path for the WAV in the MPQ :/) so it works now, but that was just an example, my question still stands.

  4. #4

    Advocate
    zonemikel has a spectacular aura about zonemikel's Avatar
    Join Date
    Jul 2007
    Location
    TeXaS
    Posts
    308
    Downloads
    0
    Uploads
    0

    Well im not sure exactly what your question is, if its how to find other things that call a function then ill try and answer that. Sorry, sometimes when we ask questions we know what we are asking but when others read it its kinda misty.

    Anyway to find other functions that call a function go to the first line of the function in question, normally like push ebp or something then right click and "find references to" then "selected command". That will find every function that calls that command.

    Also Ida debugger has a graphing thing that shows how the functions all link together. Also immunity debugger has a simpler graphing thing, immunity is based off olly, it looks the same.

    hope that helps
    Go to the Beginning . . . Continue till the end . . . when you get to the end, stop.

    "Socrates concluded he was indeed the wisest man, if only because he knew he was ignorant. Then as now, this is the cardinal rule of intelligence analysis: we take from it what we bring to it: our fears and hopes, selfish biases and selfless concerns, our insight and blindness."




  5. #5

    Heretic
    poiuy_qwert is on a distinguished road
    Join Date
    Jun 2005
    Posts
    39
    Downloads
    7
    Uploads
    0

    No, thats not what i meant. I was saying, if I am calling a function with two different sets of parameters, and I want to easily find out where in that function the execution is different. For example i have the function "void test(int a,int b)" and i do "test(1,2)" and it does one thing, and i do "test(2,1)" and it does another. I want to easily find the CMP/TEST or whatever is responsible for the difference.

  6. #6

    Advocate
    zonemikel has a spectacular aura about zonemikel's Avatar
    Join Date
    Jul 2007
    Location
    TeXaS
    Posts
    308
    Downloads
    0
    Uploads
    0

    Quote Originally Posted by poiuy_qwert View Post
    No, thats not what i meant. I was saying, if I am calling a function with two different sets of parameters, and I want to easily find out where in that function the execution is different. For example i have the function "void test(int a,int b)" and i do "test(1,2)" and it does one thing, and i do "test(2,1)" and it does another. I want to easily find the CMP/TEST or whatever is responsible for the difference.
    Oh gotcha ! Yes thats what the "hit trace" is for, what the hit trace will do is set a bp on every command in the proc and highlight it differently if it was "hit" or not. This shows you which execution took place in the function. Like which stuff was jumped over and such.

    Its in the help docu for immunity, not sure about olly.
    Go to the Beginning . . . Continue till the end . . . when you get to the end, stop.

    "Socrates concluded he was indeed the wisest man, if only because he knew he was ignorant. Then as now, this is the cardinal rule of intelligence analysis: we take from it what we bring to it: our fears and hopes, selfish biases and selfless concerns, our insight and blindness."




  7. #7

    Heretic
    poiuy_qwert is on a distinguished road
    Join Date
    Jun 2005
    Posts
    39
    Downloads
    7
    Uploads
    0

    Ahhh. I see, I read the readme wrong for the trace stuff, makes sense now. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Hypn's OllyDbg Debug Logger v0.1
    By hypn in forum System & Utilities
    Replies: 6
    Last Post: 09-09-2009, 12:16 AM
  2. Multiple StarCraft - Basic Reversing with OLLYDBG
    By LCSBSSRHXXX in forum Hacking Tutorials
    Replies: 8
    Last Post: 02-22-2009, 03:29 AM
  3. Some questions
    By Akazukin in forum Flame Board
    Replies: 39
    Last Post: 10-28-2008, 04:50 PM
  4. 2 OllyDbg questions
    By hypn in forum Reverse Engineering
    Replies: 7
    Last Post: 05-16-2008, 12:09 AM
  5. sc crash with ollydbg
    By FreakF in forum Reverse Engineering
    Replies: 11
    Last Post: 09-12-2006, 11:20 PM

Posting Rules

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