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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422db8
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x434068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push ecx
push 0
push 0x418
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x405eee
xor al, al
jmp 0x4061c4
push 0x1c
lea edx, [ebp - 0xa4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x405f1a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4061c4
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x60]
call fcn.004063c0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x20], ecx
jmp 0x405f4d
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 0x84]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
add ecx, dword [eax]
cmp dword [ebp - 0x20], ecx
jae 0x405fb1
lea edx, [ebp - 0x3c]
push edx
push 0x40
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x405f9e
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00405e50
mov al, byte [ebp - 0x11]
jmp 0x4061c4
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00406390
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
jmp 0x405f41
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
call fcn.00411258
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x405fed
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00405e50
mov al, byte [ebp - 0x12]
jmp 0x4061c4
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x406045
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00411253
add esp, 4
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 - 0x60]
call fcn.00405e50
mov al, byte [ebp - 0x13]
jmp 0x4061c4
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edx]
je 0x406080
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00411253
add esp, 4
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 - 0x60]
call fcn.00405e50
mov al, byte [ebp - 0x14]
jmp 0x4061c4
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov dword [ebp - 0x24], 0
jmp 0x40609b
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx]
jae 0x4060cf
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.004061e0
movzx ecx, al
test ecx, ecx
je 0x4060cd
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
jmp 0x4060cf
jmp 0x406092
mov ecx, dword [ebp + 0x18]
cmp dword [ecx], 0
jne 0x406108
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00411253
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x15], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00405e50
mov al, byte [ebp - 0x15]
jmp 0x4061c4
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00411253
add esp, 4
lea edx, [ebp - 0x60]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00406370
lea ecx, [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00406350
jmp 0x40613c
lea ecx, [ebp - 0x28]
call fcn.004062c0
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x28]
call fcn.00406280
movzx eax, al
test eax, eax
je 0x4061a4
lea ecx, [ebp - 0x28]
call fcn.004062e0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
jne 0x4061a2
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x16], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00405e50
mov al, byte [ebp - 0x16]
jmp 0x4061c4
jmp 0x406134
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x17], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00405e50
mov al, byte [ebp - 0x17]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x14