so i'mI'm trying to write a keygen to a crack me that i learnI'm learning from iand I got stuck so what. What happens there is pretty simple:
letsLet's say that i insertingI entered the password of: "12121212"
XOR DWORD PTR DS:[ECX+EAX],1234567
AND BYTE PTR DS:[ECX+EAX],0E
ADD ECX,4
CMP ECX,8
So asAs we can see here, the first DWORD
of the password (0x32313231
, notice that x86 processors use little-endian layout) is being Xor'edXORed
with 0x1234567
so it turns to 0x32313231 ^ 0x1234567
results with 0x56771233
Then ther.
Then there is aan AND
operation overon the first byte so (0x56
turns to) of the manipulated password and 0xe
which results with 0x6
. After that we move to, the program repeats the operations, this time on the second DWORD
and it dose this again so everything is good until nowof the password.
My question is i: I know iI can inversereverse XOR
but is it possible with AND
operation?