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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x610]
sub rsp, 0x710
mov rax, qword [0x1801e4940]
xor rax, rsp
mov qword [rbp + 0x600], rax
mov r14, rcx
lea rdi, [rbp - 0x20]
xor eax, eax
lea rdx, [rbp - 0x20]
mov ecx, 0x20a
xor ebx, ebx
rep stosb byte [rdi], al
lea rcx, str._temp_
mov r8d, 0x104
mov esi, ebx
call fcn.18001fd40
dec eax
cmp eax, 0x103
ja 0x18001d8b2
mov rcx, qword [r14 + 0x10]
lea r8, [rbp - 0x20]
mov qword [rsp + 0x748], r12
mov edx, 0x3ea
lea r12, [0x180031478]
mov qword [rsp + 0x750], r15
mov r9, r12
mov dword [rsp + 0x20], ebx
call fcn.180020ef0
mov rcx, qword [r14 + 0x10]
lea r9, str.kernelmoduleunloader.exe.sig
lea r8, [rbp - 0x20]
mov dword [rsp + 0x20], ebx
mov edx, 0x3eb
call fcn.180020ef0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea r9, str.u.dll
mov dword [rsp + 0x20], ebx
mov rcx, rax
lea r8, [rbp - 0x20]
mov edx, 0x7d0
call fcn.180020ef0
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], r12
lea r8, str._ws_ws
mov edx, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.180015b10
lea rcx, [rbp + 0x1f0]
call fcn.180021bb0
mov rdi, rax
test rax, rax
je 0x18001d843
mov rcx, rax
call fcn.180020fd0
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor eax, eax
lea rdi, [rsp + 0x70]
mov ecx, 0x68
rep stosb byte [rdi], al
lea rdi, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov ecx, 0x18
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
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x18001d84e
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov r9d, 0xbf
mov qword [rsp + 0x20], rax
lea r8, [0x1801e38d0]
mov qword [rsp + 0x68], rbx
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18001d817
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
lea rdx, [0x180021730]
lea rcx, [0x1800215e0]
call fcn.180024d10
mov rcx, qword [rsp + 0x58]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test rsi, rsi
je 0x18001d817
mov rcx, qword [rsp + 0x50]
mov 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 [r14 + 0x28], rbx
setne bl
test rsi, rsi
je 0x18001d84e
mov rcx, rsi
call fcn.180024dd0
jmp 0x18001d84e
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r9, r12
mov dword [rsp + 0x20], 1
lea r8, [rbp - 0x20]
xor edx, edx
xor ecx, ecx
call fcn.180020ef0
lea r9, str.kernelmoduleunloader.exe.sig
mov dword [rsp + 0x20], 1
lea r8, [rbp - 0x20]
xor edx, edx
xor ecx, ecx
call fcn.180020ef0
lea r9, str.u.dll
mov dword [rsp + 0x20], 1
lea r8, [rbp - 0x20]
xor edx, edx
xor ecx, ecx
call fcn.180020ef0
mov r15, qword [rsp + 0x750]
mov eax, ebx
mov r12, qword [rsp + 0x748]
jmp 0x18001d8bf
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rbp + 0x600]
xor rcx, rsp
call fcn.180028780
add rsp, 0x710
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret