For the code below can anyone help with these questions?
xor eax, eax
mov ecx, 5
lea edi, [edx]
rep stosd
mov al, 0xFF
stosw
stosb
stosb
How many times does the '
stosd
' operation run? Why?If
edx
was storing address0x4b0000
on the heap, what wouldedi
be after the sequence is complete? Why?How many bytes on the heap are modified by the code above? Why?
Describe as completely as possible what the code above is doing.
Illustrate precisely how the modified heap space should look given the sequence above.