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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422d88
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x434068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push ecx
push 0
push 0x428
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405c4e
xor al, al
jmp 0x405e35
push 0x1c
lea edx, [ebp - 0x9c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x405c7c
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x405e35
lea ecx, [ebp - 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x5c]
call fcn.004063c0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 0x1c], edx
jmp 0x405ca9
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x7c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
add edx, dword [eax + 8]
cmp dword [ebp - 0x1c], edx
jae 0x405d0d
lea ecx, [ebp - 0x30]
push ecx
push 0x40
mov edx, dword [ebp - 0x7c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x405cfa
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405e50
mov al, byte [ebp - 0x11]
jmp 0x405e35
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x5c]
call fcn.00406390
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
jmp 0x405ca0
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x405d58
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405e50
mov al, byte [ebp - 0x12]
jmp 0x405e35
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x34]
cmp eax, dword [edx + 8]
je 0x405d88
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x13], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405e50
mov al, byte [ebp - 0x13]
jmp 0x405e35
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
call fcn.00406370
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.00406350
jmp 0x405db0
lea ecx, [ebp - 0x20]
call fcn.004062c0
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x20]
call fcn.00406280
movzx eax, al
test eax, eax
je 0x405e15
lea ecx, [ebp - 0x20]
call fcn.004062e0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x7c]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x405e13
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405e50
mov al, byte [ebp - 0x14]
jmp 0x405e35
jmp 0x405da8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x15], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00405e50
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4