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

Disassembly:
mov eax, 0x10018094
call fcn.1000dc34
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], ebx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], esp
cmp eax, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
je 0x1000251d
mov byte [ebp + 0xb], 1
mov edi, eax
mov dword [ebp - 4], ebx
cmp ebx, 5
jae 0x100022dd
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.10001504
add edi, dword [ebp - 0x1c]
add ebx, dword [ebp - 0x1c]
pop ecx
pop ecx
jmp 0x100022c4
push 3
call fcn.1000d853
cmp eax, 0xfffffffe
pop ecx
jne 0x100022f0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp ebx, 1
jb 0x1000251d
cmp ebx, 0x64
ja 0x1000251d
lea edi, [ebx + 5]
push edi
call fcn.1000dc53
test eax, eax
pop ecx
mov dword [ebp - 0x14], eax
je 0x1000251d
call fcn.1000d7c4
test eax, eax
jge 0x10002323
push 1
pop eax
cmp eax, 0xfffffff5
jge 0x10002332
call fcn.10003967
call fcn.100039ec
lea eax, [ebp - 0x18]
push eax
push 0x40
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0x14]
call edi
lea eax, [ebx + 5]
push eax
push 0x90
push dword [ebp - 0x14]
call fcn.1000d7f0
add esp, 0xc
push ecx
xor ecx, esi
sbb ecx, esp
xor ecx, edx
xor ecx, eax
nop
pop ecx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x20], eax
call fcn.1000d7c4
test eax, eax
jge 0x10002375
push 1
pop eax
cmp eax, 0xffffffff
jge 0x10002389
call fcn.10003e51
call fcn.10004069
call fcn.10003700
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0xe9
jne 0x100023db
push ebx
mov dword [esi + 0x18], ebx
call fcn.1000dc53
pop ecx
mov dword [esi + 0x10], eax
lea ecx, [ebp - 0x18]
push ecx
push 0x40
push ebx
push eax
call edi
push ebx
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.1000dc70
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 0x14]
mov eax, dword [eax + 1]
lea eax, [eax + ecx + 5]
push eax
mov eax, 0xe5e5e5e5
mov eax, 0xeaeaeaea
pop eax
push dword [ebp - 0x14]
push eax
call fcn.1000148a
add esp, 0x14
jmp 0x10002433
call fcn.1000d7c4
test eax, eax
jge 0x100023e7
push 1
pop eax
cmp eax, 0xffffffff
jge 0x100023f1
call fcn.10003890
push ebx
push dword [esi + 0x14]
push dword [ebp - 0x14]
call fcn.1000dc70
add esp, 0xc
call fcn.1000d7c4
test eax, eax
jge 0x1000240c
push 1
pop eax
cmp eax, 0xfffffff5
jge 0x10002420
call fcn.10003920
call fcn.10003972
call fcn.10003e51
mov eax, dword [ebp - 0x14]
add eax, ebx
push eax
mov eax, ebx
add eax, dword [esi + 0x14]
push eax
call fcn.1000148a
pop ecx
pop ecx
test al, al
jne 0x1000243a
and byte [ebp + 0xb], al
push eax
sbb eax, esi
xor eax, esi
xor eax, esi
sbb eax, esi
xor eax, esi
nop
pop eax
cmp byte [ebp + 0xb], 0
je 0x100024fd
lea eax, [ebp - 0x18]
push eax
push 0x40
push ebx
push dword [esi + 0x14]
call edi
test eax, eax
je 0x100024fd
mov eax, dword [ebp - 0x14]
push ebx
push 0x90
mov dword [esi + 0xc], eax
push dword [esi + 0x14]
mov dword [esi + 0x18], ebx
call fcn.1000d7f0
push dword [esi + 0x14]
push dword [esi + 8]
call fcn.1000148a
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push edi
add edi, eax
add edi, eax
xor edi, eax
add edi, eax
add edi, eax
xor edi, eax
add edi, eax
nop
pop edi
push ebx
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
call fcn.1000d7c4
test eax, eax
jge 0x100024be
push 1
pop eax
cmp eax, 0xffffffff
jge 0x100024c8
call fcn.10004ba9
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push ebx
push dword [esi + 0x14]
call edi
test eax, eax
setne byte [ebp + 0xb]
push ebx
add ebx, esp
add ebx, edx
xor ebx, eax
add ebx, esi
add ebx, esp
pop ebx
cmp byte [ebp + 0xb], 0
jne 0x100024f8
push esi
call fcn.10002580
and byte [ebp + 0xb], 0
pop ecx
mov al, byte [ebp + 0xb]
jmp 0x1000251f
lea eax, [ebp - 0x14]
push eax
call fcn.1000252e
pop ecx
jmp 0x100024f8
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret