Function at 0x18000f978
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x60
mov rbx, rcx
mov rcx, qword [0x180042770]
test rcx, rcx
je 0x18000f65f
cmp dword [rbx + 0x24], 0
jne 0x18000f65f
mov rax, qword [rbx + 0x18]
mov r8, qword [rbx]
xor r9d, r9d
mov qword [r11 - 0x18], rax
mov rax, qword [rbx + 0x10]
xor edx, edx
mov qword [r11 - 0x20], rax
and qword [r11 - 0x28], 0
and qword [r11 - 0x30], 0
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], 1
and qword [r11 - 0x48], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x18000f6ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x18000f645
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW], 0
je 0x18000f645
mov rcx, rbx
add rsp, 0x60
pop rbx
jmp 0x18000f978
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x29
mov rdx, qword [rbx]
mov r8d, eax
call fcn.18000d4c0
xor eax, eax
jmp 0x18000f6b3
mov rax, qword [rbx + 0x18]
mov rdx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x10]
xor r8d, r8d
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
mov eax, dword [rbx + 0x20]
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
xor ecx, ecx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x18000f6ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, gethostbyname
jmp 0x18000f650
mov eax, 1
add rsp, 0x60
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x1060
call fcn.18001af20
sub rsp, rax
mov rax, qword [0x18003d030]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rbx, rcx
mov edi, 0x7fe
lea rcx, [rsp + 0x52]
xor esi, esi
xor edx, edx
mov r8d, edi
mov word [rsp + 0x50], si
call fcn.180019620
lea rcx, [rsp + 0x852]
mov r8d, edi
xor edx, edx
mov word [rsp + 0x850], si
call fcn.180019620
mov rax, qword [rbx + 0x10]
lea rdx, [rsp + 0x50]
mov qword [rax + 0x10], rsi
mov rcx, qword [rbx]
mov r8d, 0x400
mov edi, esi
call fcn.18000ed44
test eax, eax
jne 0x18000fa0b
mov edx, dword [rbx + 8]
lea ecx, [rsi + 7]
call fcn.18000d3d4
jmp 0x18000faef
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x400
jae 0x18000fa37
lea rdx, [rsp + 0x850]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rdi, [rsp + 0x850]
mov rax, qword [rbx + 0x18]
mov rcx, qword [0x180042770]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 0x20]
mov qword [rsp + 0x30], rdi
lea edx, [r8 + 2]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x18000fa7e
mov eax, 1
jmp 0x18000faf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x18000faaf
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], rsi
je 0x18000faaf
cmp dword [0x180042798], 1
jne 0x18000faaf
lea rdx, [rsp + 0x50]
mov r8, rdi
mov rcx, rbx
call fcn.18000f8f8
jmp 0x18000faf1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x18000fad9
mov rax, qword [rbx + 0x10]
cmp dword [rax], 0x70
jne 0x18000fad9
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], rsi
je 0x18000fad9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x4a
jmp 0x18000fae4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 0x29
mov rdx, qword [rbx]
mov r8d, eax
call fcn.18000d4c0
xor eax, eax
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.18001a200
lea r11, [rsp + 0x1060]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret