Function at 0x10006060
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
sub esp, 0x88
mov eax, dword [edx]
push esi
mov esi, ecx
mov dword [ebp - 4], edx
push edi
mov dword [ebp - 0xc], esi
cmp eax, dword [edx + 4]
jne 0x100060c6
push 0x40
push 0x3000
push dword [ebx + 8]
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100060b4
mov dword [esi], eax
mov eax, esi
mov byte [esi + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov byte [esi], 0
mov eax, esi
mov byte [esi + 4], 0
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea eax, [ebx + 0xc]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], eax
xorps xmm0, xmm0
lea eax, [ebx + 8]
movaps xmmword [ebp - 0x80], xmm0
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x80]
push eax
movaps xmmword [ebp - 0x70], xmm0
mov dword [ebp - 0x60], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 4]
xor edi, edi
mov ecx, dword [ebx + 0xc]
mov eax, dword [edx]
mov esi, dword [eax]
cmp esi, ecx
jbe 0x10006105
mov edi, esi
sub edi, ecx
or eax, 0xffffffff
mov dword [ebp - 8], 0xffffffff
sub eax, esi
cmp eax, ecx
jbe 0x1000611b
lea eax, [esi + ecx]
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 0x78]
xorps xmm0, xmm0
mov eax, dword [ebp - 0x64]
cmovb edi, dword [ebp - 0x78]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 8]
cmp dword [ebp - 0x74], edi
movaps xmmword [ebp - 0x50], xmm0
cmovb edi, dword [ebp - 0x74]
dec esi
add esi, eax
mov dword [ebp - 8], edi
dec eax
movq qword [ebp - 0x40], xmm0
not eax
mov dword [ebp - 0x38], 0
and esi, eax
mov edi, esi
cmp esi, dword [ebp - 0x14]
jbe 0x100061f1
nop dword [eax + eax]
mov eax, dword [edx]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], eax
cmp eax, dword [edx + 4]
je 0x10006197
mov ecx, dword [eax]
mov edx, ecx
sub edx, edi
mov eax, edi
sub eax, ecx
cmp edi, ecx
mov ecx, dword [ebx + 0xc]
cmovbe eax, edx
cmp eax, ecx
ja 0x100061ee
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0x10], eax
cmp eax, dword [ecx + 4]
jne 0x10006170
push 0x1c
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100061eb
cmp dword [ebp - 0x40], 0x10000
jne 0x100061be
push edi
lea ecx, [ebp - 0x2c]
call fcn.100062d0
test eax, eax
jne 0x100061d7
mov edi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x4c]
dec edi
dec eax
not edi
and edi, eax
cmp edi, dword [ebp - 0x14]
jbe 0x100061eb
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
jmp 0x10006160
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
cmp esi, dword [ebp - 8]
jae 0x100062b2
nop word [eax + eax]
mov edi, dword [edx]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], esi
cmp edi, dword [edx + 4]
je 0x10006233
nop dword [eax]
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 + 0xc]
ja 0x100062b2
mov eax, dword [ebp - 4]
add edi, 4
cmp edi, dword [eax + 4]
jne 0x10006210
push 0x1c
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100062b2
cmp dword [ebp - 0x40], 0x10000
jne 0x1000629f
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], esi
mov edi, dword [eax]
cmp edi, dword [eax + 4]
je 0x10006284
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 [ebp - 0x14]
ja 0x1000629f
mov eax, dword [ebp - 0x2c]
add edi, 4
cmp edi, dword [eax + 4]
jne 0x10006265
mov eax, dword [ebp - 0x24]
push 0x40
push 0x3000
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x100061d7
add esi, dword [ebp - 0x44]
cmp esi, dword [ebp - 8]
jae 0x100062b2
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
jmp 0x10006200
mov ecx, dword [ebp - 0xc]
mov eax, ecx
pop edi
pop esi
mov byte [ecx], 1
mov byte [ecx + 4], 0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret