PUBLIC EXERCISE / ELF X86-64
r6 · Cancel the repeated XOR
Simplify a three-pass calculation into one XOR per input byte.
Original puzzle at the reviewed revision · All five public exercises
01 Identify and open the file
Open r6, select File Details, and confirm the fingerprint before using any offsets. Analyze main and check_password with REA.

02 Separate input length from the score
Check the main call and read check_password. The function first requires 0x15, or 21, bytes. The loops then calculate a total. Main takes the success branch when that total is zero.

03 Count exactly how many bytes the loop visits
The stop test includes the final index, so each inner loop visits 43 positions. The index wraps every 21 bytes. Forty-three is two trips around the input plus one more byte at the starting position. With XOR, applying the same byte twice cancels it. Each inner loop therefore contributes just that starting byte.

04 Read the first table
At virtual address 0x601050, follow key1 to its file bytes. A virtual address is where the instruction expects the table in memory. A Hex offset is its position in the file. Use the listed offset when jumping in Hex.

05 Read the second table and combine the rules
Follow key2 at 0x601070. The three identical input passes leave one input byte after pairs cancel. The contribution for position i is input[i] XOR key1[i] XOR key2[i]. Since the 21 contributions are nonnegative and their sum fits easily in the accumulator, a total of zero requires every contribution to be zero.

06 Solve one position and replay all 21
At position zero, 0x10 XOR 0x74 is 0x64, the letter d. Repeat the calculation at each position. The independent replay uses the full three-loop form and confirms that all 21 contributions, and their sum, are zero.

Reveal the solution
dude_you_killed_it_gg
The replay reads the original ELF bytes and applies the recovered check to this input. Open the receipt for the exact byte ranges and verification values.