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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10070080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
sub eax, ebx
push esi
sub eax, 5
mov dword [ebp - 0x14], ebx
mov esi, ecx
mov dword [ebp + 0xc], eax
cmp byte [ebx], 0xe9
push edi
mov dword [ebp - 0x10], esi
jne 0x100172b3
push 5
mov dword [esi + 0x10], 5
call fcn.1003aeca
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, ebx
call fcn.10019590
mov al, byte [ebx]
xor edi, edi
cmp al, 0xe8
je 0x10017204
cmp al, 0xe9
je 0x10017204
cmp al, 0xff
jne 0x1001720c
mov eax, dword [ebx + 2]
mov edi, dword [eax]
jmp 0x1001720c
mov edi, dword [ebx + 1]
lea eax, [ebx + 5]
add edi, eax
mov ecx, ebx
call fcn.10019600
mov esi, dword [esi + 0xc]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
sub edi, esi
push esi
sub edi, 5
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov byte [esi], 0xe9
push eax
push dword [ebp - 8]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
mov esi, dword [ecx + 0xc]
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [esi], edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push dword [ebp - 8]
push 4
push esi
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push ebx
call edi
lea eax, [ebp - 8]
mov byte [ebx], 0xe9
push eax
push dword [ebp - 8]
push 1
push ebx
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea esi, [ebx + 1]
push esi
call edi
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10030080
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x10]
xor ecx, ecx
add eax, 5
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.1003aeca
add esp, 4
mov dword [esi + 0xc], eax
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [esi + 0x10]
push 0x40
add ecx, 5
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ebx, dword [esi + 0x10]
mov esi, dword [esi]
push eax
mov edi, dword [ecx + 0xc]
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
push edi
call fcn.10031830
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov edi, ebx
mov ecx, dword [eax + 0x10]
sub edi, ecx
mov eax, dword [eax + 0xc]
sub edi, eax
lea esi, [ecx + eax]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov byte [esi], 0xe9
push eax
push dword [ebp - 8]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
inc ecx
lea eax, [ebp - 8]
add esi, ecx
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
mov dword [esi], edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push dword [ebp - 8]
push 4
push esi
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push ebx
call edi
lea eax, [ebp - 8]
mov byte [ebx], 0xe9
push eax
push dword [ebp - 8]
push 1
push ebx
call edi
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea esi, [ebx + 1]
push esi
call edi
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push esi
call edi
mov ecx, dword [ebp - 0x10]
mov edi, dword [ecx + 0x10]
cmp edi, 5
jle 0x100173ef
lea eax, [ebp - 8]
add edi, 0xfffffffb
push eax
push 0x40
lea esi, [ebx + 5]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push esi
call ebx
push edi
push 0x90
push esi
call fcn.10031db0
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push esi
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10030080
mov esp, ebp
pop ebp
ret 8