Function at 0x14013ced0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
xor r12b, r12b
xor r15b, r15b
xor r13d, r13d
mov esi, r13d
or r14d, 0xffffffff
lea rbx, vtable.Core::Collections::Generic::LinkedList_unsigned_int_.0
lea rdi, vtable.Core::SharedPtr_class_Core::Collections::Generic::IEnumerator_unsigned_int__.0
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
je 0x14013cf3e
mov ecx, eax
call fcn.14013ce10
mov rsi, rax
test rax, rax
jne 0x14013d128
test r14d, r14d
jle 0x14013cf46
dec r14d
lea eax, [r14 + 1]
cmp eax, 1
ja 0x14013d113
mov qword [rsp + 0x70], rbx
lea rax, vtable.Core::Collections::Generic::LinkedList_unsigned_int_.1.0
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x70], r13d
mov qword [rsp + 0x68], r13
mov edx, 0xb
lea rcx, [rsp + 0x60]
call fcn.1401fcb40
mov eax, dword [rsp + 0x68]
inc eax
movsxd rdx, eax
mov r9d, 0xb
lea r8, str.LogonUI.exe
mov rcx, qword [rsp + 0x60]
call fcn.1402ba94c
mov edx, 0xb
lea rcx, [rsp + 0x60]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.1401b3760
movzx ebx, al
cmp dword [rsp + 0x68], 0
jle 0x14013cfd7
mov rcx, qword [rsp + 0x60]
call fcn.1402b7350
test bl, bl
je 0x14013d0c9
cmp dword [rbp - 0x70], 0
jne 0x14013cfee
or r14d, 0xffffffff
jmp 0x14013d0c9
cmp r14d, 0xffffffff
jne 0x14013cfff
mov r14d, 5
jmp 0x14013d0c9
mov ecx, 0x18
call fcn.1402b6dbc
mov rbx, rax
test rax, rax
je 0x14013d02a
lea rax, vtable.Core::Collections::Generic::LinkedList_unsigned_int_::Enumerator_unsigned_int_.0
mov qword [rbx], rax
lea rax, [rsp + 0x70]
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], r13
jmp 0x14013d02d
mov rbx, r13
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rbx
mov rdi, r13
mov qword [rbp - 0x40], r13
test rbx, rbx
je 0x14013d069
mov ecx, 4
call fcn.1402b6dbc
mov rdi, rax
test rax, rax
je 0x14013d05c
mov dword [rax], r13d
mov qword [rbp - 0x40], rax
jmp 0x14013d063
mov rdi, r13
mov qword [rbp - 0x40], r13
mov dword [rdi], 1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
test al, al
je 0x14013d09e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov ecx, dword [rax]
call fcn.14013cd60
mov rsi, rax
test rax, rax
jne 0x14013d09b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
test al, al
jne 0x14013d075
jmp 0x14013d09e
mov r15b, 1
test rdi, rdi
je 0x14013d0c2
mov eax, dword [rdi]
test eax, eax
jle 0x14013d0ad
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x14013d0c2
mov rcx, rbx
call fcn.1402150f0
mov rcx, rdi
call fcn.1402150f0
lea rdi, vtable.Core::SharedPtr_class_Core::Collections::Generic::IEnumerator_unsigned_int__.0
lea rbx, vtable.Core::Collections::Generic::LinkedList_unsigned_int_.0
mov qword [rsp + 0x70], rbx
lea rax, vtable.Core::Collections::Generic::LinkedList_unsigned_int_.1.0
mov qword [rsp + 0x78], rax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14013d107
nop word [rax + rax]
mov rbx, qword [rcx]
call fcn.1402150f0
mov rcx, rbx
test rbx, rbx
jne 0x14013d0f0
lea rbx, vtable.Core::Collections::Generic::LinkedList_unsigned_int_.0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov dword [rbp - 0x70], r13d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
test rsi, rsi
jne 0x14013d12b
jmp 0x14013cf20
xor r15b, r15b
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x28]
call fcn.1402bfa30
mov qword [rbp - 0x68], r13
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x30], 0x68
lea rcx, str.WinSta0Winlogon
lea rax, str.WinSta0Default
test r15b, r15b
cmovne rax, rcx
mov qword [rbp - 0x20], rax
cmp word [0x1404295c0], 0
jne 0x14013d187
mov r8d, 0x104
lea rdx, [0x1404295c0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, str.__kickstart
lea rdx, [0x1404295c0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14013d1e7
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12b, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, r12b
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret