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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a8
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 [0x1018e388]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1034], edi
mov dword [ebp - 0x1024], ecx
cmp eax, dword [ecx + 4]
jg 0x1005ef6e
cmp dword [ebp + 0x14], 0
mov eax, 1
mov dword [ebp - 0x1014], eax
je 0x1005ec11
test esi, esi
je 0x1005ec11
push dword [ebp + 0x10]
push ebx
push esi
call fcn.1005ea50
add esp, 0xc
test eax, eax
jne 0x1005ec0c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100608cb
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005ef5d
nop dword [eax]
mov edx, dword [ebp - 0x1024]
mov esi, 0x1000
mov eax, dword [0x1018e380]
cmp ecx, esi
cmovb esi, ecx
mov ecx, esi
mov dword [ebp - 0x1030], esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 4]
jg 0x1005efc3
jmp 0x1005ec57
mov ecx, dword [ebp - 0x1008]
mov dword [ebp - 0x1020], 0
mov eax, 1
mov dword [ebp - 0x1010], 0
lea ebx, [ebp - 0x1004]
mov dword [ebp - 0x100c], eax
test esi, esi
je 0x1005edb3
mov esi, dword [0x1018e37c]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x1005ecf8
push 0x1c
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1038], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1050], xmm0
movq qword [ebp - 0x1040], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005ecf8
cmp dword [ebp - 0x1040], 0x1000
jne 0x1005ecf8
test byte [ebp - 0x103c], 0xee
je 0x1005ecf8
mov ecx, dword [ebp - 0x1044]
cmp esi, ecx
ja 0x1005ecf8
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1050]
cmp eax, ecx
jbe 0x1005ed1f
lea eax, [ebp - 0x1020]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1005ed15
mov dword [ebp - 0x100c], eax
jmp 0x1005ed1f
mov dword [ebp - 0x1010], 1
lea eax, [ebp - 0x1018]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x1005ed44
xor ecx, ecx
mov dword [ebp - 0x1018], ecx
jmp 0x1005ed4a
mov ecx, dword [ebp - 0x1018]
cmp dword [ebp - 0x1010], 0
je 0x1005ed6e
lea eax, [ebp - 0x105c]
push eax
push dword [ebp - 0x1020]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1018]
cmp ecx, esi
je 0x1005ed8f
mov eax, esi
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push 0
push eax
call fcn.10062240
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x100c], eax
jmp 0x1005ed95
mov eax, dword [ebp - 0x100c]
mov ecx, dword [ebp - 0x1008]
add ebx, esi
add edi, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x1005ec84
mov esi, dword [ebp - 0x1030]
mov edx, dword [ebp - 0x1024]
xor ecx, ecx
test eax, eax
mov eax, dword [0x1018e378]
cmovne ecx, dword [ebp - 0x1014]
mov dword [ebp - 0x1014], ecx
mov ecx, esi
mov dword [ebp - 0x1008], ecx
cmp eax, dword [edx + 4]
jg 0x1005f018
jmp 0x1005edeb
mov ecx, dword [ebp - 0x1008]
mov edi, dword [ebp - 0x101c]
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], eax
mov ebx, 1
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x1010], 0
test esi, esi
je 0x1005ef28
nop
mov esi, dword [0x1018e374]
xor edx, edx
mov eax, edi
div esi
sub esi, edx
cmp ecx, esi
cmovle esi, ecx
test edi, edi
je 0x1005ee94
push 0x1c
lea eax, [ebp - 0x1050]
mov dword [ebp - 0x1038], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1050], xmm0
movq qword [ebp - 0x1040], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1005ee94
cmp dword [ebp - 0x1040], 0x1000
jne 0x1005ee94
test byte [ebp - 0x103c], 0xcc
je 0x1005ee94
mov ecx, dword [ebp - 0x1044]
cmp esi, ecx
ja 0x1005ee94
mov eax, edi
sub ecx, esi
sub eax, dword [ebp - 0x1050]
cmp eax, ecx
jbe 0x1005eeb7
lea eax, [ebp - 0x1028]
push eax
push 0x40
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1005eead
xor ebx, ebx
jmp 0x1005eeb7
mov dword [ebp - 0x1010], 1
lea eax, [ebp - 0x102c]
push eax
push esi
push dword [ebp - 0x100c]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1005eedd
mov dword [ebp - 0x102c], eax
cmp dword [ebp - 0x1010], 0
je 0x1005eefb
lea eax, [ebp - 0x1060]
push eax
push dword [ebp - 0x1028]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1008]
xor eax, eax
cmp dword [ebp - 0x102c], esi
cmovne ebx, eax
add dword [ebp - 0x100c], esi
add edi, esi
sub ecx, esi
mov dword [ebp - 0x1008], ecx
jne 0x1005ee20
mov esi, dword [ebp - 0x1030]
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov edi, dword [ebp - 0x1034]
test ebx, ebx
cmovne eax, dword [ebp - 0x1014]
sub ecx, esi
add dword [ebp - 0x101c], esi
add edi, esi
mov dword [ebp - 0x1014], eax
mov dword [ebp + 0x10], ecx
mov dword [ebp - 0x1034], edi
test ecx, ecx
jne 0x1005ec20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100608cb
mov esp, ebp
pop ebp
ret
push 0x1018e388
call fcn.10060dc3
add esp, 4
cmp dword [0x1018e388], 0xffffffff
jne 0x1005ebd5
mov eax, dword [0x100b84d0]
cmp eax, 0xffffffff
jne 0x1005efac
lea eax, [ebp - 0x1058]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1054]
mov dword [0x100b84d0], eax
jmp 0x1005efac
push 0x1018e388
mov dword [0x1018e384], eax
call fcn.10060d72
add esp, 4
jmp 0x1005ebd5
push 0x1018e380
call fcn.10060dc3
add esp, 4
cmp dword [0x1018e380], 0xffffffff
jne 0x1005ec51
mov eax, dword [0x100b84d0]
cmp eax, 0xffffffff
jne 0x1005f001
lea eax, [ebp - 0x1084]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1080]
mov dword [0x100b84d0], eax
jmp 0x1005f001
push 0x1018e380
mov dword [0x1018e37c], eax
call fcn.10060d72
add esp, 4
jmp 0x1005ec51
push 0x1018e378
call fcn.10060dc3
add esp, 4
cmp dword [0x1018e378], 0xffffffff
jne 0x1005ede5
mov eax, dword [0x100b84d0]
cmp eax, 0xffffffff
jne 0x1005f056
lea eax, [ebp - 0x10a8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10a4]
mov dword [0x100b84d0], eax
jmp 0x1005f056
push 0x1018e378
mov dword [0x1018e374], eax
call fcn.10060d72
add esp, 4
jmp 0x1005ede5