Question: Reverse engineering Analyze the following piece of asm code by commenting on each line describing the action of each specific instruction and the contents of
Analyze the following piece of asm code by commenting on each line describing the action of each specific instruction and the contents of the operand(s) at each instruction. Then provide a 1-paragraph summary detailing the functionality and high-level representation of the code. data buffer db 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 even db 20 dup(?) ; store even numbers here odd db 20 dup(?); store odd numbers here .code start: mov esi, offset even; mov edi, offset odd mov ebx, offset buffer; mov ecx, 20 top: mov al, Cebx] ror al, 1 jc oddnum rol al, 1 mov [esi), al inc esi jmp bottom bddnum: rol al, 1 mov [edi], al inc edi bottom: inc ebx loop top
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
