Function at 0x140004fd0
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, [0x140035b38]
xor esi, esi
call fcn.140001b8c
dec eax
cmp eax, 0x103
ja 0x140005295
mov rcx, qword [r15 + 0x10]
lea r13, str.kernelmoduleunloader.exe
and dword [rsp + 0x20], esi
lea r8, [rbp - 0x20]
mov r9, r13
mov edx, 0x3ea
call fcn.14000fec0
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.14000fec0
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.14000fec0
lea r9, [rbp - 0x20]
mov qword [rsp + 0x20], r13
lea r8, [0x140035bd0]
mov edx, 0x208
lea rcx, [rbp + 0x1f0]
call fcn.140002530
lea rcx, [rbp + 0x1f0]
call fcn.14000ff44
lea r13d, [r14 + 1]
mov rcx, rax
test rax, rax
je 0x14000523a
movsxd rax, dword [rax + 0x3c]
mov edx, 0x14c
cmp word [rax + rcx + 4], dx
jne 0x1400050de
mov ebx, dword [rax + rcx + 0x34]
mov eax, dword [rax + rcx + 0x28]
add rbx, rax
jmp 0x1400050f7
mov edx, 0x8664
cmp word [rax + rcx + 4], dx
jne 0x1400050f5
mov ebx, dword [rax + rcx + 0x28]
add rbx, qword [rax + rcx + 0x30]
jmp 0x1400050f7
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 0x140005245
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x638]
and qword [rbp + 0x638], rsi
lea r8, [0x14003ed20]
mov r9d, 0xbf
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400051cd
mov qword [rsp + 0x20], r15
call fcn.14000ad98
mov rcx, qword [rsp + 0x58]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test rsi, rsi
je 0x1400051cd
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 0x140005245
mov rcx, qword [rsi + 0x28]
mov edx, 0x7d0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140005212
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 0x140005245
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r9, str.kernelmoduleunloader.exe
mov dword [rsp + 0x20], r13d
lea r8, [rbp - 0x20]
xor edx, edx
xor ecx, ecx
call fcn.14000fec0
lea r9, str.kernelmoduleunloader.exe.sig
mov dword [rsp + 0x20], r13d
lea r8, [rbp - 0x20]
xor edx, edx
xor ecx, ecx
call fcn.14000fec0
lea r9, str.u.dll
mov dword [rsp + 0x20], r13d
lea r8, [rbp - 0x20]
xor edx, edx
xor ecx, ecx
call fcn.14000fec0
mov eax, r14d
jmp 0x1400052a2
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