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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a0
call fcn.10060e30
mov eax, dword [0x100b8560]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1018e5f4]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100bc33c]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x102c], edi
mov dword [ebp - 0x1020], ecx
cmp eax, dword [ecx + 4]
jg 0x10009a9c
cmp dword [ebp + 0x14], 0
mov ecx, 1
mov dword [ebp - 0x1014], ecx
je 0x10009761
test esi, esi
je 0x10009761
push dword [ebp + 0x10]
push ebx
push esi
call fcn.100095a0
add esp, 0xc
test eax, eax
jne 0x1000975c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100608cb
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10009a89
nop dword [eax]
mov eax, dword [0x100bc334]
mov esi, 0x1000
cmp edx, esi
cmovb esi, edx
mov edx, dword [ebp - 0x1020]
mov ecx, esi
mov dword [ebp - 0x1028], esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 4]
jg 0x10009af1
jmp 0x100097a7
mov ecx, dword [ebp - 0x1008]
xor eax, eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x100c], eax
lea ebx, [ebp - 0x1004]
mov eax, 1
test esi, esi
je 0x100098e9
nop dword [eax]
mov esi, dword [0x100bc330]
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 0x1000984e
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 0x1000984e
cmp dword [ebp - 0x1038], 0x1000
jne 0x1000984e
test byte [ebp - 0x1034], 0xee
je 0x1000984e
mov ecx, dword [ebp - 0x103c]
cmp esi, ecx
ja 0x1000984e
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1048]
cmp eax, ecx
jbe 0x10009889
lea eax, [ebp - 0x101c]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000987f
push esi
push eax
push ebx
mov dword [ebp - 0x1010], eax
call fcn.10062240
mov ecx, dword [ebp - 0x100c]
mov dword [ebp - 0x100c], ecx
jmp 0x10009897
mov dword [ebp - 0x100c], 1
push esi
push edi
push ebx
call fcn.10061cc0
mov ecx, dword [ebp - 0x100c]
add esp, 0xc
test ecx, ecx
je 0x100098c5
lea eax, [ebp - 0x1054]
push eax
push dword [ebp - 0x101c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100098c5
push edi
push str.__page_read___could_not_restore_original_permissions_for_ptr__p_n
call fcn.10009e20
add esp, 8
mov ecx, dword [ebp - 0x1008]
add ebx, esi
add edi, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x100097d0
mov eax, dword [ebp - 0x1010]
mov esi, dword [ebp - 0x1028]
mov edx, dword [ebp - 0x1020]
xor ecx, ecx
test eax, eax
mov eax, dword [0x100bc32c]
cmovne ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x1014], ecx
mov ecx, esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 4]
jg 0x10009b46
jmp 0x10009921
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 0x10009a54
nop
mov esi, dword [0x100bc328]
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 0x100099ce
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 0x100099ce
cmp dword [ebp - 0x1038], 0x1000
jne 0x100099ce
test byte [ebp - 0x1034], 0xcc
je 0x100099ce
mov ecx, dword [ebp - 0x103c]
cmp esi, ecx
ja 0x100099ce
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1048]
cmp eax, ecx
jbe 0x100099f5
lea eax, [ebp - 0x1024]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100099eb
mov dword [ebp - 0x100c], eax
jmp 0x10009a00
mov dword [ebp - 0x1010], 1
push esi
push ebx
push edi
call fcn.10061cc0
add esp, 0xc
cmp dword [ebp - 0x1010], 0
je 0x10009a30
lea eax, [ebp - 0x1058]
push eax
push dword [ebp - 0x1024]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10009a30
push edi
push str.__page_write___could_not_restore_original_permissions_for_ptr__p_n
call fcn.10009e20
add esp, 8
mov ecx, dword [ebp - 0x1008]
add edi, esi
add ebx, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x10009950
mov eax, dword [ebp - 0x100c]
mov esi, dword [ebp - 0x1028]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov edi, dword [ebp - 0x102c]
test eax, eax
cmovne ecx, dword [ebp - 0x1014]
sub edx, esi
add dword [ebp - 0x1018], esi
add edi, esi
mov dword [ebp - 0x1014], ecx
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x102c], edi
test edx, edx
jne 0x10009770
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100608cb
mov esp, ebp
pop ebp
ret
push 0x100bc33c
call fcn.10060dc3
add esp, 4
cmp dword [0x100bc33c], 0xffffffff
jne 0x10009725
mov eax, dword [0x100b7ae0]
cmp eax, 0xffffffff
jne 0x10009ada
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x104c]
mov dword [0x100b7ae0], eax
jmp 0x10009ada
push 0x100bc33c
mov dword [0x100bc338], eax
call fcn.10060d72
add esp, 4
jmp 0x10009725
push 0x100bc334
call fcn.10060dc3
add esp, 4
cmp dword [0x100bc334], 0xffffffff
jne 0x100097a1
mov eax, dword [0x100b7ae0]
cmp eax, 0xffffffff
jne 0x10009b2f
lea eax, [ebp - 0x107c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1078]
mov dword [0x100b7ae0], eax
jmp 0x10009b2f
push 0x100bc334
mov dword [0x100bc330], eax
call fcn.10060d72
add esp, 4
jmp 0x100097a1
push 0x100bc32c
call fcn.10060dc3
add esp, 4
cmp dword [0x100bc32c], 0xffffffff
jne 0x1000991b
mov eax, dword [0x100b7ae0]
cmp eax, 0xffffffff
jne 0x10009b84
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x109c]
mov dword [0x100b7ae0], eax
jmp 0x10009b84
push 0x100bc32c
mov dword [0x100bc328], eax
call fcn.10060d72
add esp, 4
jmp 0x1000991b