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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a0
call fcn.10059570
mov eax, dword [0x100ad540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x101825bc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100b131c]
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 0x10009aac
cmp dword [ebp + 0x14], 0
mov ecx, 1
mov dword [ebp - 0x1014], ecx
je 0x10009771
test esi, esi
je 0x10009771
push dword [ebp + 0x10]
push ebx
push esi
call fcn.100095b0
add esp, 0xc
test eax, eax
jne 0x1000976c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10058f9b
mov esp, ebp
pop ebp
ret
mov ecx, 1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10009a99
nop dword [eax]
mov eax, dword [0x100b1314]
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 0x10009b01
jmp 0x100097b7
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 0x100098f9
nop dword [eax]
mov esi, dword [0x100b1310]
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 0x1000985e
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 0x1000985e
cmp dword [ebp - 0x1038], 0x1000
jne 0x1000985e
test byte [ebp - 0x1034], 0xee
je 0x1000985e
mov ecx, dword [ebp - 0x103c]
cmp esi, ecx
ja 0x1000985e
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1048]
cmp eax, ecx
jbe 0x10009899
lea eax, [ebp - 0x101c]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000988f
push esi
push eax
push ebx
mov dword [ebp - 0x1010], eax
call fcn.1005a980
mov ecx, dword [ebp - 0x100c]
mov dword [ebp - 0x100c], ecx
jmp 0x100098a7
mov dword [ebp - 0x100c], 1
push esi
push edi
push ebx
call fcn.1005a400
mov ecx, dword [ebp - 0x100c]
add esp, 0xc
test ecx, ecx
je 0x100098d5
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 0x100098d5
push edi
push str.__page_read___could_not_restore_original_permissions_for_ptr__p_n
call fcn.10009e30
add esp, 8
mov ecx, dword [ebp - 0x1008]
add ebx, esi
add edi, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x100097e0
mov eax, dword [ebp - 0x1010]
mov esi, dword [ebp - 0x1028]
mov edx, dword [ebp - 0x1020]
xor ecx, ecx
test eax, eax
mov eax, dword [0x100b130c]
cmovne ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x1014], ecx
mov ecx, esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 4]
jg 0x10009b56
jmp 0x10009931
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 0x10009a64
nop
mov esi, dword [0x100b1308]
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 0x100099de
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 0x100099de
cmp dword [ebp - 0x1038], 0x1000
jne 0x100099de
test byte [ebp - 0x1034], 0xcc
je 0x100099de
mov ecx, dword [ebp - 0x103c]
cmp esi, ecx
ja 0x100099de
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1048]
cmp eax, ecx
jbe 0x10009a05
lea eax, [ebp - 0x1024]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100099fb
mov dword [ebp - 0x100c], eax
jmp 0x10009a10
mov dword [ebp - 0x1010], 1
push esi
push ebx
push edi
call fcn.1005a400
add esp, 0xc
cmp dword [ebp - 0x1010], 0
je 0x10009a40
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 0x10009a40
push edi
push str.__page_write___could_not_restore_original_permissions_for_ptr__p_n
call fcn.10009e30
add esp, 8
mov ecx, dword [ebp - 0x1008]
add edi, esi
add ebx, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x10009960
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 0x10009780
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10058f9b
mov esp, ebp
pop ebp
ret
push 0x100b131c
call fcn.10059507
add esp, 4
cmp dword [0x100b131c], 0xffffffff
jne 0x10009735
mov eax, dword [0x100acae0]
cmp eax, 0xffffffff
jne 0x10009aea
lea eax, [ebp - 0x1050]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x104c]
mov dword [0x100acae0], eax
jmp 0x10009aea
push 0x100b131c
mov dword [0x100b1318], eax
call fcn.100594b6
add esp, 4
jmp 0x10009735
push 0x100b1314
call fcn.10059507
add esp, 4
cmp dword [0x100b1314], 0xffffffff
jne 0x100097b1
mov eax, dword [0x100acae0]
cmp eax, 0xffffffff
jne 0x10009b3f
lea eax, [ebp - 0x107c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1078]
mov dword [0x100acae0], eax
jmp 0x10009b3f
push 0x100b1314
mov dword [0x100b1310], eax
call fcn.100594b6
add esp, 4
jmp 0x100097b1
push 0x100b130c
call fcn.10059507
add esp, 4
cmp dword [0x100b130c], 0xffffffff
jne 0x1000992b
mov eax, dword [0x100acae0]
cmp eax, 0xffffffff
jne 0x10009b94
lea eax, [ebp - 0x10a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x109c]
mov dword [0x100acae0], eax
jmp 0x10009b94
push 0x100b130c
mov dword [0x100b1308], eax
call fcn.100594b6
add esp, 4
jmp 0x1000992b