Skip to main content
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):

MnemonicMeaning
MOV R0, nR0 = n
MOV R1, nR1 = n
ADD R0, R1R0 = (R0 + R1) mod 256
XOR R0, R1R0 = R0 XOR R1
OUT R0R0 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
Hints 3
Opening a hint reduces the points you get for solving this challenge.
Hint 1 −3 pts Log in
Hint 2 −6 pts Log in
Hint 3 −9 pts Log in
To submit a flag, log in.

First solvers

1. W.o.X 09.09.2026
2. Qodirxon Yoqubjonov 18.09.2026
3. Faxriddin Oripov 02.10.2026
4. Абдул 09.10.2026
5. Mirjaxon Qaxxarov 27.10.2026
6. Odam 06.11.2026
7. arcanum 11.11.2026