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

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
mov rax, qword [0x1801cc9c0]
xor rax, rbp
mov qword [rbp + 0x1c8], rax
lea rcx, [0x1801e23cc]
call fcn.18007c341
nop
lea rcx, [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
nop
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x1f0], 0x40000000
jbe 0x180157cb6
mov rax, qword [rbp + 0x1f0]
sub rax, 0x40000000
cmp qword [rbp + 0x28], rax
jae 0x180157cb6
mov rax, qword [rbp + 0x1f0]
sub rax, 0x40000000
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x1f0]
add rax, 0x40000000
cmp qword [rbp + 0x48], rax
jbe 0x180157cda
mov rax, qword [rbp + 0x1f0]
add rax, 0x40000000
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
sub rax, 0xfff
mov qword [rbp + 0x48], rax
mov rax, qword [0x1801d4410]
mov qword [rbp + 8], rax
jmp 0x180157d00
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180157d33
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 8], rax
jb 0x180157d1b
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 8], rax
jb 0x180157d1d
jmp 0x180157cf5
mov rax, qword [rbp + 8]
cmp qword [rax + 8], 0
je 0x180157d31
mov rax, qword [rbp + 8]
jmp 0x180157eb8
jmp 0x180157cf5
mov rax, qword [rbp + 0x1f0]
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0xb8], rax
jb 0x180157da5
mov r8d, dword [rbp + 0x90]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0xb8]
call fcn.180157940
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
jne 0x180157d78
jmp 0x180157da5
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1000
mov rcx, qword [rbp + 0xb8]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180157da3
jmp 0x180157da5
jmp 0x180157d41
cmp qword [rbp + 8], 0
jne 0x180157e1e
mov rax, qword [rbp + 0x1f0]
mov qword [rbp + 0xd8], rax
mov rax, qword [rbp + 0x48]
cmp qword [rbp + 0xd8], rax
ja 0x180157e1e
mov r8d, dword [rbp + 0x90]
mov rdx, qword [rbp + 0x48]
mov rcx, qword [rbp + 0xd8]
call fcn.180157770
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
jne 0x180157df1
jmp 0x180157e1e
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x1000
mov rcx, qword [rbp + 0xd8]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180157e1c
jmp 0x180157e1e
jmp 0x180157dba
cmp qword [rbp + 8], 0
je 0x180157eb4
mov rax, qword [rbp + 8]
add rax, 0x40
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 8]
mov qword [rax + 8], 0
mov rax, qword [rbp + 8]
mov dword [rax + 0x10], 0
mov rax, qword [rbp + 0xf8]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 8]
mov qword [rax], rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0xf8]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0xf8]
add rax, 0x40
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0xf8]
sub rcx, rax
mov rax, rcx
cmp rax, 0xfc0
jbe 0x180157e4f
mov rax, qword [rbp + 8]
mov rcx, qword [0x1801d4410]
mov qword [rax], rcx
mov rax, qword [rbp + 8]
mov qword [0x1801d4410], rax
mov rax, qword [rbp + 8]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x1801a9c70]
call fcn.18007bd6a
mov rax, rdi
mov rcx, qword [rbp + 0x1c8]
xor rcx, rbp
call fcn.18007b0a4
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret