Skip to main content
Tweeted twitter.com/StackReverseEng/status/888891061736701953
Fixed grammar, spelling and formatting. Added more information to make the question more detailed.
Source Link

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?

so i'm trying to write a keygen to a crack me that i learn from i got stuck so what happens there is pretty simple:

lets say that i inserting 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 as we can see here the first DWORD is being Xor'ed with 0x1234567 so it turns to 0x56771233

Then ther is a AND operation over the first byte so 0x56 turns to 0x6

  After that we move to the second DWORD and it dose this again so everything is good until now.

My question is i know i can inverse XOR but is it possible with AND ?

I'm trying to write a keygen to a crack me that I'm learning from and I got stuck. What happens there is pretty simple:

Let's say that I entered the password: "12121212"

XOR DWORD PTR DS:[ECX+EAX],1234567
AND BYTE PTR DS:[ECX+EAX],0E
ADD ECX,4
CMP ECX,8

As we can see, the first DWORD of the password (0x32313231, notice that x86 processors use little-endian layout) is being XORed with 0x1234567 so 0x32313231 ^ 0x1234567 results with 0x56771233. Then there is an AND operation on the first byte (0x56) of the manipulated password and 0xe which results with 0x6. After that, the program repeats the operations, this time on the second DWORD of the password.

My question is: I know I can reverse XOR but is it possible with AND operation?

edited tags
Link
Xozu
  • 45
  • 1
  • 6
Source Link
Xozu
  • 45
  • 1
  • 6

Inverse And operation

so i'm trying to write a keygen to a crack me that i learn from i got stuck so what happens there is pretty simple:

lets say that i inserting 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 as we can see here the first DWORD is being Xor'ed with 0x1234567 so it turns to 0x56771233

Then ther is a AND operation over the first byte so 0x56 turns to 0x6

After that we move to the second DWORD and it dose this again so everything is good until now.

My question is i know i can inverse XOR but is it possible with AND ?