Challenges
Two-register assembly chain
Reverse engineering
Medium
Register-based assembly
Solves: 7
Two-register assembly chain
Author: CyberSamSU
Points
30
Now familiarize yourself with a broader instruction set that uses two registers (R0, R1):
| Mnemonic | Meaning |
|---|---|
MOV R0, n | R0 = n |
MOV R1, n | R1 = n |
ADD R0, R1 | R0 = (R0 + R1) mod 256 |
XOR R0, R1 | R0 = R0 XOR R1 |
OUT R0 | R0 dagi qiymatni belgi sifatida chiqaradi |
A 6-line block is repeated for each character. Note: now the operand of ADD and XOR is not a constant number, but the R1 register — meaning you first need to keep track of what value R1 had. The full program is in the attached file (dastur.txt).
Attached files
dastur.txt
Log in to download
SHA-256 checksums
dastur.txt: 0e24af6f4cd35bf26ec820ab73845e68e34eb7cf187322bb34c7bd9f7eb60dc8
Theory: learn the topic
To submit a flag, log in.