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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a0
call fcn.100558b0
mov eax, dword [0x1014d094]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
mov esi, dword [0x1015afe0]
mov dword [ebp - 0x1018], ecx
push edi
mov edi, edx
mov ecx, dword [eax + esi*4]
mov eax, dword [0x1017eeb0]
mov dword [ebp - 0x102c], edi
mov dword [ebp - 0x1020], ecx
cmp eax, dword [ecx + 8]
jg 0x100f5b50
mov ecx, dword [ebp + 8]
mov edx, 1
mov dword [ebp - 0x1014], edx
test ecx, ecx
je 0x100f5b3d
nop word [eax + eax]
mov edx, dword [ebp - 0x1020]
mov esi, 0x1000
mov eax, dword [0x1017eeac]
cmp ecx, esi
cmovb esi, ecx
mov ecx, esi
mov dword [ebp - 0x1028], esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 8]
jg 0x100f5b9b
jmp 0x100f5887
mov ecx, dword [ebp - 0x1008]
mov dword [ebp - 0x101c], 0
lea ebx, [ebp - 0x1004]
mov dword [ebp - 0x100c], 0
mov eax, 1
test esi, esi
je 0x100f59aa
nop
mov esi, dword [0x1017eea8]
xor edx, edx
mov eax, edi
mov dword [ebp - 0x1010], 1
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x100f592e
push 0x1c
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1030], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1048], xmm0
movq qword [ebp - 0x1038], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100f592e
cmp dword [ebp - 0x1038], 0x1000
jne 0x100f592e
test byte [ebp - 0x1034], 0xee
je 0x100f592e
mov ecx, dword [ebp - 0x103c]
cmp esi, ecx
ja 0x100f592e
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1048]
cmp eax, ecx
jbe 0x100f595d
lea eax, [ebp - 0x101c]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100f5953
push esi
push eax
push ebx
mov dword [ebp - 0x1010], eax
call fcn.10056960
jmp 0x100f5965
mov dword [ebp - 0x100c], 1
push esi
push edi
push ebx
call fcn.100563e0
add esp, 0xc
cmp dword [ebp - 0x100c], 0
je 0x100f5986
lea eax, [ebp - 0x1054]
push eax
push dword [ebp - 0x101c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1008]
add ebx, esi
add edi, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x100f58b0
mov eax, dword [ebp - 0x1010]
mov esi, dword [ebp - 0x1028]
mov edx, dword [ebp - 0x1020]
xor ecx, ecx
test eax, eax
mov eax, dword [0x1017eea4]
cmovne ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x1014], ecx
mov ecx, esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 8]
jg 0x100f5bec
jmp 0x100f59e2
mov ecx, dword [ebp - 0x1008]
mov edi, dword [ebp - 0x1018]
lea ebx, [ebp - 0x1004]
mov dword [ebp - 0x1024], 0
mov eax, 1
mov dword [ebp - 0x1010], 0
test esi, esi
je 0x100f5b02
nop
mov esi, dword [0x1017eea0]
xor edx, edx
mov eax, edi
mov dword [ebp - 0x100c], 1
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x100f5a8e
push 0x1c
lea eax, [ebp - 0x1048]
mov dword [ebp - 0x1030], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1048], xmm0
movq qword [ebp - 0x1038], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100f5a8e
cmp dword [ebp - 0x1038], 0x1000
jne 0x100f5a8e
test byte [ebp - 0x1034], 0xcc
je 0x100f5a8e
mov ecx, dword [ebp - 0x103c]
cmp esi, ecx
ja 0x100f5a8e
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1048]
cmp eax, ecx
jbe 0x100f5ab5
lea eax, [ebp - 0x1024]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100f5aab
mov dword [ebp - 0x100c], eax
jmp 0x100f5ac0
mov dword [ebp - 0x1010], 1
push esi
push ebx
push edi
call fcn.100563e0
add esp, 0xc
cmp dword [ebp - 0x1010], 0
je 0x100f5ade
lea eax, [ebp - 0x1058]
push eax
push dword [ebp - 0x1024]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1008]
add edi, esi
add ebx, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x100f5a10
mov eax, dword [ebp - 0x100c]
mov esi, dword [ebp - 0x1028]
mov ecx, dword [ebp + 8]
xor edx, edx
mov edi, dword [ebp - 0x102c]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmovne edx, dword [ebp - 0x1014]
sub ecx, esi
add dword [ebp - 0x1018], esi
add edi, esi
mov dword [ebp - 0x1014], edx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x102c], edi
test ecx, ecx
jne 0x100f5850
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10054437
mov esp, ebp
pop ebp
ret
push 0x1017eeb0
call fcn.1005457d
add esp, 4
cmp dword [0x1017eeb0], 0xffffffff
jne 0x100f5834
cmp dword [0x1015a310], 0xffffffff
jne 0x100f5b89
lea eax, [ebp - 0x1050]
push eax
call ebx
mov eax, dword [ebp - 0x104c]
mov dword [0x1015a310], eax
jmp 0x100f5b89
push 0x1017eeb0
call fcn.10054533
add esp, 4
jmp 0x100f5834
push 0x1017eeac
call fcn.1005457d
add esp, 4
cmp dword [0x1017eeac], 0xffffffff
jne 0x100f5881
mov eax, dword [0x1015a310]
cmp eax, 0xffffffff
jne 0x100f5bd5
lea eax, [ebp - 0x107c]
push eax
call ebx
mov eax, dword [ebp - 0x1078]
mov dword [0x1015a310], eax
jmp 0x100f5bd5
push 0x1017eeac
mov dword [0x1017eea8], eax
call fcn.10054533
add esp, 4
jmp 0x100f5881
push 0x1017eea4
call fcn.1005457d
add esp, 4
cmp dword [0x1017eea4], 0xffffffff
jne 0x100f59dc
mov eax, dword [0x1015a310]
cmp eax, 0xffffffff
jne 0x100f5c2a
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x109c]
mov dword [0x1015a310], eax
jmp 0x100f5c2a
push 0x1017eea4
mov dword [0x1017eea0], eax
call fcn.10054533
add esp, 4
jmp 0x100f59dc