Flag: Tornado! Hurricane!

 Forums >>  Debuggers  >>  How to step through a ThreadProcess?

Topic created on: November 25, 2010 12:26 CST by rceresearch .

In many malware samples, it is observed that the malware calls the API
CreateThread()
With the third argument being a  START_ADDRESS of a routine that defines the thread's activity. But while debugging through Ollydebugger generally, I am not able to step into the thread process as it starts a separate thread.

Any idea on how to handle such scenarios? I see there is a tab "T" that lists the Threads with states and options to control their state  but don't know how to use them to achieve single stepping the thread code.

  waleedassar     November 25, 2010 14:02.52 CST
In ollydbg options->Debugging options -> Events
Then check "Break on new thread".


Or you can do it the harder way by simply putting a breakpoint in kernel32.dll.

This can be applied on Windows Xp.
Windows Vista has a different breakpoint, but i don't have windows Vista on my PC right now.

  rceresearch   November 26, 2010 00:48.46 CST
Hi waleedassar,

Thank you. Now, I can see the Olly breaking on a thread's start. I need to learn more how to use it as I can not see the thread procedure loaded in the memory where Olly breaks.
Can you please direct me with some sample where this can be applied and seen.

  waleedassar     November 27, 2010 13:38.56 CST



  rceresearch   November 28, 2010 22:09.24 CST
Hi waleedassar, Really Great.. You have explained it very simply.. Thank you so much...
By the way how did you learn these tricks... is it simply by practicing the different options or by reading some books or articles??

  506398911qqcom     March 18, 2011 03:21.11 CDT
maybe you can set a breakpoint at the address of a thread and run then OD can stop the new thread oep. then you can debug it.

Note: Registration is required to post to the forums.

There are 29,956 total registered users.


Recently Created Topics
pydbg load vs attach
Jun/19
pydbg bp_set_mem
Jun/18
Disassembling Motoro...
Jun/13
ida plugin writing f...
Jun/02
New version of RE-Go...
May/29
Decompiling raw bina...
May/22
Incorrect bitness wh...
May/20
PaiMei stalker modul...
May/19
Attach to program us...
May/13
IDA PRO how to make ...
May/12


Recent Forum Posts
pydbg load vs attach
kitochou
pydbg bp_set_mem
kitochou
pydbg, memory breakp...
kitochou
Good Binary Code Pro...
alton
Int 3 anti debug?
SteveIRQL
Attach to program us...
SteveIRQL
Ollydbg 2.0 - Plugin...
openrce...
IDA PRO how to make ...
codeinject
FACT: OpenRCE is dead.
codeinject
IDA Resource Viewer ...
r2x64


Recent Blog Entries
26yyg1kf
Jun/19
your muscles get larger Men...

26yyg1kf
Jun/19
Mens 2011 Vibram Classic fo...

26yyg1kf
Jun/19
Vivo Barefoots up to Discou...

kitochou
Jun/18
pydbg

lowpriority
Apr/13
OllyMigrate Plugin for Olly...

More ...


Recent Blog Comments
capadleman on:
Jun/19
Using NtCreateThreadEx for ...

newlulu on:
Jun/10
Branch tracing and LBR acce...

newlulu on:
Jun/10
Advanced debugging techniques

newlulu on:
Jun/10
2 anti-trace mechanisms spe...

newlulu on:
Jun/10
OllyMigrate Plugin for Olly...

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit