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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1019a784]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xc], 0x1000
jbe 0x1005e3a8
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x60], edx
jmp 0x1005e3af
mov dword [ebp - 0x60], 0x1000
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1005f6e0
add esp, 8
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
jmp 0x1005e3e7
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x50]
jae 0x1005e557
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + 0x10]
jae 0x1005e557
lfence
push 0x1c
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1005e41b
jmp 0x1005e557
cmp dword [ebp - 0x34], 0x10000
jne 0x1005e515
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x54]
jb 0x1005e515
lfence
push 0x40
push 0x3000
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x1005e515
mov eax, dword [ebp - 0x54]
xor edx, edx
mov ecx, 0x74
div ecx
mov dword [ebp - 0x5c], eax
mov edx, 0x74
imul eax, edx, 0
mov ecx, dword [ebp - 0x48]
mov dword [ecx + eax + 0x6c], 0
mov edx, 0x74
shl edx, 0
add edx, dword [ebp - 0x48]
mov eax, 0x74
imul ecx, eax, 0
mov eax, dword [ebp - 0x48]
mov dword [eax + ecx + 0x70], edx
mov dword [ebp - 0x4c], 1
jmp 0x1005e4a7
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x5c]
jae 0x1005e4df
mov eax, dword [ebp - 0x4c]
sub eax, 1
imul ecx, eax, 0x74
add ecx, dword [ebp - 0x48]
imul edx, dword [ebp - 0x4c], 0x74
mov eax, dword [ebp - 0x48]
mov dword [eax + edx + 0x6c], ecx
mov ecx, dword [ebp - 0x4c]
add ecx, 1
imul edx, ecx, 0x74
add edx, dword [ebp - 0x48]
imul eax, dword [ebp - 0x4c], 0x74
mov ecx, dword [ebp - 0x48]
mov dword [ecx + eax + 0x70], edx
jmp 0x1005e49e
mov edx, dword [ebp - 0x5c]
sub edx, 1
imul eax, edx, 0x74
mov ecx, dword [ebp - 0x48]
mov edx, dword [0x101a0100]
mov dword [ecx + eax + 0x70], edx
cmp dword [0x101a0100], 0
je 0x1005e513
mov eax, dword [ebp - 0x5c]
sub eax, 1
imul ecx, eax, 0x74
add ecx, dword [ebp - 0x48]
mov edx, dword [0x101a0100]
mov dword [edx + 0x6c], ecx
jmp 0x1005e557
mov eax, dword [ebp - 0x58]
and eax, 0x80000001
jns 0x1005e524
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1005e531
mov dword [ebp - 0x64], 0xffffffff
jmp 0x1005e538
mov dword [ebp - 0x64], 1
mov ecx, dword [ebp - 0x58]
add ecx, 1
imul ecx, dword [ebp - 0x54]
imul ecx, dword [ebp - 0x64]
mov dword [ebp - 0x6c], ecx
mov edx, dword [ebp - 0x50]
add edx, dword [ebp - 0x6c]
mov dword [ebp - 0x50], edx
jmp 0x1005e3de
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e560
mov esp, ebp
pop ebp
ret