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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021540
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1002c018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10016f30
mov ecx, 0xdd
xor eax, eax
mov dl, byte [eax + 0x10026218]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x2c], dl
jns 0x100171b4
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x1a
jl 0x10017197
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0
mov ecx, dword [0x1015f550]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
push 0x10016b60
lea edx, [ebp - 0x2c]
push edx
call eax
mov esi, 7
mov edi, eax
call fcn.10002e10
add esp, 4
mov dword [0x10067604], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov byte [ebp - 0x12], al
lea ebx, [ebx]
mov ecx, 0x5e
xor eax, eax
mov dl, byte [eax + 0x10027410]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x10017234
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xe
jl 0x10017217
mov byte [ebp - 0x2e], 0
mov dword [ebp - 4], 1
mov ecx, dword [0x1015f550]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x3c]
push edx
call eax
cmp dword [eax], 0xffffffff
sete cl
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], ax
mov byte [ebp - 0x2e], al
test cl, cl
je 0x1001727c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10017210
mov ecx, 0x97
xor eax, eax
mov dl, byte [eax + 0x100264c8]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x2c], dl
jns 0x100172a0
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x1b
jl 0x10017283
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 2
mov ecx, dword [0x1015f550]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x2c]
push edx
call eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 0x4c]
push ecx
push 0x40
mov esi, eax
push 5
push esi
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_memmove]
push 5
push 0x10027420
push esi
call ebx
mov eax, dword [ebp - 0x4c]
add esp, 0xc
lea edx, [ebp - 0x50]
push edx
push eax
push 5
push esi
call edi
push 5
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov ecx, 0x97
mov dl, byte [eax + 0x1002651c]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x48], dl
jns 0x1001733e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x1b
jl 0x10017321
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 3
mov ecx, dword [0x1015f550]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x48]
push edx
call eax
lea ecx, [ebp - 0x4c]
push ecx
push 0x40
mov esi, eax
push 5
push esi
call edi
push 5
push 0x10027420
push esi
call ebx
mov eax, dword [ebp - 0x4c]
add esp, 0xc
lea edx, [ebp - 0x50]
push edx
push eax
push 5
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 5
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or esi, 0xffffffff
mov dword [ebp - 4], esi
call fcn.10016670
jmp 0x100173b0
mov ecx, 0x5e
xor eax, eax
mov dl, byte [eax + 0x10027410]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x100173d4
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xe
jl 0x100173b7
mov byte [ebp - 0x2e], 0
mov dword [ebp - 4], 4
mov ecx, dword [0x1015f550]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x3c]
push edx
call eax
cmp dword [eax], 8
sete cl
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov word [ebp - 0x30], ax
mov byte [ebp - 0x2e], al
test cl, cl
je 0x10017420
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100173b0
mov ecx, 0x5e
xor eax, eax
mov dl, byte [eax + 0x10027410]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x20], dl
jns 0x10017444
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xe
jl 0x10017427
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 5
mov ecx, dword [0x1015f550]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [ebp - 0x20]
push edx
call eax
cmp dword [eax], 9
mov dword [ebp - 4], esi
sete cl
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov word [ebp - 0x14], ax
mov byte [ebp - 0x12], al
test cl, cl
je 0x1001748f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10017420
call fcn.10009c30
test eax, eax
je 0x1001749d
lea esi, [eax + 0x30]
jmp 0x1001749f
xor esi, esi
lea ecx, [ebp - 0x4c]
push ecx
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x50]
push edx
push eax
push 4
push esi
mov dword [esi], 0x10009cf0
call edi
push 4
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call fcn.10009c30
test eax, eax
je 0x100174d7
lea esi, [eax + 0x10]
jmp 0x100174d9
xor esi, esi
lea ecx, [ebp - 0x54]
push ecx
push 0x40
push 4
push esi
call edi
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x58]
push edx
push eax
push 4
push esi
mov dword [esi], 0x10009ce0
call edi
push 4
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call fcn.10016a10
call fcn.1000cb90
int3