Reverse Engineering RET Homepage RET Members Reverse Engineering Projects Reverse Engineering Papers Reversing Challenges Reverser Tools RET Re-Search Engine Reverse Engineering Forum Reverse Engineering Links

Go Back   Reverse Engineering Team Board > Reverse Engineering Board > File Unpacking
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2023, 04:15 AM
CodeRipper CodeRipper is offline
Member
 
Join Date: Mar 2009
Location: Romania
Posts: 27
Default Themida HWID mismatch patch part2

Themida HWID mismatch patch part2
Themida HWID mismatch patch (part1):
http://www.reteam.org/board/showthread.php?t=7459

This time we let the locked to different machine message run;
we set breakpoint to end of MessageBoxExW
76DA29DA C2 1400 RETN 0x14
We click ok on message, it breaks we return from it and we see return address from Section=.winlice
We click that address and we choose Search for -> Sequence of commands (Ctrl+S)
we enter this:
mov r32,[r32]
cmp [r32],r32
PUSHFD

we set breakpoint to all found addresses on cmp [r32],r32
we found something like
0133B1BF 8B09 MOV ECX,DWORD PTR DS:[ECX]
0133B1C1 3901 CMP DWORD PTR DS:[ECX],EAX
0133B1C3 9C PUSHFD
0133B1C4 81E2 24000000 AND EDX,0x24

On first breakpoint we notice the value of EAX register as 7AC7A65D
we execute the cmp instruction and we set ZF to 1 by double click.
as this time we won't change anything until a new message is shown;
after we click once again OK on the message we notice the value of EAX register as 7AC7A65D
we execute the cmp instruction and we set ZF to 1 by double click.
And the program runs, we set breakpoint on memory to code section for finding OEP.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump





Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.