Question: Re-write helloWorld.asm below as well as compile & link it. Then debug the program to answer the following questions: 1. Find memory addresses contain the

Re-write "helloWorld.asm" below as well as compile & link it. Then debug the program to answer the following questions:

1. Find memory addresses contain the programs environment strings. Additionally, what memory address contains the programs arguments?

2. Debug the program and stop it immediately before the syscall for write, then find the current ESP, EBP, and EIP.

3. Where is the message located?

4. State the return value for the write syscall, and where it is located.

-----------------------------------------------------------------

helloWorld.asm

*******************

section .data

msg db "Hello World", 0xa, 0

len equ $-msg

section .text

global _start

_start:

mov eax, 0x04

mov ebx, 0x01

mov ecx, msg

mov dex, len

int 0x80

move eax, 0x01

mov ebx, 0x00

int 0x80

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!