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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7b0
mov eax, dword [0x431004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0xc], eax
mov esi, ecx
test edi, edi
je 0x401da6
lea eax, [ebp - 0x134]
push eax
call fcn.004010e0
add esp, 4
test eax, eax
je 0x401da6
push 0x678
lea eax, [ebp - 0x7ac]
push 0
push eax
call fcn.004090e0
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x790]
add esp, 0xc
mov dword [ebp - 0x7ac], 0x678
mov dword [ebp - 0x79c], edi
mov dword [ebp - 0x7a8], 0x40
push 0
push 0x40
push eax
push edi
push esi
call ebx
test eax, eax
je 0x401db1
mov eax, dword [ebp - 0x754]
lea ecx, [ebp - 0x750]
add eax, dword [ebp - 0x79c]
push 0
push 0x18
push ecx
push eax
push esi
mov dword [ebp - 0x798], eax
mov dword [ebp - 0x7a4], 0x18
call ebx
test eax, eax
je 0x401db1
movzx eax, word [ebp - 0x74a]
lea ecx, [eax + eax*4]
movzx eax, word [ebp - 0x73c]
lea eax, [eax + ecx*8]
add eax, 0x18
mov dword [ebp - 0x7a4], eax
cmp eax, 0x608
ja 0x401db1
push 0
push eax
lea eax, [ebp - 0x750]
push eax
push dword [ebp - 0x798]
push esi
call ebx
test eax, eax
je 0x401db1
mov ax, word [ebp - 0x738]
mov ecx, 0x10b
cmp ax, cx
jne 0x401c60
mov eax, dword [ebp - 0x668]
test eax, eax
je 0x401c87
cmp dword [ebp - 0x664], 0
je 0x401c87
add eax, edi
mov dword [ebp - 0x794], eax
jmp 0x401c8d
mov ecx, 0x20b
cmp ax, cx
jne 0x401c87
mov eax, dword [ebp - 0x658]
test eax, eax
je 0x401c87
cmp dword [ebp - 0x654], 0
je 0x401c87
add eax, edi
mov dword [ebp - 0x794], eax
jmp 0x401c8d
mov eax, dword [ebp - 0x794]
test eax, eax
je 0x401cb2
push 0
push 0x14
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x7a0], 0x14
push ecx
push eax
push esi
call ebx
test eax, eax
je 0x401db1
cmp dword [ebp + 8], 0
je 0x401da2
push ecx
push dword [ebp - 0xc]
mov edx, edi
mov ecx, esi
call fcn.004012a0
add esp, 8
test eax, eax
je 0x401db1
mov edi, dword [ebp - 0x794]
test edi, edi
je 0x401d77
mov eax, dword [ebp - 0x138]
movups xmm0, xmmword [ebp - 0x148]
and eax, 0xfffffffe
mov dword [ebp - 0x24], 0
push 0x1c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
push eax
movups xmmword [ebp - 0x20], xmm0
push edi
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x3c], xmm0
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x401db1
test byte [ebp - 0x28], 0xf0
lea eax, [ebp - 0xc]
push eax
mov ecx, 4
mov eax, 0x40
cmove eax, ecx
push eax
push 0x14
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push esi
call edi
test eax, eax
je 0x401db1
push 0
push 0x14
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x794]
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x401db1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push 0x14
push dword [ebp - 0x794]
push esi
call edi
test eax, eax
je 0x401db1
push ecx
lea eax, [ebp - 0x7ac]
mov ecx, esi
push eax
call fcn.00401dd0
test eax, eax
je 0x401db1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00405785
mov esp, ebp
pop ebp
ret 0xc
push 6
jmp 0x401dab
push 0x10dd
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405785
mov esp, ebp
pop ebp
ret 0xc