Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Big Data Interview 751 Comprehensive Questions And Expert Answers

Authors: Mr Bhanu Pratap Mahato

1st Edition

B0CLNT3NVD, 979-8865047216

More Books

Students also viewed these Databases questions