jackall
November 1st, 2010, 12:29
Code:
01-.text:00401040 push offset aKris_kaspersky ; "kris.kaspersky"
02.text:00401045 call sub_404C00
03.text:0040104A add esp, 8
04.text:0040104D test eax, eax
05.text:0040104F jz short loc_401065
06.text:00401051 push offset aWrongPassword ; "\nwrong password\n"
07.text:00401056 push offset unk_419570
08.text:0040105B call sub_401090
09.text:00401060 add esp, 8
10.text:00401063 jmp short loc_401077
11.text:00401065 ; ------------------------------------------------------------
12.text:00401065
13.text:00401065 loc_401065: ; CODE XREF: sub_401000+4F j
14.text:00401065 push offset aPasswordOk__ ; "\npassword OK..!\n"
15.text:0040106A push offset unk_419570
16.text:0040106F call sub_401090
17.text:00401074 add esp, 8
18.text:00401077
19.text:00401077 loc_401077: ; CODE XREF: sub_401000+63 j
20.text:00401077 xor eax, eax
21.text:00401079 mov ecx, [ebp+var_4]
22.text:0040107C xor ecx, ebp
23.text:0040107E call sub_404C88
24.text:00401083 mov esp, ebp
25.text:00401085 pop ebp
26.text:00401086 retn
line 04:
on this line , by changing (test eax, eax)--to--(xor eax, eax)
the code execution jumps over the protection and displays 'password ok' message...
Code:
.0040104d: 33c0 xor eax, eax
line06:
i would like to replace the 'wrong password' string here, with another
string say, like 'copycatcrackr! and i used hiew32 to modify the string...
Code:
.004131c0: 2e 6b 61 73-70 65 72 73-6b 79 00 00-0a 63 6f 70 .......... ◙cop
.004131d0: 79 63 61 74-20 63 72 61-63 6b 72 0a-00 00 00 00 ycat crackr◙.
the changed file(a1) loaded in ida , shows the changed string clearly:
Code:
.rdata:004131cc acopycatcrackr db 0ah ; data xref: sub_401000+51 o
.rdata:004131cc db 'copycat crackr',0ah,0
but, when the exe is run, the 'copycat cracker 'message, is missing still.!
line09:
function epilogue, collapses stack frame after the completion of the function...
by [add esp, 8]
but as this process is repeated on (line:17) , i inserted NOP on line 09..(a2).
still, more garbage..!
all 3 files are attached, for your kind perusal..
thank you..!