Description
Inspect the provided assembly dump and report the value placed into EAX. Convert the hexadecimal literal into decimal before wrapping it in picoCTF{...}.
Setup
Assembly readingDownload disassembler-dump0_a.txt
Grab the assembly dump and open it in your editor.
Locate the MOV that writes a constant into EAX.
wget https://artifacts.picoctf.net/c/509/disassembler-dump0_a.txt
cat disassembler-dump0_a.txt
Solution
- Step 1Find the immediate valueThe dump shows mov eax, 0x30, so the register ends with hexadecimal 0x30 at function exit.
- Step 2Convert to decimalTranslate 0x30 to decimal (48) via printf, python, or any converter, then format picoCTF{48}.printf "picoCTF{%d}\n" 0x30
Flag
picoCTF{48}
Every challenge in the Bit-O-Asm series hides the answer in a MOV/arith instruction-reading the dump carefully is all you need.