Function at 0x4015c0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push ebx
push esi
push edi
lea edi, [ebp - 0x1ac]
mov ecx, 0x6b
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x477031
call fcn.004140c0
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x401619
xor al, al
jmp 0x401d3a
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax]
cmp ecx, 0x14c
je 0x40164c
xor al, al
jmp 0x401d3a
mov esi, esp
push 4
push 0x3000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x38]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp esi, esp
call fcn.00414080
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40167f
xor al, al
jmp 0x401d3a
mov dword [ebp - 0x38], 0
mov esi, esp
lea eax, [ebp - 0x38]
push eax
push 0x40
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x38]
push edx
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp esi, esp
call fcn.00414080
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x5c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x58], eax
mov byte [ebp + 0x20], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x48], eax
movzx eax, byte [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov esi, esp
push 0
push 0x1000
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00414080
test eax, eax
jne 0x401739
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
xor al, al
jmp 0x401d3a
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], 0
jmp 0x401765
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x28
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 2]
cmp dword [ebp - 0x74], ecx
je 0x4017d8
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x10], 0
je 0x4017d3
mov esi, esp
push 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp + 0xc]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00414080
test eax, eax
jne 0x4017d3
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
xor al, al
jmp 0x401d3a
jmp 0x401753
mov esi, esp
push 4
push 0x3000
push 0x1c
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp esi, esp
call fcn.00414080
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
jne 0x401824
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
xor al, al
jmp 0x401d3a
mov esi, esp
push 0
push 0x1c
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00414080
test eax, eax
jne 0x40188a
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
xor al, al
jmp 0x401d3a
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
cmp esi, esp
call fcn.00414080
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x8c], 0
jne 0x4018fd
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
xor al, al
jmp 0x401d3a
mov esi, esp
push 0
push 0x1000
push 0x401db0
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00414080
test eax, eax
jne 0x40198b
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
xor al, al
jmp 0x401d3a
push str.pause
call fcn.0041b334
add esp, 4
mov esi, esp
push 0
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp esi, esp
call fcn.00414080
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jne 0x401a31
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
xor al, al
jmp 0x401d3a
mov esi, esp
mov eax, dword [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.00414080
push 0x1400000
call fcn.0041b180
add esp, 4
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x401a6a
xor al, al
jmp 0x401d3a
push 0x1400000
push 0
mov eax, dword [ebp - 0xa4]
push eax
call fcn.00416410
add esp, 0xc
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x401aad
mov esi, esp
push 0
push 0x1000
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00414080
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x401bbe
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0xb0], 0
jmp 0x401aee
mov eax, dword [ebp - 0xb0]
add eax, 1
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x28
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 2]
cmp dword [ebp - 0xb0], ecx
je 0x401bbe
mov eax, dword [ebp - 0x68]
cmp dword [eax + 8], 0
je 0x401bb9
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x401b22
mov dword [ebp - 0x1a8], 0
jmp 0x401b59
push str..pdata
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0041b0f0
add esp, 8
test eax, eax
jne 0x401b43
mov dword [ebp - 0x1ac], 1
jmp 0x401b4d
mov dword [ebp - 0x1ac], 0
mov edx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1a8], edx
cmp dword [ebp - 0x1a8], 0
jne 0x401b8c
push str..rsrc
mov eax, dword [ebp - 0x68]
push eax
call fcn.0041b0f0
add esp, 8
test eax, eax
je 0x401b8c
push str..reloc
mov eax, dword [ebp - 0x68]
push eax
call fcn.0041b0f0
add esp, 8
test eax, eax
jne 0x401bb9
mov esi, esp
push 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x2c]
add ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00414080
jmp 0x401ad6
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x401cd1
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0x14]
mov edx, dword [ebp - 8]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0xbc], 0
jmp 0x401bff
mov eax, dword [ebp - 0xbc]
add eax, 1
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x28
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + 2]
cmp dword [ebp - 0xbc], ecx
je 0x401c98
mov eax, dword [ebp - 0x68]
cmp dword [eax + 8], 0
je 0x401c93
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xd4], 2
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x24]
and ecx, 0x80000000
jbe 0x401c49
mov dword [ebp - 0xd4], 4
jmp 0x401c61
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
jbe 0x401c61
mov dword [ebp - 0xd4], 0x20
mov esi, esp
lea eax, [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0xd4]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x2c]
add edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp esi, esp
call fcn.00414080
jmp 0x401be7
mov dword [ebp - 0xe0], 0
mov esi, esp
lea eax, [ebp - 0xe0]
push eax
push 2
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp esi, esp
call fcn.00414080
mov esi, esp
push 0
push 0x1000
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
cmp esi, esp
call fcn.00414080
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x8c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
mov esi, esp
push 0x8000
push 0
mov eax, dword [ebp - 0x80]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
cmp esi, esp
call fcn.00414080
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x401d60]
call fcn.00414010
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x1ac
cmp ebp, esp
call fcn.00414080
mov esp, ebp
pop ebp
ret