lordor
January 7th, 2004, 05:12
This is very simple crackme,use some cryptography arihmetic.I hope you can learn something from this crackme.If you register succeeded,you will see a picture.
lordor
1.7
lordor
1.7
View Full Version : Crypto crackme: Rijndael
00401286 PUSH crackme.0040E304 ; Arg2 = 0040E304 -> empty buffer
0040128B PUSH crackme.0040E374 ; Arg1 = 0040E374 -> the serial you have typed
00401290 LEA ECX,DWORD PTR SS:[ESP+24]
00401294 CALL crackme.004023B0
004012B9 PUSH crackme.0040E374 ; 40E374 points to an empty buffer
004012BE PUSH crackme.0040E304 ; 40E304 points to a string obtained from the mix
; of the serial and the rijndael returned bytes
004012C3 LEA ECX,DWORD PTR SS:[ESP+24]
004012C7 STOS WORD PTR ES:[EDI]
004012C9 CALL crackme.004026B0
[Originally Posted by NeO]The crypto calls are the same only the key is different. |
key = 0x01 0x03 0x05 0x07 0x09 0x01 0x02 0x06 0x07 0x08 0x09 0x00 0x07 0x03 0x07 0x08
Rijndael_encrypt(serial, key) = r1
r1 and serial are mixed using the call at 4012A3; rm1 is the result
Rijndael_decrypt(rm1, key) = r2
final_check...
00401304 MOV EDX,DWORD PTR DS:[40E379] <-- edx takes char number 6,7,8 and 9 from r2
...
00401325 MOV DWORD PTR DS:[40E308],EDX <-- move them
0040132B MOV DL,BYTE PTR DS:[40E340] <-- dl = the first char of the code in hex format
...
00401336 CMP DL,BYTE PTR DS:[40E308] <-- char number 6 from r2 must be equal to dl
...
00401350 JNZ SHORT crackme.004013B1 <-- jump to error if not equals, otherwise: registered
gentables(); // No params...
gkey(int,int,char *); // For Rijndael 128bit you have to pass 4 and 4 as
// for the first 2 params; the 3° param is the key
encrypt(char *); // Encrypts text passed as (char *)
decrypt(char *); // Decrypts text passed as (char *)
[Originally Posted by lordor]I have update the attaching file |
[Originally Posted by schar]Code: 299068997 Key:9610BE12D6E4132827705794F435CF8C pop up a box but no pics. |
[Originally Posted by lordor]please see the showing pics's code again or bpm the reg code,that will take some byte to cmp |