Code:
jacktripper:/>dir /b *me*
readme.txt
OllyDebugMe.rar
OllyDebugMe
jacktripper:/>
lets look at the exes
Code:
jacktripper:/>dir /s /b *he*.exe
\odbg110\OllyDebugMe\Bin\HelloWorldFromDelphi.exe
\odbg110\OllyDebugMe\Bin\1 - Exe Only\HelloWorldFromDelphi.exe
\odbg110\OllyDebugMe\Bin\2 - Exe with TD32\HelloWorldFromDelphi.exe
\odbg110\OllyDebugMe\Bin\3 - Exe with RDS\HelloWorldFromDelphi.exe
\odbg110\OllyDebugMe\Bin\4 - Exe with TD32 and RDS\HelloWorldFromDelphi.exe
\odbg110\OllyDebugMe\Bin\5 - Exe with Map\HelloWorldFromDelphi.exe
\odbg110\OllyDebugMe\Bin\6 - Exe with Map and TD32\HelloWorldFromDelphi.exe
\odbg110\OllyDebugMe\Bin\7 - Exe with Map and RDS\HelloWorldFromDelphi.exe
\odbg110\OllyDebugMe\Bin\8 - Exe with Map and TD32 and RDS\HelloWorldFromDelphi.exe
jacktripper:/>
lets run one exe for trial
Code:
jacktripper:/>OLLYDBG.EXE "\odbg110\OllyDebugMe\Bin\8 - Exe with Map and TD32 and RDS\HelloWorldFromDelphi.exe"
jacktripper:/>
whats the initial log in ollydbg window
Code:
Log data
Address Message
OllyDbg v1.10
Command line: "\odbg110\OllyDebugMe\Bin\8 - Exe with Map and TD32 and RDS\HelloWorldFromDelphi.exe"
File '\odbg110\OllyDebugMe\Bin\8 - Exe with Map and TD32 and RDS\HelloWorldFromDelphi.exe'
Command line plugin v1.10
Written by Oleh Yuschuk
Bookmarks sample plugin v1.06 (plugin demo)
Copyright (C) 2001, 2002 Oleh Yuschuk
New process with ID 00000D18 created
00443184 Main thread with ID 0000085C created
00400000 Module \odbg110\OllyDebugMe\Bin\8 - Exe with Map and TD32 and RDS\HelloWorldFromDelphi.exe
Debugging information (Borland format) available <-------------- ??? its there whats the problem ?????
5D090000 Module C:\WINDOWS\system32\comctl32.dll
77120000 Module C:\WINDOWS\system32\oleaut32.dll
774E0000 Module C:\WINDOWS\system32\ole32.dll
77C10000 Module C:\WINDOWS\system32\msvcrt.dll
77D40000 Module C:\WINDOWS\system32\user32.dll
77DD0000 Module C:\WINDOWS\system32\advapi32.dll
77E70000 Module C:\WINDOWS\system32\RPCRT4.dll
77F10000 Module C:\WINDOWS\system32\GDI32.dll
7C800000 Module C:\WINDOWS\system32\kernel32.dll
7C900000 Module C:\WINDOWS\system32\ntdll.dll
00443184 Program entry point
Analysing HelloWor
1432 heuristical procedures
1284 calls to known, 378 calls to guessed functions
324 loops, 76 switches
lets check the sources and see if they are avialble
Code:
view --> source files
Source files
Module Source Source path
HelloWor (Absent) \odbg110\OllyDebugMe\Bin\8 - Exe with Map and TD32 and RDS\FMain.pas
HelloWor (Absent) C:\Develop\Avatar\OllyDebugMe\Source\HelloWorldFromDelphi.dpr
it is looking for two source files and they are missing
lets see where they are
Code:
jacktripper:/>dir /s /b *.pas
\odbg110\OllyDebugMe\Source\FMain.pas
jacktripper:/>
lets copy them to path
Code:
jacktripper:/>copy OllyDebugMe\Source\FMain.pas "OllyDebugMe\Bin\8 - Exe with Map and TD32 and RDS"\.
1 file(s) copied.
jacktripper:/>
check again
Code:
lets check source files again
Source files
Module Source Source path
HelloWor FMAIN.PAS \odbg110\OllyDebugMe\Bin\8 - Exe with Map and TD32 and RDS\FMain.pas
HelloWor (Absent) C:\Develop\Avatar\OllyDebugMe\Source\HelloWorldFromDelphi.dpr
copy the remaining we need to make adirectory
Code:
jacktripper:/>mkdir C:\Develop\Avatar\OllyDebugMe\Source
lets copy it to place
Code:
jacktripper:/>dir /s /b *.dpr
\odbg110\OllyDebugMe\Source\HelloWorldFromDelphi.dpr
jacktripper:/>copy OllyDebugMe\Source\HelloWorldFromDelphi.dpr C:\Develop\Avatar\OllyDebugMe\Source\.
1 file(s) copied.
jacktripper:/>
lets check view -> source files again
Code:
Source files
Module Source Source path
HelloWor FMAIN.PAS \odbg110\OllyDebugMe\Bin\8 - Exe with Map and TD32 and RDS\FMain.pas
HelloWor HELLOWORLDFROMDELPHI.DPR C:\Develop\Avatar\OllyDebugMe\Source\HelloWorldFromDelphi.dpr
lets look at disassembly
Code:
00443184 >PUSH EBP ; begin
00443185 MOV EBP, ESP
00443187 ADD ESP, -0C
0044318A MOV EAX, HelloWor.0044304C
0044318F CALL HelloWor.Sysinit::InitExe
00443194 MOV EAX, DWORD PTR DS:[444C38] ; Application.Initialize;
00443199 MOV EAX, DWORD PTR DS:[EAX]
0044319B CALL HelloWor.Forms::TApplication::Ini>
004431A0 MOV ECX, DWORD PTR DS:[444D04] ; Application.CreateForm(TForm1, Form1);
004431A6 MOV EAX, DWORD PTR DS:[444C38]
004431AB MOV EAX, DWORD PTR DS:[EAX]
004431AD MOV EDX, DWORD PTR DS:[442E44]
004431B3 CALL HelloWor.Forms::TApplication::Cre>
004431B8 MOV EAX, DWORD PTR DS:[444C38] ; Application.Run;
004431BD MOV EAX, DWORD PTR DS:[EAX]
004431BF CALL HelloWor.Forms::TApplication::Run
004431C4 CALL HelloWor.System::Halt0
lets look at pas file and follow in disassembler from there
view source files or ctrl+f5
select the hello ollydbg double click you are in disassembler at right place
see picture below