Function at 0x140014620
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x1088]
mov eax, 0x1170
call fcn.140019100
sub rsp, rax
mov rax, qword [0x140023008]
xor rax, rsp
mov qword [rbp + 0x1060], rax
xor r15d, r15d
lea rax, [rsp + 0x78]
mov r14, rcx
mov qword [rsp + 0x70], r15
lea r9, [rsp + 0x70]
mov dword [rsp + 0x78], r15d
xor edx, edx
mov qword [rsp + 0x20], rax
lea r8d, [r15 + 1]
xor ecx, ecx
call qword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
je 0x1400149e4
mov rdx, qword [rsp + 0x70]
mov eax, dword [rsp + 0x78]
lea rcx, [rax + rax*2]
mov rax, rdx
lea r8, [rdx + rcx*8]
cmp rdx, r8
je 0x1400146b6
cmp dword [rax + 0x10], r15d
je 0x1400146b6
add rax, 0x18
cmp rax, r8
jne 0x1400146a7
cmp rax, r8
jne 0x1400146cc
test rdx, rdx
je 0x1400147a2
mov rcx, rdx
jmp 0x140014797
mov qword [rsp + 0x68], r15
lea rdx, [rsp + 0x68]
mov ecx, dword [rax]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x1400149e4
mov rdi, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x60], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rdi
lea esi, [r9 + 0x12]
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400149d6
mov ecx, eax
lea edx, [rsi - 0x11]
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov rbx, rax
test rax, rax
jne 0x14001473a
mov ecx, 0x30303030
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2904]
int3
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400149d6
mov ecx, dword [rbx]
sub ecx, 2
je 0x140014872
cmp ecx, 1
je 0x1400147d0
mov rcx, rbx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14001478d
mov qword [rsp + 0x68], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400147a2
mov qword [rsp + 0x70], r15
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
xor al, al
mov rcx, qword [rbp + 0x1060]
xor rcx, rsp
call fcn.140017980
lea r11, [rsp + 0x1170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov rsi, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
xor r9d, r9d
mov dword [rsp + 0x60], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rcx, rsi
lea edx, [r9 + 0x13]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400149c8
mov ecx, eax
mov edx, 1
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_378]
mov rdi, rax
test rax, rax
jne 0x140014824
mov ecx, 0x30303030
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2904]
int3
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov r8, rdi
mov qword [rsp + 0x20], rax
mov edx, 0x13
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x1400149c8
mov rcx, qword [rsp + 0x68]
mov rsi, qword [rdi]
test rcx, rcx
je 0x140014864
mov qword [rsp + 0x68], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov qword [rsp + 0x68], rsi
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x1048
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x824
lea rdx, [rbp + 0x10]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [rbp + 0x10], r15w
je 0x1400149e4
mov rcx, qword [r14]
lea rdx, str.SeTcbPrivilege
call fcn.1400144bc
test al, al
je 0x1400149e4
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x80]
xor r8d, r8d
mov qword [rbp - 0x80], r15
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1400149e4
xor edx, edx
lea rcx, [rbp - 0x5c]
lea r8d, [rdx + 0x64]
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x68]
lea rdx, [rbp + 0x10]
xor eax, eax
mov dword [rbp - 0x60], 0x68
mov qword [rbp - 0x68], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x78]
xor r9d, r9d
mov qword [rsp + 0x50], rax
xor r8d, r8d
lea rax, [rbp - 0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x400
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
movups xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x1400149e4
mov rdi, qword [rbp - 0x78]
or edx, 0xffffffff
mov rsi, qword [rbp - 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test rdi, rdi
je 0x140014969
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x140014977
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14001498e
mov qword [rbp - 0x80], r15
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test eax, eax
je 0x1400149e4
mov rcx, rbx
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_1110]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400149ac
mov qword [rsp + 0x68], r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x1400149c1
mov qword [rsp + 0x70], r15
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov al, 1
jmp 0x1400147a4
xor edx, edx
mov ecx, 0x30303030
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
int3
xor edx, edx
mov ecx, 0x30303030
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
int3
xor edx, edx
mov ecx, 0x30303030
call qword [sym.imp.Mso20Win32Client.dll_Ordinal_2055]
int3