Function at 0x1400d6744
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate thread
Use process replacement

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x600]
sub rsp, 0x700
mov r15, rcx
lea rdi, [rbp - 0x20]
xor eax, eax
lea rdx, [rbp - 0x20]
mov ecx, 0x20a
xor r14d, r14d
rep stosb byte [rdi], al
lea rcx, str._temp_
xor esi, esi
call fcn.1400cdb44
dec eax
cmp eax, 0x103
ja 0x1400d6a09
mov rcx, qword [r15 + 0x10]
lea r13, [0x14042fcd8]
and dword [rsp + 0x20], esi
lea r8, [rbp - 0x20]
mov r9, r13
mov edx, 0x3ea
call fcn.1400c9c5c
mov rcx, qword [r15 + 0x10]
lea r9, str.kernelmoduleunloader.exe.sig
and dword [rsp + 0x20], esi
lea r8, [rbp - 0x20]
mov edx, 0x3eb
call fcn.1400c9c5c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
and dword [rsp + 0x20], esi
lea r9, str.u.dll
mov rcx, rax
lea r8, [rbp - 0x20]
mov edx, 0x7d0
call fcn.1400c9c5c
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], r13
lea r8, [0x14042d7f8]
mov edx, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.1400c7e14
lea rcx, [rbp + 0x1f0]
call fcn.1400c9ce0
lea r13d, [r14 + 1]
mov rcx, rax
test rax, rax
je 0x1400d69ae
movsxd rax, dword [rax + 0x3c]
mov edx, 0x14c
cmp word [rax + rcx + 4], dx
jne 0x1400d6852
mov ebx, dword [rax + rcx + 0x34]
mov eax, dword [rax + rcx + 0x28]
add rbx, rax
jmp 0x1400d686b
mov edx, 0x8664
cmp word [rax + rcx + 4], dx
jne 0x1400d6869
mov ebx, dword [rax + rcx + 0x28]
add rbx, qword [rax + rcx + 0x30]
jmp 0x1400d686b
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
lea rdi, [rsp + 0x70]
lea edx, [rax + 0x68]
mov ecx, edx
rep stosb byte [rdi], al
lea ecx, [rax + 0x18]
mov dword [rsp + 0x70], edx
lea rdi, [rsp + 0x50]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp + 0x1f0]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400d69b9
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x638]
and qword [rbp + 0x638], rsi
lea r8, [0x140499cb0]
mov r9d, 0xbf
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400d6941
mov qword [rsp + 0x20], r15
call fcn.1400d7a24
mov rcx, qword [rsp + 0x58]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test rsi, rsi
je 0x1400d6941
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [r15 + 0x28], r14
setne r14b
test rsi, rsi
je 0x1400d69b9
mov rcx, qword [rsi + 0x28]
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1400d6986
mov rcx, qword [rsi + 0x28]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400d69b9
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, [0x14042fcd8]
mov dword [rsp + 0x20], r13d
lea r8, [rbp - 0x20]
xor edx, edx
xor ecx, ecx
call fcn.1400c9c5c
lea r9, str.kernelmoduleunloader.exe.sig
mov dword [rsp + 0x20], r13d
lea r8, [rbp - 0x20]
xor edx, edx
xor ecx, ecx
call fcn.1400c9c5c
lea r9, str.u.dll
mov dword [rsp + 0x20], r13d
lea r8, [rbp - 0x20]
xor edx, edx
xor ecx, ecx
call fcn.1400c9c5c
mov eax, r14d
jmp 0x1400d6a16
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
lea r11, [rsp + 0x700]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret