Function at 0x1000cec0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
mov eax, 0x10a4
call fcn.1000fd30
mov eax, dword [0x10040054]
xor eax, esp
mov dword [esp + 0x10a0], eax
mov eax, dword fs:[0x2c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
mov esi, dword [0x100417d8]
mov dword [esp + 0x1c], ecx
push edi
mov edi, edx
mov ecx, dword [eax + esi*4]
mov eax, dword [0x1004201c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ecx
cmp eax, dword [ecx + 4]
jle 0x1000cf47
push 0x1004201c
call fcn.1000f0ee
add esp, 4
cmp dword [0x1004201c], 0xffffffff
jne 0x1000cf47
cmp dword [0x10040d2c], 0xffffffff
jne 0x1000cf3a
lea eax, [esp + 0x38]
push eax
call ebx
mov eax, dword [esp + 0x3c]
mov dword [0x10040d2c], eax
push 0x1004201c
call fcn.1000f0a4
add esp, 4
mov edx, dword [esp + 0x10b4]
mov ecx, 1
mov dword [esp + 0x14], ecx
test edx, edx
je 0x1000d29a
push ebp
mov ecx, dword [esp + 0x2c]
mov esi, 0x1000
mov eax, dword [0x10042014]
cmp edx, esi
cmovb esi, edx
mov ebp, esi
mov dword [esp + 0x34], esi
cmp eax, dword [ecx + 4]
jle 0x1000cfc3
push 0x10042014
call fcn.1000f0ee
add esp, 4
cmp dword [0x10042014], 0xffffffff
jne 0x1000cfc3
mov eax, dword [0x10040d2c]
cmp eax, 0xffffffff
jne 0x1000cfb1
lea eax, [esp + 0x68]
push eax
call ebx
mov eax, dword [esp + 0x6c]
mov dword [0x10040d2c], eax
push 0x10042014
mov dword [0x10042010], eax
call fcn.1000f0a4
add esp, 4
mov dword [esp + 0x28], 0
mov eax, 1
mov dword [esp + 0x14], 0
lea ebx, [esp + 0xb0]
mov dword [esp + 0x10], eax
test esi, esi
je 0x1000d0e5
nop dword [eax + eax]
mov esi, dword [0x10042010]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ebp, esi
cmovle esi, ebp
test edi, edi
je 0x1000d054
push 0x1c
lea eax, [esp + 0x40]
mov dword [esp + 0x58], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x48], xmm0
movq qword [esp + 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000d054
cmp dword [esp + 0x4c], 0x1000
jne 0x1000d054
test byte [esp + 0x50], 0xee
je 0x1000d054
mov ecx, dword [esp + 0x48]
cmp esi, ecx
ja 0x1000d054
mov eax, edi
sub ecx, esi
sub eax, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x1000d075
lea eax, [esp + 0x28]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d06d
mov dword [esp + 0x10], eax
jmp 0x1000d075
mov dword [esp + 0x14], 1
lea eax, [esp + 0x1c]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
neg eax
sbb ecx, ecx
and ecx, dword [esp + 0x1c]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x1c], ecx
je 0x1000d0b2
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x2c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x1c]
cmp ecx, esi
je 0x1000d0d1
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push 0
push eax
call fcn.10010b10
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
jmp 0x1000d0d5
mov eax, dword [esp + 0x10]
add ebx, esi
add edi, esi
sub ebp, esi
jne 0x1000cff0
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
xor ecx, ecx
test eax, eax
mov eax, dword [0x10042018]
cmovne ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov ecx, esi
mov dword [esp + 0x10], ecx
cmp eax, dword [edx + 4]
jle 0x1000d159
push 0x10042018
call fcn.1000f0ee
add esp, 4
cmp dword [0x10042018], 0xffffffff
jne 0x1000d155
mov eax, dword [0x10040d2c]
cmp eax, 0xffffffff
jne 0x1000d143
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x90]
mov dword [0x10040d2c], eax
push 0x10042018
mov dword [0x1004200c], eax
call fcn.1000f0a4
add esp, 4
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
lea ebp, [esp + 0xb0]
mov dword [esp + 0x30], 0
mov ebx, 1
mov dword [esp + 0x14], 0
test esi, esi
je 0x1000d260
mov esi, dword [0x1004200c]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x1000d1e5
push 0x1c
lea eax, [esp + 0x40]
mov dword [esp + 0x58], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x48], xmm0
movq qword [esp + 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000d1e5
cmp dword [esp + 0x4c], 0x1000
jne 0x1000d1e5
test byte [esp + 0x50], 0xcc
je 0x1000d1e5
mov ecx, dword [esp + 0x48]
cmp esi, ecx
ja 0x1000d1e5
mov eax, edi
sub ecx, esi
sub eax, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x1000d204
lea eax, [esp + 0x30]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000d1fc
xor ebx, ebx
jmp 0x1000d204
mov dword [esp + 0x14], 1
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
neg eax
sbb eax, eax
and eax, dword [esp + 0x20]
cmp dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
je 0x1000d241
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x34]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, esi
cmovne ebx, ecx
mov ecx, dword [esp + 0x10]
add edi, esi
add ebp, esi
sub ecx, esi
mov dword [esp + 0x10], ecx
jne 0x1000d181
mov esi, dword [esp + 0x34]
mov edx, dword [esp + 0x10b8]
xor ecx, ecx
mov edi, dword [esp + 0x38]
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmovne ecx, dword [esp + 0x18]
sub edx, esi
add dword [esp + 0x24], esi
add edi, esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10b8], edx
mov dword [esp + 0x38], edi
test edx, edx
jne 0x1000cf60
pop ebp
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x10a8]
pop esi
pop ebx
xor ecx, esp
call fcn.1000ec51
add esp, 0x10a4
ret