Question: Need the output for this assembly code that i have posted. sub $0x18,%rsp mov %fs:0x28,%rax mov %rax,0x8(%rsp) xor %eax,%eax lea 0x4(%rsp),%rcx mov %rsp,%rdx mov $0x402945,%esi

Need the output for this assembly code that i have posted.

sub $0x18,%rsp mov %fs:0x28,%rax mov %rax,0x8(%rsp) xor %eax,%eax lea 0x4(%rsp),%rcx mov %rsp,%rdx mov $0x402945,%esi callq 0x400c40 <__isoc99_sscanf@plt> cmp $0x1,%eax jg 0x400fe1 callq 0x40168e cmpl $0x7,(%rsp) ja 0x401022 mov (%rsp),%eax jmpq *0x4026a0(,%rax,8) mov $0xd4,%eax jmp 0x401033 mov $0x2f2,%eax jmp 0x401033 mov $0x15b,%eax jmp 0x401033 mov $0x30e,%eax jmp 0x401033 mov $0x23e,%eax jmp 0x401033 mov $0x2dc,%eax jmp 0x401033 mov $0x10e,%eax jmp 0x401033 callq 0x40168e mov $0x0,%eax jmp 0x401033 mov $0x345,%eax cmp 0x4(%rsp),%eax je 0x40103e callq 0x40168e mov 0x8(%rsp),%rax xor %fs:0x28,%rax je 0x401053 callq 0x400b90 <__stack_chk_fail@plt> add $0x18,%rsp retq

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!