7.1 Disassembly Challenge

Let's translate the following code into its high-level equivalent. Use the techniques and the concepts that you have learned so far to solve this challenge:

 mov dword ptr [ebp-8], 0 mov dword ptr [ebp-4], 0loc_401014: cmp dword ptr [ebp-4], 4 cmp dword ptr [ebp-4], 4 jge loc_40102E mov eax, [ebp-8] add eax, [ebp-4] mov [ebp-8], eax mov ecx, [ebp-4] add ecx, 1 mov [ebp-4], ecx jmp loc_401014loc_40102E:

Get Learning Malware Analysis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.