
Now that we have understood how to figure out the address of the location of our
function, let’s attempt to execute the assembly code.To do so, we will create another
C++ application: sleepasm.cpp.
1 // sleepasm.cpp : Defines the entry point for the console application.
2 //
3
4
#include "stdafx.h"
5 #include "Windows.h"
6
7
void main()
8 {
9 __asm
10 {
11
12
push 99999999
13 mov eax, 0x77E61BE6
14 call eax
15 }
16 }
Now that we have fully working assembly instructions, we need to figure out the
Operation Code (Op Code) for these instructions (see Figure 8.2).To figure out the Op
Code, let’s go back to the disassembled code while stepping through the code using
F10, and ...