Function at 0x14013fb40
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 0x14013fbae
mov ecx, eax
call fcn.14013fa80
mov rsi, rax
test rax, rax
jne 0x14013fd98
test r14d, r14d
jle 0x14013fbb6
dec r14d
lea eax, [r14 + 1]
cmp eax, 1
ja 0x14013fd83
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.1402028a0
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.1402c06dc
mov edx, 0xb
lea rcx, [rsp + 0x60]
call fcn.140203bb0
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.1401b6dd0
movzx ebx, al
cmp dword [rsp + 0x68], 0
jle 0x14013fc47
mov rcx, qword [rsp + 0x60]
call fcn.1402bd0e0
test bl, bl
je 0x14013fd39
cmp dword [rbp - 0x70], 0
jne 0x14013fc5e
or r14d, 0xffffffff
jmp 0x14013fd39
cmp r14d, 0xffffffff
jne 0x14013fc6f
mov r14d, 5
jmp 0x14013fd39
mov ecx, 0x18
call fcn.1402bcb4c
mov rbx, rax
test rax, rax
je 0x14013fc9a
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 0x14013fc9d
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 0x14013fcd9
mov ecx, 4
call fcn.1402bcb4c
mov rdi, rax
test rax, rax
je 0x14013fccc
mov dword [rax], r13d
mov qword [rbp - 0x40], rax
jmp 0x14013fcd3
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 0x14013fd0e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov ecx, dword [rax]
call fcn.14013f9d0
mov rsi, rax
test rax, rax
jne 0x14013fd0b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
test al, al
jne 0x14013fce5
jmp 0x14013fd0e
mov r15b, 1
test rdi, rdi
je 0x14013fd32
mov eax, dword [rdi]
test eax, eax
jle 0x14013fd1d
dec eax
mov dword [rdi], eax
cmp dword [rdi], 0
jne 0x14013fd32
mov rcx, rbx
call fcn.14021ae20
mov rcx, rdi
call fcn.14021ae20
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 0x14013fd77
nop word [rax + rax]
mov rbx, qword [rcx]
call fcn.14021ae20
mov rcx, rbx
test rbx, rbx
jne 0x14013fd60
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 0x14013fd9b
jmp 0x14013fb90
xor r15b, r15b
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x28]
call fcn.1402c5760
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 [0x140431680], 0
jne 0x14013fdf7
mov r8d, 0x104
lea rdx, [0x140431680]
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, [0x140431680]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14013fe57
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