Function at 0x1800244a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r12
push r13
push r14
sub rsp, 0x40
mov rax, qword [0x1800a8040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov r13, rcx
xor r12d, r12d
mov ecx, pe_nt_image_headers64
call fcn.180064330
mov r14, rax
test rax, rax
je 0x180024753
cmp dword [0x1800d7db0], r12d
mov qword [rsp + 0x38], rdi
jne 0x1800244fa
lea rcx, [0x1800d7dc0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1800d7db0], 1
lea rcx, [0x1800d7dc0]
mov qword [rsp + 0x78], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [r13]
mov rcx, qword [0x1800d7da0]
mov rdx, qword [rax]
mov qword [r14], rdx
test rcx, rcx
je 0x18002453b
lea rax, [rcx + 0x38]
cmp rax, rdx
je 0x1800245bb
mov rcx, qword [rcx + 0x80]
test rcx, rcx
jne 0x180024522
lea rsi, [r14 + 0x18]
mov qword [rsi], r12
cmp qword [0x1800d7da8], r12
mov edi, 0x100000
jne 0x18002457d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.ZwQuerySystemInformation
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800d7da8], rax
test rax, rax
je 0x180024731
mov qword [rsp + 0x68], rbx
mov ecx, edi
call fcn.180064330
mov rbx, rax
test rax, rax
je 0x18002472c
xor r9d, r9d
mov r8d, edi
mov rdx, rax
lea ecx, [r9 + 5]
call qword [0x1800d7da8]
cmp eax, 0xc0000004
jne 0x1800245d8
mov rcx, rbx
call fcn.18005ed80
add edi, edi
jmp 0x180024582
mov qword [r14 + 0x18], rcx
lea rsi, [r14 + 0x18]
test rcx, rcx
je 0x180024542
mov eax, dword [rcx + 8]
mov dword [r14 + 0x10], eax
jmp 0x180024542
test eax, eax
js 0x180024724
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov r15, rbx
cmp qword [rbx + 0x50], rcx
je 0x18002460a
mov eax, dword [rbx]
test eax, eax
je 0x180024608
add rbx, rax
jne 0x1800245f5
jmp 0x18002460a
xor ebx, ebx
mov r8, rbx
mov rcx, r14
call fcn.180023380
mov rcx, qword [rsi]
mov rbp, r15
test rcx, rcx
je 0x18002470b
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x20]
mov edx, dword [rcx + 8]
mov r8d, 0x40
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x18002470b
mov rax, qword [rsi]
xor edx, edx
mov rdi, qword [rax]
cmp dword [rax + 8], edx
jbe 0x180024675
nop word [rax + rax]
movzx eax, byte [rdx + rax + 0x58]
mov byte [rdx + rdi], al
inc edx
mov rax, qword [rsi]
cmp edx, dword [rax + 8]
jb 0x180024660
mov rdi, qword [rax]
mov ebx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, ebx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rcx, qword [rsi]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov edx, dword [rcx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rsi]
mov r12d, 1
mov rcx, qword [r13]
mov rax, qword [rax]
mov qword [rcx], rax
mov rdx, qword [rsi]
mov r8, qword [rdx + 0x78]
test r8, r8
je 0x1800246d3
mov rax, qword [rdx + 0x80]
mov qword [r8 + 0x80], rax
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x1800246e7
mov rax, qword [rdx + 0x78]
mov qword [r8 + 0x78], rax
cmp qword [0x1800d7da0], rdx
jne 0x1800246fe
mov rax, qword [rdx + 0x80]
mov qword [0x1800d7da0], rax
xor eax, eax
mov qword [rdx + 0x78], rax
mov qword [rdx + 0x80], rax
call fcn.1800232c0
mov rcx, rbp
call fcn.18005ed80
mov r15, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x70]
jmp 0x18002472c
mov rcx, rbx
call fcn.18005ed80
mov rbx, qword [rsp + 0x68]
mov rcx, r14
call fcn.18005ed80
lea rcx, [0x1800d7dc0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x38]
mov eax, r12d
mov rsi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18002b710
add rsp, 0x40
pop r14
pop r13
pop r12
ret