Question 1. A student, while debugging his program, unintentionally displayed partially corrupted DISSASSEMBLY windows in MS Visual Studio Debug environment. He was able to display correctly Register window, and two Memory windows. His task was to detemine addresses of variables in the expression result = LocalInt + StatInt in Memory at the instance of the snapshot. He is not allowed to restart the debug session. Can you help him to answer the following questions: static int result 0; Memory 2 Memory 1 static int StotInt - -23; 00 00 00 00 00 00 00 00 int moin() OX09CFF81B BX99CFF81C OX99CFF81D 02 push ebp ebp,esp esp,008h ebx DODT1750 55 BODF1751 BD EC nov 00 fb ff ff ff OX00CFF81F Ox00CFF820 DODF1753 B1 EC Da D0 00 60 sub 81 00 00 00 24 00 00 00 0ODF1759 53 push DODF175A 56 push esi in DODF175B 57 push edi 00 00 00 00 90 00 ee 0 lea ed1, [ebp-ODah] ecx,36h eax,BCCccCcch 0ODF175C BD BD 28 FF FF FF 99 00 00 00 d2 10 df 09 99 00 00 09 0ODF1762 B9 36 00 00 00 OX00CFF824 nov LL BODF1767 BB CC CC CC CC nov CC נ CC ta f9 i ff y ff ý ff y Cc i dword ptr es:[edi] ecx,offset _E1EFIAA4 OKƏOCFF827 @_CheckrorDebuggerOxoOCFFa28 DODF176C F3 AB rep stos OX0OCFF826 92 00 G0 09 99 00 0e 09 90 01 00 00 ff ff ff f 0ODF176E 39 00 ce DF O0 nov 0ODF1773 EB 8F FB FF FF call int statint = -7; DODF1778 C7 45 F8 F9 FF FF FF nov dword ptr [StatInt]. exaocFF82A ff ff ff ff i Gx0ODFUE ff ff ff ff ff ff ff ff int LocalInt = 2; 0ODF177F C7 45 EC 02 00 00 00 nov dword ptr [LocalInt]exaaCFF82C result = LocalInt + StatInt; CC Registers eax, dword ptr [Local exa0CFF8ZE eax, dword ptr [StatIexa@CFF82F dward ptr [result (0ex98CFF830 50 BODF1786 88 45 EC nov BODF1789 03 45 F8 add EAX = 00000aga BODF178C A3 38 A1 DF 00 nov EBX = 00B6C000 OX98CFF831 fB ECX = 6ØDFC800 cf EDX = 0000001 DODF1791 33 ce O BODF1793 5F xor ESI = O0DF1023 eax, eax edi pop Sims alapsed BX08CFF834 c3 EDI = 6OCFFB30 9ODF1701 5E pop csi la EIP - GODF1793 BODF1795 58 ebx Ox08CFF836 df E ESP = 0OCFF74C pop add BODF1796 81 C4 D8 99 00 e esp,008h ebp, esp EBP = 0OCFFB30 DODF179C 3B EC cnp rall 100 % AANF179F FR AN FA FF FF ATC CherkEsn (ADF173Ah)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
Question 1.
A student, while debugging his program, unintentionally displayed partially corrupted
DISSASSEMBLY windows in MS Visual Studio Debug environment.
He was able to display correctly Register window, and two Memory windows.
His task was to detemine addresses of variables in the expression
result = LocalInt + StatInt in Memory at the instance of the snapshot.
He is not allowed to restart the debug session.
Can you help him to answer the following questions:
static int result = 0;
Memory 2
Memory 1
static int StotInt -
-23;
00 00 00 00
00 00 00 00
int moin()
Ox09CFF81B
OX99CFF81C
OX99CFF81D
ex99CFF81E
Ox00CFF81F
OX00CFF820
92
push
ebp
ebp,esp
DODT1750 55
00
20 00 e0 00
ĐODF1751 BD EC
nov
fb ff ff ff
DODF1753 B1 EC Da D0 00 0
sub
esp,008h
ebx
81 00 00 00
24 00 00 00
0ODF1759 53
push
0ODF175A 56
push
esi
in
DODF175B 57
push
edi
OX00CFF022
00 00 00 00
90 00 ee 0
99 00 00 00
d2 10 df 09
0ODF175C BD BD 26 FF FF FF
lea
ed1, [ebp-ODah]
OX00CFF824
есх,3бh
eax,OCCccCcch
dword ptr es:[edi]
ecx,offset _E1EFIAA4 OKƏOCFF827
@_CheckForDebuggerexoOCFF828
0ODF1762 B9 36 00 00 00
nov
LL
DODF1767 BB CC CC CC CC
nov
CC
99 00 00 09
DODF176C F3 AB
rep stos
OX0OCFF826
02 00 00 09
0ODF176E 39 00 ce DF O0
0ODF1773 EB 8F FB FF FF
int statint = -7;
ta
f9 i
nov
99 00 00 09
call
ff y
ff ý
ff y
Cc i
99 01 00 00
ff ff ff ff
ff ff ff ff i
Ox0ODF ff ff ff ff
ff ff ff ff
DODF1778 C7 45 F8 F9 FF FF FF nov
dword ptr [StatInt]. exaocFF82A
int LocalInt = 2;
0ODF177F C7 45 EC 02 00 6e 00 mov
dword ptr [LocalInt]exeecFF82C
result = LocalInt + StatInt;
eax,dword ptr [Local exa0CFF82E
eax, dword ptr [StatIex80CFF82F
dward ptr [result (0ex98CFF830 50
BODF1786 88 45 EC
Registers
nov
BODF1789 83 45 F8
add
EAX = 00000a9a
BODF178C A3 38 A1 DF 00
nov
EBX = 00B6C000
OX08CFF831
fB
ECX = 0ØDFC800
Ox@8CFF832
cf
EDX = 00000001
0ODF1791 33 ce
O BODF1793 5F
ESI = O0DF1023
eax, eax
edi
xor
pop
Sims alapsed
BX08CFF834
c3
EDI = 0OCFFB30
9ODF1701 5E
pop
csi
la
EIP - GODF1793
BODF1795 58
ebx
Ox0@CFF836
df E
ESP = 0OCFF74C
pop
add
9ODF1796 81 C4 D8 99 00 e
esp,008h
ebp, esp
EBP = 0OCFFB30
DODF179C 3B EC
cnp
rall
100 %
AANF179F FR AN FA FF FF
ATC CherkEsn (ADF1730h)
Transcribed Image Text:Question 1. A student, while debugging his program, unintentionally displayed partially corrupted DISSASSEMBLY windows in MS Visual Studio Debug environment. He was able to display correctly Register window, and two Memory windows. His task was to detemine addresses of variables in the expression result = LocalInt + StatInt in Memory at the instance of the snapshot. He is not allowed to restart the debug session. Can you help him to answer the following questions: static int result = 0; Memory 2 Memory 1 static int StotInt - -23; 00 00 00 00 00 00 00 00 int moin() Ox09CFF81B OX99CFF81C OX99CFF81D ex99CFF81E Ox00CFF81F OX00CFF820 92 push ebp ebp,esp DODT1750 55 00 20 00 e0 00 ĐODF1751 BD EC nov fb ff ff ff DODF1753 B1 EC Da D0 00 0 sub esp,008h ebx 81 00 00 00 24 00 00 00 0ODF1759 53 push 0ODF175A 56 push esi in DODF175B 57 push edi OX00CFF022 00 00 00 00 90 00 ee 0 99 00 00 00 d2 10 df 09 0ODF175C BD BD 26 FF FF FF lea ed1, [ebp-ODah] OX00CFF824 есх,3бh eax,OCCccCcch dword ptr es:[edi] ecx,offset _E1EFIAA4 OKƏOCFF827 @_CheckForDebuggerexoOCFF828 0ODF1762 B9 36 00 00 00 nov LL DODF1767 BB CC CC CC CC nov CC 99 00 00 09 DODF176C F3 AB rep stos OX0OCFF826 02 00 00 09 0ODF176E 39 00 ce DF O0 0ODF1773 EB 8F FB FF FF int statint = -7; ta f9 i nov 99 00 00 09 call ff y ff ý ff y Cc i 99 01 00 00 ff ff ff ff ff ff ff ff i Ox0ODF ff ff ff ff ff ff ff ff DODF1778 C7 45 F8 F9 FF FF FF nov dword ptr [StatInt]. exaocFF82A int LocalInt = 2; 0ODF177F C7 45 EC 02 00 6e 00 mov dword ptr [LocalInt]exeecFF82C result = LocalInt + StatInt; eax,dword ptr [Local exa0CFF82E eax, dword ptr [StatIex80CFF82F dward ptr [result (0ex98CFF830 50 BODF1786 88 45 EC Registers nov BODF1789 83 45 F8 add EAX = 00000a9a BODF178C A3 38 A1 DF 00 nov EBX = 00B6C000 OX08CFF831 fB ECX = 0ØDFC800 Ox@8CFF832 cf EDX = 00000001 0ODF1791 33 ce O BODF1793 5F ESI = O0DF1023 eax, eax edi xor pop Sims alapsed BX08CFF834 c3 EDI = 0OCFFB30 9ODF1701 5E pop csi la EIP - GODF1793 BODF1795 58 ebx Ox0@CFF836 df E ESP = 0OCFF74C pop add 9ODF1796 81 C4 D8 99 00 e esp,008h ebp, esp EBP = 0OCFFB30 DODF179C 3B EC cnp rall 100 % AANF179F FR AN FA FF FF ATC CherkEsn (ADF1730h)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY