Function at 0x1000b510
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov ecx, dword [ebx + 0xc]
sub esp, 0x78
mov eax, dword [ecx]
push esi
push edi
cmp eax, dword [ecx + 4]
jne 0x1000b562
push 0x40
push 0x3000
push dword [ebx + 0x10]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov eax, dword [ebx + 8]
test ecx, ecx
jne 0x1000b673
mov byte [eax], cl
mov byte [eax + 4], cl
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebx + 0x14]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
xorps xmm0, xmm0
lea eax, [ebx + 0x10]
movaps xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x70]
push eax
movaps xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebx + 0xc]
xor edi, edi
mov ecx, dword [ebx + 0x14]
mov eax, dword [edx]
mov esi, dword [eax]
cmp esi, ecx
jbe 0x1000b5a1
mov edi, esi
sub edi, ecx
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
sub eax, esi
cmp eax, ecx
jbe 0x1000b5b7
lea eax, [esi + ecx]
mov dword [ebp - 4], eax
cmp edi, dword [ebp - 0x68]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x54]
cmovb edi, dword [ebp - 0x68]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
cmp dword [ebp - 0x64], edi
movaps xmmword [ebp - 0x40], xmm0
cmovb edi, dword [ebp - 0x64]
dec esi
add esi, eax
mov dword [ebp - 4], edi
dec eax
movq qword [ebp - 0x30], xmm0
not eax
mov dword [ebp - 0x28], 0
and esi, eax
mov edi, esi
cmp esi, dword [ebp - 0xc]
jbe 0x1000b688
mov eax, dword [edx]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 8], eax
cmp eax, dword [edx + 4]
je 0x1000b62e
mov ecx, dword [eax]
mov edx, ecx
sub edx, edi
mov eax, edi
sub eax, ecx
cmp edi, ecx
mov ecx, dword [ebx + 0x14]
cmovbe eax, edx
cmp eax, ecx
ja 0x1000b685
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0xc]
add eax, 4
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 4]
jne 0x1000b607
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000b682
cmp dword [ebp - 0x30], 0x10000
jne 0x1000b657
push edi
lea ecx, [ebp - 0x20]
call fcn.1000aee0
mov ecx, eax
test ecx, ecx
jne 0x1000b670
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x3c]
dec edi
dec eax
not edi
and edi, eax
cmp edi, dword [ebp - 0xc]
jbe 0x1000b682
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0xc]
jmp 0x1000b5f7
mov eax, dword [ebx + 8]
mov dword [eax], ecx
mov byte [eax + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebx + 0x14]
mov edx, dword [ebx + 0xc]
cmp esi, dword [ebp - 4]
jae 0x1000b73f
mov edi, dword [edx]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
cmp edi, dword [edx + 4]
je 0x1000b6c3
nop
mov ecx, dword [edi]
mov eax, esi
mov edx, ecx
sub eax, ecx
sub edx, esi
cmp esi, ecx
cmovbe eax, edx
cmp eax, dword [ebx + 0x14]
ja 0x1000b73f
mov eax, dword [ebx + 0xc]
add edi, 4
cmp edi, dword [eax + 4]
jne 0x1000b6a0
push 0x1c
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000b73f
cmp dword [ebp - 0x30], 0x10000
jne 0x1000b72c
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x10], esi
mov edi, dword [eax]
cmp edi, dword [eax + 4]
je 0x1000b711
mov ecx, dword [edi]
mov eax, esi
mov edx, ecx
sub eax, ecx
sub edx, esi
cmp esi, ecx
mov ecx, dword [ebx + 0x14]
cmovbe eax, edx
cmp eax, ecx
ja 0x1000b72f
mov eax, dword [ebx + 0xc]
add edi, 4
cmp edi, dword [eax + 4]
jne 0x1000b6f0
push 0x40
push 0x3000
push dword [ebx + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
jne 0x1000b670
mov ecx, dword [ebx + 0x14]
add esi, dword [ebp - 0x34]
cmp esi, dword [ebp - 4]
jae 0x1000b73f
mov edx, dword [ebx + 0xc]
jmp 0x1000b691
mov eax, dword [ebx + 8]
pop edi
pop esi
mov byte [eax], 1
mov byte [eax + 4], 0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret