Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what would be the input values for this assembly code? bomb should not explode. 08048ebc : 8048ebc: 56 push %esi 8048ebd: 53 push %ebx 8048ebe:

what would be the input values for this assembly code? bomb should not explode.

08048ebc : 8048ebc: 56 push %esi 8048ebd: 53 push %ebx 8048ebe: 83 ec 44 sub $0x44,%esp 8048ec1: 8d 44 24 28 lea 0x28(%esp),%eax 8048ec5: 89 44 24 04 mov %eax,0x4(%esp) 8048ec9: 8b 44 24 50 mov 0x50(%esp),%eax 8048ecd: 89 04 24 mov %eax,(%esp) 8048ed0: e8 ef 04 00 00 call 80493c4 8048ed5: be 00 00 00 00 mov $0x0,%esi 8048eda: 8b 44 b4 28 mov 0x28(%esp,%esi,4),%eax 8048ede: 83 e8 01 sub $0x1,%eax 8048ee1: 83 f8 05 cmp $0x5,%eax 8048ee4: 76 05 jbe 8048eeb 8048ee6: e8 9a 04 00 00 call 8049385 8048eeb: 83 c6 01 add $0x1,%esi 8048eee: 83 fe 06 cmp $0x6,%esi 8048ef1: 74 1b je 8048f0e 8048ef3: 89 f3 mov %esi,%ebx 8048ef5: 8b 44 9c 28 mov 0x28(%esp,%ebx,4),%eax 8048ef9: 39 44 b4 24 cmp %eax,0x24(%esp,%esi,4) 8048efd: 75 05 jne 8048f04 8048eff: e8 81 04 00 00 call 8049385 8048f04: 83 c3 01 add $0x1,%ebx 8048f07: 83 fb 05 cmp $0x5,%ebx 8048f0a: 7e e9 jle 8048ef5 8048f0c: eb cc jmp 8048eda 8048f0e: 8d 44 24 28 lea 0x28(%esp),%eax 8048f12: 8d 5c 24 40 lea 0x40(%esp),%ebx 8048f16: b9 07 00 00 00 mov $0x7,%ecx 8048f1b: 89 ca mov %ecx,%edx 8048f1d: 2b 10 sub (%eax),%edx 8048f1f: 89 10 mov %edx,(%eax) 8048f21: 83 c0 04 add $0x4,%eax 8048f24: 39 d8 cmp %ebx,%eax 8048f26: 75 f3 jne 8048f1b 8048f28: bb 00 00 00 00 mov $0x0,%ebx 8048f2d: eb 1d jmp 8048f4c 8048f2f: 8b 52 08 mov 0x8(%edx),%edx 8048f32: 83 c0 01 add $0x1,%eax 8048f35: 39 c8 cmp %ecx,%eax 8048f37: 75 f6 jne 8048f2f 8048f39: eb 05 jmp 8048f40 8048f3b: ba 74 d1 04 08 mov $0x804d174,%edx 8048f40: 89 54 b4 10 mov %edx,0x10(%esp,%esi,4) 8048f44: 83 c3 01 add $0x1,%ebx 8048f47: 83 fb 06 cmp $0x6,%ebx 8048f4a: 74 17 je 8048f63 8048f4c: 89 de mov %ebx,%esi 8048f4e: 8b 4c 9c 28 mov 0x28(%esp,%ebx,4),%ecx 8048f52: 83 f9 01 cmp $0x1,%ecx 8048f55: 7e e4 jle 8048f3b 8048f57: b8 01 00 00 00 mov $0x1,%eax 8048f5c: ba 74 d1 04 08 mov $0x804d174,%edx 8048f61: eb cc jmp 8048f2f 8048f63: 8b 5c 24 10 mov 0x10(%esp),%ebx 8048f67: 8d 44 24 14 lea 0x14(%esp),%eax 8048f6b: 8d 74 24 28 lea 0x28(%esp),%esi 8048f6f: 89 d9 mov %ebx,%ecx 8048f71: 8b 10 mov (%eax),%edx 8048f73: 89 51 08 mov %edx,0x8(%ecx) 8048f76: 83 c0 04 add $0x4,%eax 8048f79: 39 f0 cmp %esi,%eax 8048f7b: 74 04 je 8048f81 8048f7d: 89 d1 mov %edx,%ecx 8048f7f: eb f0 jmp 8048f71 8048f81: c7 42 08 00 00 00 00 movl $0x0,0x8(%edx) 8048f88: be 05 00 00 00 mov $0x5,%esi 8048f8d: 8b 43 08 mov 0x8(%ebx),%eax 8048f90: 8b 00 mov (%eax),%eax 8048f92: 39 03 cmp %eax,(%ebx) 8048f94: 7d 05 jge 8048f9b 8048f96: e8 ea 03 00 00 call 8049385 8048f9b: 8b 5b 08 mov 0x8(%ebx),%ebx 8048f9e: 83 ee 01 sub $0x1,%esi 8048fa1: 75 ea jne 8048f8d 8048fa3: 83 c4 44 add $0x44,%esp 8048fa6: 5b pop %ebx 8048fa7: 5e pop %esi 8048fa8: c3 ret

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

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

More Books

Students also viewed these Databases questions

Question

Explain the trade life cycle for call options.

Answered: 1 week ago

Question

5. Explain how to conduct an appraisal feedback interview.

Answered: 1 week ago

Question

2. Answer the question, Who should do the appraising?

Answered: 1 week ago