Gray-code rotation
Recover a 32-bit word from a Gray-code transform, then predict the rotation result.
01 Open the executable
Open gray-rotate.exe in PryIDA and bring up Executable Explorer. You need a Windows x64 host to run this PE.

02 Find the call
In Disassembly, select CALL at 0x140001020 for the recorded build. Its source begins at file offset 0x420. Right-click the instruction and find Save breakpoint from Assembly.

03 Name the breakpoint
Select that action, enter Challenge call, and click Save breakpoint. This attaches a name to the verified instruction in this build.

04 Rename and confirm
Open Runtime debugger → Saved breakpoints. Click the saved breakpoint’s Rename button and set it to Gray-code rotation · entry. Confirm the file offset stays the same.

05 Prepare the launch
Click Prepare launch with empty stdin. Check that one saved breakpoint matches. Type gray-rotate.exe to authorize this test and click Launch paused.

06 Verify the breakpoint bound
Find the named row under Saved breakpoints. Bound means PryIDA matched the source instruction to the loaded image. The startup thread is still suspended.

07 Read the call arguments
Click Continue. The named stop appears with raw values for RCX, RDX, R8 and R9. These are 0x13579bdf, 0x2468ace0, 9 and 3. Use them to check the prediction below.

Predict the result
These intermediate values come from a separate calculation using the four observed inputs. The debugger verifies the call boundary and final word.
- Gray-code the first word by XORing it with itself shifted right once. The intermediate is
0x1afc5630. - Recover the binary word by XORing successive right shifts of 1, 2, 4, 8 and 16. The result is
0x13579bdf. - XOR the recovered word with the second argument to get
0x373f373f. Rotate that left by 9 bits to get0x7e6e7e6e. - Add three times
0x10203and keep the low 32 bits. Compare0x7e718477with RAX.
08 Save the call and its screenshot
Click Save stop + screenshot. Wait for the screenshot attachment confirmation.

09 Step Over and read the return
Click Step Over. PryIDA pairs the verified stop at 0x140001025 with the preceding call and shows RAX 0x7e718477.

10 Save the return and its screenshot
Click Save stop + screenshot again. The return goes into a second evidence step.

11 Confirm the clean exit
Click Continue one final time. Confirm the Runtime state says exited. The receipt separately records exit code 0.

12 Review the saved call
Open Walkthrough, choose the first step, and expand Screenshot evidence. Check the title, attached image and source range at 0x420. The Source Hex action reopens the file evidence.

13 Review the saved return
Select the second step. Confirm its screenshot and observation identify RAX 0x7e718477 at file offset 0x425.

Verified result
0x7e718477
Original SHA-256 c3db91ce34e983599733090116fa7d94b2d7cc5c238b1b9176b0b72cc8fa6dfe