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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10198754]
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 0x1005bd08
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x60], edx
jmp 0x1005bd0f
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.1005d050
add esp, 8
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x50], eax
jmp 0x1005bd47
mov ecx, dword [ebp - 0x58]
add ecx, 1
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0x50]
jae 0x1005beb7
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp + 0x10]
jae 0x1005beb7
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 0x1005bd7b
jmp 0x1005beb7
cmp dword [ebp - 0x34], 0x10000
jne 0x1005be75
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x54]
jb 0x1005be75
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 0x1005be75
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 0x1005be07
mov ecx, dword [ebp - 0x4c]
add ecx, 1
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x5c]
jae 0x1005be3f
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 0x1005bdfe
mov edx, dword [ebp - 0x5c]
sub edx, 1
imul eax, edx, 0x74
mov ecx, dword [ebp - 0x48]
mov edx, dword [0x1019dfe0]
mov dword [ecx + eax + 0x70], edx
cmp dword [0x1019dfe0], 0
je 0x1005be73
mov eax, dword [ebp - 0x5c]
sub eax, 1
imul ecx, eax, 0x74
add ecx, dword [ebp - 0x48]
mov edx, dword [0x1019dfe0]
mov dword [edx + 0x6c], ecx
jmp 0x1005beb7
mov eax, dword [ebp - 0x58]
and eax, 0x80000001
jns 0x1005be84
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x1005be91
mov dword [ebp - 0x64], 0xffffffff
jmp 0x1005be98
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 0x1005bd3e
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006bd80
mov esp, ebp
pop ebp
ret