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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021d40
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1002e018]
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.10016a90
mov ecx, 0xdd
xor eax, eax
mov dl, byte [eax + 0x10028338]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x2c], dl
jns 0x10016fa4
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x1a
jl 0x10016f87
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0
mov ecx, dword [0x10161608]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
push 0x10016270
lea edx, [ebp - 0x2c]
push edx
call eax
mov esi, 7
mov edi, eax
call fcn.10002de0
add esp, 4
mov dword [0x100696a4], 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 + 0x10029520]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x10017024
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xe
jl 0x10017007
mov byte [ebp - 0x2e], 0
mov dword [ebp - 4], 1
mov ecx, dword [0x10161608]
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 0x1001706c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10017000
mov ecx, 0x97
xor eax, eax
mov dl, byte [eax + 0x100285e8]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x2c], dl
jns 0x10017090
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x1b
jl 0x10017073
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 2
mov ecx, dword [0x10161608]
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 0x10029530
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 + 0x1002863c]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x48], dl
jns 0x1001712e
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0x1b
jl 0x10017111
mov byte [ebp - 0x2d], 0
mov dword [ebp - 4], 3
mov ecx, dword [0x10161608]
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 0x10029530
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.10015d30
jmp 0x100171a0
mov ecx, 0x5e
xor eax, eax
mov dl, byte [eax + 0x10029520]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x3c], dl
jns 0x100171c4
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xe
jl 0x100171a7
mov byte [ebp - 0x2e], 0
mov dword [ebp - 4], 4
mov ecx, dword [0x10161608]
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 0x10017210
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100171a0
mov ecx, 0x5e
xor eax, eax
mov dl, byte [eax + 0x10029520]
xor dl, cl
inc ecx
and ecx, 0x800000ff
mov byte [ebp + eax - 0x20], dl
jns 0x10017234
dec ecx
or ecx, 0xffffff00
inc ecx
inc eax
cmp eax, 0xe
jl 0x10017217
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 5
mov ecx, dword [0x10161608]
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 0x1001727f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10017210
call fcn.10009a30
test eax, eax
je 0x1001728d
lea esi, [eax + 0x30]
jmp 0x1001728f
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], 0x10009b90
call edi
push 4
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call fcn.10009a30
test eax, eax
je 0x100172c7
lea esi, [eax + 0x10]
jmp 0x100172c9
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], 0x10009ae0
call edi
push 4
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call fcn.10016120
call fcn.10016d60
call fcn.1000c940
int3