BINARY BOMB: Help with phase four. (gdb) disas Dump of assembler code for functi
ID: 3665800 • Letter: B
Question
BINARY BOMB: Help with phase four.
(gdb) disas Dump of assembler code for function phase 4: BOx0000000000401169 +0. subIt $0x18, srsp 0x000000000040116d : leadioxc (rsp), 3rcx Ox0000000000401172 +9 lea Ox8 (Drsp), Srdx Ox0000000000401177 +14. mov $0x402aa1, besi 0x000000000040117C +19. mov S0x0, Beax Ox0000000000401181 +24: calla Ox400cb0 ox00000000004011 93 +42: $0xe, Seax Ox0000000000401196 +45: le Ox4011 9d phase 4+52> Ox00000000004011 98 K+47 9 callqOx401765 explode bomb Ox00000000004011 9d K+52A mov $0xe, tedix Ox00000000004011a2 +57: mov S0x0, Ses Ox000000000040117 : mov Ox8 (%rsp), Bedi Ox00000000004011ab K+66> callq Ox401136 Ox00000000004011b0 +71 : CmpUS0xd, teax Ox00000000004011b 3 (+74>: ne Ox4011bc phase 4+83> Ox00000000004011b5 : Cmpl $0xd, OxC (rsp) Ox00000000004011ba (+81: Ox4011ci phase_4+88> Ox00000000004011b +83. callq Ox401765 explode_bomb> Ox00000000004011c1 +88>: add $0x18, rsp Ox00000000000115 +92! reta End of assembler dump.Explanation / Answer
the first input is 2 because eeax is being compared to 2 in the statement so it starts with 2 and compares the rest of the numbers with 2.It checks if the return value is 2 or not.If its not the bomb will explode.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.