mirror of
https://github.com/aljazceru/securedorg.github.io.git
synced 2026-01-08 16:54:25 +01:00
adding detail
This commit is contained in:
@@ -27,6 +27,15 @@ The hint here is the value tested against 0xFB5E. There is a function that proce
|
||||
The first loop preps the answer array.
|
||||

|
||||
|
||||
In python it looks like this:
|
||||
```
|
||||
answer = stored_bytes[:]
|
||||
for i in range(size):
|
||||
x = char ^ answer[i]
|
||||
x = (x + 0x22) & 0xff
|
||||
answer[i] = x
|
||||
```
|
||||
|
||||
## Main algorithm ##
|
||||
The 4011E6 will then take the answer array in reverse and do some bit shifting while chaining addition based on 2 bytes because of the usage of ax and cx. This value will eventually equal to 0xFB5E.
|
||||

|
||||
|
||||
Reference in New Issue
Block a user