Function at 0x1400939d0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140467f78]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r14, r8
xor r15d, r15d
mov qword [rbp - 0x58], r15
mov edi, r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], rax
mov dword [rbp + 0x40], 0x68
movups xmmword [rbp + 0x48], xmm0
movups xmmword [rbp + 0x58], xmm0
movups xmmword [rbp + 0x68], xmm0
movups xmmword [rbp + 0x78], xmm0
movups xmmword [rbp + 0x88], xmm0
movups xmmword [rbp + 0x98], xmm0
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 8], xmm1
movdqa xmm0, xmmword [0x1404332f0]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], r15w
lea rdx, [rbp - 8]
call fcn.140093100
lea rdx, str._spacedeskServiceTray.exe
lea rcx, [rsp + 0x68]
call fcn.14008f3f0
nop
mov r8, rax
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x28]
call fcn.1400941d0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140093ace
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140093ac9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140093e85
call fcn.1402ab340
movdqa xmm0, xmmword [0x1404332f0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r15w
mov esi, 0xffffffff
call fcn.14008fe50
test al, al
je 0x140093c4f
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x30], r15d
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x50]
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x140093c0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.SIUtilGetLoggedOnUser_WTSEnumerateSessions_failed.__d_n
mov ecx, 1
call fcn.140093500
xor bl, bl
mov rdx, qword [rbp - 0x10]
cmp rdx, 8
jb 0x140093b7b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140093b76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140093e8b
call fcn.1402ab340
movdqa xmm0, xmmword [0x1404332f0]
movdqu xmmword [rbp - 0x18], xmm0
mov word [rbp - 0x28], r15w
mov rdx, qword [rbp + 0x10]
cmp rdx, 8
jb 0x140093bcd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140093bc8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140093e7f
call fcn.1402ab340
movdqa xmm0, xmmword [0x1404332f0]
movdqu xmmword [rbp + 8], xmm0
mov word [rbp - 8], r15w
movzx eax, bl
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1402ab320
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov edx, r15d
mov r9, qword [rbp - 0x50]
mov r8d, dword [rbp - 0x30]
test r8d, r8d
je 0x140093c44
nop
mov eax, edx
lea rcx, [rax + rax*2]
lea rax, [r9 + rcx*8]
cmp dword [rax + 0x10], 0
je 0x140093c42
inc edx
cmp edx, r8d
jb 0x140093c20
mov rcx, r9
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x140093c57
mov esi, dword [rax]
mov rcx, r9
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x140093c57
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov esi, eax
cmp esi, 0xffffffff
je 0x140093b39
lea rdx, [rbp - 0x58]
mov ecx, esi
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140093cd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov r9d, eax
mov r8d, esi
lea rdx, str.SIUtilProcessCreateAsUserLoggedOnConsole_WTSQueryUserToken_failed._SessionId:__d__d_n
mov ecx, 1
call fcn.140093500
cmp ebx, 0x1b6e
jne 0x140093b39
inc edi
mov r8d, edi
lea rdx, str.SEUtilProcessCreateAsUser_WTSQueryUserToken_failed._ERROR_CTX_WINSTATION_NOT_FOUND________________d__try_._n
mov ecx, 1
call fcn.140093500
cmp edi, 5
je 0x140093df9
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp - 0x58]
mov ecx, esi
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140093c70
mov r8d, esi
lea rdx, str.SIUtilProcessCreateAsUserLoggedOnConsole_WTSQueryUserToken_succeeded_SessionId:__d_n
mov ecx, 8
call fcn.140093500
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
lea rdx, str.SIUtilProcessCreateAsUserLoggedOnConsole_wsFullPathName__s_n
mov ecx, 0x40
call fcn.140093500
lea rdx, str.This_is_spacedesk_Service_calling.
lea rcx, [rbp - 0x78]
call fcn.14008f3f0
nop
mov r8, rax
lea rcx, [rbp + 0x18]
call fcn.140094250
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140093d66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140093d61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140093e91
call fcn.1402ab340
movdqa xmm0, xmmword [0x1404332f0]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r15w
lea r8, [rbp + 0x18]
cmp qword [rbp + 0x30], 8
cmovae r8, qword [rbp + 0x18]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], 0x20
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x140093e08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Unable_to_start_tray_application.__d_n
lea ecx, [rbx + 1]
call fcn.140093500
jmp 0x140093e2c
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140093b39
lea rdx, str.Tray_application_started._n
mov ecx, 8
call fcn.140093500
mov rax, qword [rbp - 0x48]
mov qword [r14], rax
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x140093e68
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140093e63
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140093e97
call fcn.1402ab340
movdqa xmm0, xmmword [0x1404332f0]
movdqu xmmword [rbp + 0x28], xmm0
mov word [rbp + 0x18], r15w
jmp 0x140093b3b
call fcn.1402b2324
nop
call fcn.1402b2324
nop
call fcn.1402b2324
nop
call fcn.1402b2324
nop
call fcn.1402b2324
int3