📚
OpenRCE
is preserved as a read-only archive. Launched at RECon Montreal in 2005. Registration and posting are disabled.
About
Articles
Book Store
Distributed RCE
Downloads
Event Calendar
Forums
Live Discussion
Reference Library
RSS Feeds
Search
Users
What's New
Customize Theme
bluegrey
blackgreen
metal
simple
Flag:
Tornado!
Hurricane!
Login:
Password:
Remember Me
Register
Blogs
>>
RabidCicada
's Blog
Created: Monday, March 17 2008 10:28.41 CDT
Printer Friendly ...
First Round-Rabid
Author:
RabidCicada
# Views:
2138
Righto,
So my first real foray into reversing just went down. With the help of this site and it's people I won the round and am back in the ring for round 2. The Neocron2 game client is going down:).
Deadlisting is easy for me but getting into debugging was a tiny bit tricky:).
Problem was I couldn't debug the application and have it work correctly. It kept breaking on certain breakpoints in ntdll.dll and then when I overcame that it kept failing to open an ini file.
Solution was to alter the "events of interest" for IDA pro and set the working directory in the debugger for the executable.
Doh. Now I sure felt like an idiot but, hey, eveyrone's gotta learn somehow. I had assumed that that the working directory only needed to be set if it was supposed to be different than the "default" of the exe's current directory. That's not the case, and I hadn't actually really thought about troubleshooting that. I assumed it was a problem elsewhere in my setup.
The other issue was to do with what events the debugger was interested in. I now realize that it was probably stopping on every dll load and that would explain why I had to pass on a couple the first few times. Then I found the settings for events of interest and played with them till the program loaded all the way and hit winmain.
I think I may have chosen a large project, being that the exe imports a crap load of stuff from other game dlls but I liked the game when I played it and figure I'll actually expend the effort to take a look at it from the inside.
One lesson that was reinforced here was to think about the simple/obvious things. I initially had a suspicion that the problem was anti-debug (having a security focused job). I spent time looking for it and ruled it out after some investigation. The actual problem was staring me in the face the whole time "It can't find the file you idiot". And I overlooked it for a small time:).
Blog Comments
Raindog
Posted: Friday, March 21 2008 20:43.00 CDT
So something that is always helpful is to look at the callstack and the exception id. The call stack will give you an idea as to what conditions made the app go down the error path, and the exception id or error code will potentially give you more clues. If you looked at the error code you would have immediately seen ERROR_FILE_NOT_FOUND =\
Add New Comment
Comment:
There are
31,328
total registered users.
Recently Created Topics
[help] Unpacking VMP...
Mar/12
Reverse Engineering ...
Jul/06
let 'IDAPython' impo...
Sep/24
set 'IDAPython' as t...
Sep/24
GuessType return une...
Sep/20
About retrieving the...
Sep/07
How to find specific...
Aug/15
How to get data depe...
Jul/07
Identify RVA data in...
May/06
Question about memor...
Dec/12
Recent Forum Posts
Finding the procedur...
rolEYder
Question about debbu...
rolEYder
Identify RVA data in...
sohlow
let 'IDAPython' impo...
sohlow
How to find specific...
hackgreti
Problem with ollydbg
sh3dow
How can I write olly...
sh3dow
New LoadMAP plugin v...
mefisto...
Intel pin in loaded ...
djnemo
OOP_RE tool available?
Bl4ckm4n
Recent Blog Entries
halsten
Mar/14
Breaking IonCUBE VM
oleavr
Oct/24
Anatomy of a code tracer
hasherezade
Sep/24
IAT Patcher - new tool for ...
oleavr
Aug/27
CryptoShark: code tracer ba...
oleavr
Jun/25
Build a debugger in 5 minutes
More ...
Recent Blog Comments
nieo
on:
Mar/22
IAT Patcher - new tool for ...
djnemo
on:
Nov/17
Kernel debugger vs user mod...
acel
on:
Nov/14
Kernel debugger vs user mod...
pedram
on:
Dec/21
frida.github.io: scriptable...
capadleman
on:
Jun/19
Using NtCreateThreadEx for ...
More ...
Imagery
SoySauce Blueprint
Jun 6, 2008
[+] expand
View Gallery
(11) /
Submit