Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need the output for these assembly codes that i have posted. Have to have an answer for each on to disarm a bomblab that i

Need the output for these assembly codes that i have posted. Have to have an answer for each on to disarm a bomblab that i am working on and need to figure it out ASAP. Thank you

phase #4

x0x40108b sub $0x18,%rsp x0x40108f mov %fs:0x28,%rax x0x401098 mov %rax,0x8(%rsp) x0x40109d xor %eax,%eax x0x40109f lea 0x4(%rsp),%rcx x0x4010a4 mov %rsp,%rdx x0x4010a7 mov $0x402945,%esi x0x4010ac callq 0x400c40 <__isoc99_sscanf@plt> x0x4010b1 cmp $0x2,%eax x0x4010b4 jne 0x4010bc x0x4010b6 cmpl $0xe,(%rsp) x0x4010ba jbe 0x4010c1 x0x4010bc callq 0x40168e x0x4010c1 mov $0xe,%edx x0x4010c6 mov $0x0,%esi x0x4010cb mov (%rsp),%edi x0x4010ce callq 0x401058 x0x4010d3 cmp $0x13,%eax x0x4010d6 jne 0x4010df x0x4010d8 cmpl $0x13,0x4(%rsp) x0x4010dd je 0x4010e4 x0x4010df callq 0x40168e x0x4010e4 mov 0x8(%rsp),%rax x0x4010e9 xor %fs:0x28,%rax x0x4010f2 je 0x4010f9 x0x4010f4 callq 0x400b90 <__stack_chk_fail@plt> x0x4010f9 add $0x18,%rsp x0x4010fd retq

phase #5

x0x4010fe push %rbx x0x4010ff sub $0x10,%rsp x0x401103 mov %rdi,%rbx x0x401106 mov %fs:0x28,%rax x0x40110f mov %rax,0x8(%rsp) x0x401114 xor %eax,%eax x0x401116 callq 0x40138f x0x40111b cmp $0x6,%eax x0x40111e je 0x401125 x0x401120 callq 0x40168e x0x401125 mov $0x0,%eax x0x40112a movzbl (%rbx,%rax,1),%edx x0x40112e and $0xf,%edx x0x401131 movzbl 0x4026e0(%rdx),%edx x0x401138 mov %dl,(%rsp,%rax,1) x0x40113b add $0x1,%rax x0x40113f cmp $0x6,%rax x0x401143 jne 0x40112a x0x401145 movb $0x0,0x6(%rsp) x0x40114a mov $0x402696,%esi x0x40114f mov %rsp,%rdi x0x401152 callq 0x4013ad x0x401157 test %eax,%eax x0x401159 je 0x401160 x0x40115b callq 0x40168e x0x401160 mov 0x8(%rsp),%rax x0x401165 xor %fs:0x28,%rax x0x40116e je 0x401175 x0x401170 callq 0x400b90 <__stack_chk_fail@plt> x0x401175 add $0x10,%rsp x0x401179 pop %rbx x0x40117a retq

phase #6

x0x40117b push %r13 x0x40117d push %r12 x0x40117f push %rbp x0x401180 push %rbx x0x401181 sub $0x68,%rsp x0x401185 mov %fs:0x28,%rax x0x40118e mov %rax,0x58(%rsp) x0x401193 xor %eax,%eax x0x401195 mov %rsp,%rsi x0x401198 callq 0x4016c4 x0x40119d mov %rsp,%r12 x0x4011a0 mov $0x0,%r13d x0x4011a6 mov %r12,%rbp x0x4011a9 mov (%r12),%eax x0x4011ad sub $0x1,%eax x0x4011b0 cmp $0x5,%eax x0x4011b3 jbe 0x4011ba x0x4011b5 callq 0x40168e x0x4011ba add $0x1,%r13d x0x4011be cmp $0x6,%r13d x0x4011c2 je 0x401201 x0x4011c4 mov %r13d,%ebx x0x4011c7 movslq %ebx,%rax x0x4011ca mov (%rsp,%rax,4),%eax x0x4011cd cmp %eax,0x0(%rbp) x0x4011d0 jne 0x4011d7 x0x4011d2 callq 0x40168e x0x4011d7 add $0x1,%ebx x0x4011da cmp $0x5,%ebx x0x4011dd jle 0x4011c7 x0x4011df add $0x4,%r12 x0x4011e3 jmp 0x4011a6 x0x4011e5 mov 0x8(%rdx),%rdx x0x4011e9 add $0x1,%eax x0x4011ec cmp %ecx,%eax x0x4011ee jne 0x4011e5 x0x4011f0 mov %rdx,0x20(%rsp,%rsi,2) x0x4011f5 add $0x4,%rsi x0x4011f9 cmp $0x18,%rsi x0x4011fd jne 0x401206 x0x4011ff jmp 0x40121a x0x401201 mov $0x0,%esi x0x401206 mov (%rsp,%rsi,1),%ecx x0x401209 mov $0x1,%eax x0x40120e mov $0x6042f0,%edx x0x401213 cmp $0x1,%ecx x0x401216 jg 0x4011e5 x0x401218 jmp 0x4011f0 x0x40121a mov 0x20(%rsp),%rbx x0x40121f lea 0x20(%rsp),%rax x0x401224 lea 0x48(%rsp),%rsi x0x401229 mov %rbx,%rcx x0x40122c mov 0x8(%rax),%rdx x0x401230 mov %rdx,0x8(%rcx) x0x401234 add $0x8,%rax x0x401238 mov %rdx,%rcx x0x40123b cmp %rsi,%rax x0x40123e jne 0x40122c x0x401240 movq $0x0,0x8(%rdx) x0x401248 mov $0x5,%ebp x0x40124d mov 0x8(%rbx),%rax x0x401251 mov (%rax),%eax x0x401253 cmp %eax,(%rbx) x0x401255 jle 0x40125c x0x401257 callq 0x40168e x0x40125c mov 0x8(%rbx),%rbx x0x401260 sub $0x1,%ebp x0x401263 jne 0x40124d x0x401265 mov 0x58(%rsp),%rax x0x40126a xor %fs:0x28,%rax x0x401273 je 0x40127a x0x401275 callq 0x400b90 <__stack_chk_fail@plt> x0x40127a add $0x68,%rsp x0x40127e pop %rbx x0x40127f pop %rbp x0x401280 pop %r12 x0x401282 pop %r13 x0x401284 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

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions

Question

=+What is the nature of their impact?

Answered: 1 week ago

Question

=+Is it possible to operate union-free?

Answered: 1 week ago

Question

=+impact member states and MNEs?

Answered: 1 week ago