Function at 0x180048cc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push rsi
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1800df010]
xor rax, rsp
mov qword [rsp + 0xa0], rax
xor r15d, r15d
mov qword [rsp + 0x20], rdx
cmp byte [rcx + 8], 1
mov rsi, rdx
mov r14, rcx
jne 0x180048cfa
xor al, al
jmp 0x180048fe5
mov qword [rsp + 0x100], rbx
mov qword [rsp + 0xc8], rbp
mov qword [rsp + 0xc0], rdi
mov byte [rcx + 8], 1
mov dword [rcx + 0x20], r8d
mov qword [rsp + 0xb8], r12
mov ecx, r8d
mov qword [rsp + 0xb0], r13
mov ebx, r8d
call fcn.18004b7a4
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rdi, rax
call fcn.180077330
lea rax, [rsp + 0x68]
lea r12, [r14 + 0x28]
cmp r12, rax
je 0x180048d62
mov rcx, qword [r12]
mov qword [r12], rdi
test rcx, rcx
je 0x180048d6a
jmp 0x180048d65
mov rcx, rdi
call fcn.18004ad48
mov r8d, dword [r14 + 0x20]
mov rdx, rsi
mov rcx, qword [r12]
call fcn.180077800
mov eax, dword [r14 + 0x20]
lea rcx, [rsp + 0x70]
mov r13, qword [r14 + 0x10]
add eax, 0x20
mov dword [r14 + 0x30], eax
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rbx, r15
lea rcx, [r13 + 0x7fffffff]
mov r15d, dword [rsp + 0x74]
mov rbp, r13
mov rsi, r13
nop dword [rax + rax]
lea rax, [r15 + rdi]
add rbp, rax
lea rax, [r15 + rdi]
sub rsi, rax
cmp rbp, rcx
ja 0x180048e40
lea rax, [r13 - 0x7fffffff]
cmp rsi, rax
jb 0x180048e40
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180048dfd
cmp dword [rsp + 0x48], 0x10000
jne 0x180048dfd
cmp qword [rsp + 0x40], rdi
cmovae rbx, qword [rsp + 0x28]
mov r8d, 0x30
lea rdx, [rsp + 0x28]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180048e2b
cmp dword [rsp + 0x48], 0x10000
jne 0x180048e2b
cmp qword [rsp + 0x40], rdi
cmovae rbx, qword [rsp + 0x28]
lea rcx, [r13 + 0x7fffffff]
test rbx, rbx
je 0x180048db0
xor r13d, r13d
jmp 0x180048e46
xor r13d, r13d
mov ebx, r13d
mov edx, dword [r14 + 0x30]
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [r14 + 0x38], rax
test rax, rax
je 0x180048ea9
mov r8d, dword [r14 + 0x20]
mov rcx, rax
mov rdx, qword [r12]
call fcn.180077800
mov eax, dword [r14 + 0x20]
mov r15b, 1
mov rdx, qword [r14 + 0x38]
movzx ecx, word [r14 + 0xa]
sub ecx, eax
sub ecx, edx
lea r8, [rax + rdx]
mov eax, dword [r14 + 0x10]
add eax, 0xfffffffb
add ecx, eax
movzx eax, byte [0x1800cdb80]
mov byte [r8], al
mov dword [r8 + 1], ecx
jmp 0x180048eac
xor r15b, r15b
movzx r8d, word [r14 + 0xa]
mov rdx, qword [r14 + 0x10]
mov rcx, qword [r14 + 0x18]
call fcn.180077800
mov ebp, dword [r14 + 0x38]
lea r9, [rsp + 0x5c]
mov rdi, qword [r14 + 0x10]
mov edx, 1
sub ebp, dword [r14 + 0x10]
mov rcx, rdi
sub ebp, 5
lea r8d, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x5c]
lea r9, [rsp + 0x60]
test eax, eax
mov edx, 1
movzx eax, byte [0x1800cdb80]
mov rcx, rdi
setne bl
mov byte [rdi], al
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, 4
lea r9, [rsp + 0x58]
test eax, eax
mov r8d, edx
setne al
and al, bl
mov rbx, qword [r14 + 0x10]
movzx esi, al
lea rcx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, dword [rsp + 0x58]
lea r9, [rsp + 0x68]
mov edx, 4
mov dword [rbx + 1], ebp
lea rcx, [rbx + 1]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r12, qword [rsp + 0xb8]
test eax, eax
movzx eax, word [r14 + 0xa]
setne bpl
test edi, edi
cmovne r13d, esi
and bpl, r13b
mov r13, qword [rsp + 0xb0]
cmp eax, 5
jle 0x180048fb3
mov rsi, qword [r14 + 0x10]
lea rbx, [rax - 5]
mov rcx, rbx
call fcn.18004b7a4
mov r8, rbx
mov edx, 0x90
mov rcx, rax
mov rdi, rax
call fcn.180077330
mov r8, rbx
lea rcx, [rsi + 5]
mov rdx, rdi
call fcn.180048bd0
and bpl, al
mov rcx, rdi
call fcn.18004ad48
mov rdi, qword [rsp + 0xc0]
test r15b, bpl
mov rbp, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x100]
je 0x180048fe3
mov rax, qword [r14]
mov rcx, r14
mov r8d, dword [r14 + 0x20]
mov rdx, qword [rsp + 0x20]
call qword [rax]
jmp 0x180048fe5
xor eax, eax
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.18004a9f0
add rsp, 0xd0
pop r15
pop r14
pop rsi
ret