Function at 0x401f00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, ecx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
jmp 0x401f28
jmp 0x401f3a
jmp 0x401f4c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0xc], eax
jmp 0x401f67
mov eax, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x40
push 0x3000
push dword [eax + 0x50]
push dword [ebp - 0xc]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x401fa3
mov eax, dword [ebp - 4]
push 0x40
push 0x3000
push dword [eax + 0x50]
push edi
call esi
push eax
call ebx
mov edi, eax
mov eax, dword [ebp - 4]
push dword [eax + 0x54]
mov dword [eax + 0x34], edi
push dword [ebp - 8]
push edi
call fcn.0044eee0
mov eax, dword [ebp - 4]
xor ecx, ecx
add esp, 0xc
xor ebx, ebx
movzx esi, word [eax + 0x14]
add esi, 0x2c
cmp cx, word [eax + 6]
jae 0x401ff9
add esi, eax
nop
push dword [esi - 4]
mov eax, dword [esi]
add eax, dword [ebp - 8]
push eax
mov eax, dword [esi - 8]
add eax, edi
push eax
call fcn.0044eee0
mov eax, dword [ebp - 4]
lea esi, [esi + 0x28]
inc ebx
add esp, 0xc
movzx eax, word [eax + 6]
cmp ebx, eax
jl 0x401fd0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x80]
add ebx, edi
cmp dword [ebx + 0xc], 0
je 0x4020cd
mov ecx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], esi
nop dword [eax]
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
call ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x402195
cmp dword [ebx + 4], 0xffffffff
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x10], edx
jne 0x402077
mov eax, dword [ebx]
add edx, edi
mov dword [ebp - 0x10], edx
mov edx, dword [eax + edi]
test edx, 0xf0000000
je 0x40205f
xor edx, edx
mov word [eax + edi + 2], dx
push dword [eax + edi]
jmp 0x402065
lea eax, [edx + 2]
add eax, edi
push eax
push ecx
call esi
mov ecx, dword [ebp - 0x10]
cmp dword [ecx], eax
je 0x4020ba
mov edx, dword [ebx]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [edx + edi]
lea esi, [edx + edi]
test eax, eax
je 0x4020b7
test eax, 0xf0000000
je 0x402092
xor eax, eax
mov word [esi + 2], ax
push dword [esi]
jmp 0x402098
add eax, 2
add eax, edi
push eax
push ecx
call dword [ebp - 8]
mov edx, eax
mov ecx, esi
sub ecx, dword [ebp - 0x10]
mov dword [esi], edx
add esi, 4
mov eax, dword [ebx + 0x10]
mov dword [ecx + eax], edx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
test eax, eax
jne 0x402081
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
add ebx, 0x14
cmp dword [ebx + 0xc], 0
jne 0x402020
mov eax, dword [ebp - 4]
cmp edi, dword [ebp - 0xc]
je 0x402171
mov eax, dword [eax + 0x50]
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0x10], edx
mov ecx, dword [eax + edi + 0xa0]
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x402171
mov eax, dword [eax + edi + 0xa4]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x402171
lea ebx, [ecx + edx]
add ebx, edi
mov eax, dword [ebx]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x402171
mov eax, dword [ebx + 4]
test eax, eax
je 0x402171
add eax, 0xfffffff8
lea esi, [ebx + 8]
shr eax, 1
mov edx, 0
mov dword [ebp - 0x1c], eax
je 0x402163
nop word [eax + eax]
movzx ecx, word [esi]
mov eax, ecx
and ecx, 0xfff
add ecx, dword [ebp - 0x18]
shr eax, 0xc
test eax, eax
je 0x402160
cmp eax, 3
jne 0x402171
cmp ecx, dword [ebp - 8]
jae 0x402171
mov eax, edi
inc edx
sub eax, dword [ebp - 0xc]
add esi, 2
add dword [ecx + edi], eax
cmp edx, dword [ebp - 0x1c]
jb 0x402130
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
add edx, dword [ebx + 4]
mov dword [ebp - 0x10], edx
cmp edx, dword [ebp - 0x20]
jb 0x402100
push 0xc
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp - 4]
mov dword [eax], edi
mov ecx, dword [edx + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 0x28]
add ecx, edi
mov dword [eax + 8], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push 0x4000
push dword [eax + 0x50]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret