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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d5cd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x10071040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov edi, dword [0x10076fc8]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add edi, 0x11266dc
push eax
push 0x40
push 4
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
call esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], edi
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push 4
push eax
call esi
cmp dword [ebp - 0x1c], 0
jne 0x1004d45e
mov esi, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.100458b0
mov eax, esi
jmp 0x1004d584
mov edi, dword [0x10076fc8]
lea ecx, [ebp - 0x18]
push ecx
push ecx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], 0x18
add edi, 0x11266dc
mov dword [ebp - 0x1c], 0
push edx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18], edi
call fcn.100457e0
mov esi, dword [ebp - 0x3c]
xor ecx, ecx
mov edx, dword [ebp - 0x40]
sub esi, edx
sar esi, 2
test esi, esi
je 0x1004d4af
nop dword [eax]
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [edi]
mov edi, eax
cmp ecx, esi
jb 0x1004d4a0
mov dword [ebp - 0x18], eax
test edx, edx
je 0x1004d4e5
mov ecx, dword [ebp - 0x38]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004d4db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004d4db
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
mov esi, dword [0x10076fc8]
lea ecx, [ebp - 0x34]
push ecx
push ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x1c
push edx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x38], 0
add esi, 0x11266dc
call fcn.100457e0
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
mov edx, dword [ebp - 0x50]
sub eax, edx
sar eax, 2
test eax, eax
je 0x1004d532
mov edi, eax
mov eax, dword [edx + ecx*4]
inc ecx
add eax, dword [esi]
mov esi, eax
cmp ecx, edi
jb 0x1004d523
mov edi, dword [ebp - 0x18]
test edx, edx
je 0x1004d568
mov ecx, dword [ebp - 0x48]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x1004d55e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1004d55e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1005b378
add esp, 8
mov ecx, dword [ebp - 0x30]
sub esp, 8
mov edx, edi
push esi
call fcn.1004a6e0
add esp, 0xc
lea ecx, [ebp - 0x2c]
call fcn.100458b0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1005ae5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret