Function at 0x14000d0e0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x6a0]
sub rsp, 0x7a0
mov rax, qword [0x1400363c8]
xor rax, rsp
mov qword [rbp + 0x690], rax
mov rbx, rcx
lea r8, str.OpenSvcWindowAsUser
lea r14, str.TOSTABSYSSVC.cpp
lea r15, str.__OpenSvcWindowAsUser_
lea r12, [0x14002b804]
lea rcx, [rbp - 0x40]
lea rdx, str.ENTER__s
mov qword [rbp - 0x48], r8
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x30], r15
mov qword [rbp - 0x28], r12
mov dword [rbp - 0x38], 0x919
mov dword [rbp - 0x20], 3
call fcn.1400012a0
xor esi, esi
lea rcx, [rbp + 0x62]
xor edx, edx
mov r8d, 0x206
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x68], rsi
mov word [rbp + 0x60], si
call fcn.140016a20
lea rcx, [rbp + 0x482]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x480], si
call fcn.140016a20
lea rcx, [rbp + 0x272]
xor edx, edx
mov r8d, 0x206
mov word [rbp + 0x270], si
call fcn.140016a20
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea r8, str.nActiveSessionId
lea rdx, str._s___d
lea rcx, [rsp + 0x60]
mov r9d, eax
mov edi, eax
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], 0x926
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], 3
call fcn.1400012a0
lea ecx, [rdi + 1]
test ecx, 0xfffffffe
jne 0x14000d23c
mov dword [rsp + 0x68], 0x927
mov ebx, 0x80004005
lea rdx, str.Error_Code:_0x_x
lea rcx, [rsp + 0x60]
mov r8d, ebx
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], esi
call fcn.1400012a0
jmp 0x14000d4fd
lea rcx, [rbp + 0x60]
xor edx, edx
mov r8d, 0x208
call fcn.140016a20
lea rdx, [rbp + 0x60]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000d26d
mov dword [rsp + 0x68], 0x92a
jmp 0x14000d20c
lea rcx, [rbp + 0x480]
xor edx, edx
mov r8d, 0x208
call fcn.140016a20
lea r9, [rbp + 0x60]
lea r8, str.__s___s
lea rcx, [rbp + 0x480]
mov edx, 0x104
mov qword [rsp + 0x20], rbx
call fcn.140011f30
lea rcx, [rbp + 0x270]
xor edx, edx
mov r8d, 0x208
call fcn.140016a20
lea rdx, [rbp + 0x270]
lea rax, [rbp + 0x60]
mov ecx, 2
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rdx, [rdx + 0x80]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
dec rcx
jne 0x14000d2d0
mov ecx, dword [rax]
mov dword [rdx], ecx
lea rcx, [rbp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r9, [rbp + 0x60]
lea r8, str.szUserApp
lea rdx, str._s___s
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], 0x933
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], 3
call fcn.1400012a0
lea r9, [rbp + 0x480]
lea r8, str.szUserAppParamter
lea rdx, str._s___s
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], 0x934
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], 3
call fcn.1400012a0
lea r9, [rbp + 0x270]
lea r8, str.szUserAppPath
lea rdx, str._s___s
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], r14
mov dword [rsp + 0x68], 0x935
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], 3
call fcn.1400012a0
lea rdx, [rbp - 0x70]
mov ecx, edi
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x14000d404
mov dword [rsp + 0x68], 0x937
jmp 0x14000d20c
mov rcx, qword [rbp - 0x70]
lea rax, [rbp - 0x78]
mov r9d, 1
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, 0x2000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x14000d43e
mov dword [rsp + 0x68], 0x938
jmp 0x14000d20c
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x68]
xor r8d, r8d
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x14000d460
mov dword [rsp + 0x68], 0x939
jmp 0x14000d20c
xor eax, eax
lea rcx, [rbp - 0x10]
xor edx, edx
lea r8d, [rax + 0x68]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
call fcn.140016a20
mov rcx, qword [rbp - 0x78]
lea rax, str.winsta0default
lea r8, [rbp + 0x480]
lea rdx, [rbp + 0x60]
mov qword [rbp], rax
lea rax, [rbp - 0x60]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x10]
mov dword [rbp - 0x10], 0x68
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x270]
mov dword [rbp + 0x2c], 1
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x68]
mov word [rbp + 0x30], si
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x430
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x14000d4fb
mov dword [rsp + 0x68], 0x94c
jmp 0x14000d20c
mov ebx, esi
mov rcx, qword [rbp - 0x70]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000d515
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x70], rsi
mov rcx, qword [rbp - 0x78]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14000d52d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x78], rsi
cmp qword [rbp - 0x60], rsi
je 0x14000d547
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14000d556
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov r8, qword [rbp - 0x48]
lea rdx, str.LEAVE__s
lea rcx, [rbp - 0x40]
call fcn.1400012a0
mov eax, ebx
mov rcx, qword [rbp + 0x690]
xor rcx, rsp
call fcn.140010f60
lea r11, [rsp + 0x7a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret