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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ae940]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [0x100b0fa4]
push esi
push edi
lea esi, [eax + 0x1764670]
lea edi, [eax + 0x1764674]
je 0x1000525e
lea esi, [eax + 0x1766004]
lea edi, [eax + 0x1766008]
jmp 0x1000529b
push 1
push 4
push 0
push ecx
add eax, 0x1766000
mov ecx, esp
push eax
call fcn.10003300
call fcn.10008eb0
mov eax, dword [0x100b0fa4]
add esp, 0x10
add eax, 0x1766004
push 1
push 0x1e
push 0
push ecx
mov ecx, esp
push eax
call fcn.10003300
call fcn.10008eb0
add esp, 0x10
push esi
lea ecx, [ebp - 8]
call fcn.10003300
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
mov eax, dword [ebp + 8]
setne byte [ebp - 0xc]
mov dword [esi], eax
cmp byte [ebp - 0xc], 0
je 0x100052e6
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
push edi
lea ecx, [ebp - 8]
call fcn.10003300
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 0x1e
push esi
mov dword [ebp - 0x14], 0x1e
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
xorps xmm0, xmm0
setne byte [ebp - 0xc]
movups xmmword [esi], xmm0
movq qword [esi + 0x10], xmm0
mov dword [esi + 0x18], 0
mov word [esi + 0x1c], 0
cmp byte [ebp - 0xc], 0
je 0x1000533e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov ebx, dword [ebp - 0x20]
xor esi, esi
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10005348
sub ecx, edx
je 0x100053eb
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100b1340]
lea ecx, [eax + ecx*4]
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], eax
mov bl, byte [edi + eax]
test bl, bl
je 0x100053d0
mov ecx, dword [ecx]
mov eax, dword [0x100b0fc0]
cmp eax, dword [ecx + 4]
jg 0x100053fc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x40
push 1
push edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
movzx ecx, bl
mov eax, ecx
setne byte [ebp - 0xc]
shl cx, 8
or cx, ax
mov byte [edi], cl
cmp byte [ebp - 0xc], 0
je 0x100053d0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x20]
inc esi
inc edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100053d8
mov eax, dword [ebp - 0x24]
sub ecx, edx
cmp esi, ecx
mov ecx, dword [ebp - 0x1c]
jb 0x10005370
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100459fc
mov esp, ebp
pop ebp
ret
push 0x100b0fc0
call fcn.10045998
add esp, 4
cmp dword [0x100b0fc0], 0xffffffff
jne 0x10005386
mov ecx, 0x100b0fb4
mov dword [0x100b0fb4], 0x1007148c
mov dword [0x100b0fbc], 0
mov dword [0x100b0fb8], 0
call fcn.10006eb0
push 0x100b0fc0
call fcn.10045947
add esp, 4
jmp 0x10005386