Function at 0x140007570
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x14003a970]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov ebx, r9d
mov r15, r8
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
xor r12d, r12d
lea rdx, [rsp + 0x68]
mov ecx, eax
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r12
mov edi, eax
lea esi, [r12 + 0x30]
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
je 0x140007681
mov rdx, qword [rsp + 0x68]
lea r8d, [r12 + 1]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], r12
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x1400075f2
mov esi, 0x430
jmp 0x1400075f7
mov qword [rsp + 0x78], r12
cmp ebx, 0x72
jne 0x140007626
lea ecx, [rbx - 0x70]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
cmp rax, 0xffffffffffffffff
je 0x140007681
lea rdx, [rsp + 0x68]
mov r8, rax
mov ecx, edi
call fcn.140007810
test eax, eax
je 0x140007681
lea r9d, [rbx - 0x71]
jmp 0x140007637
mov r9d, dword [rsp + 0x60]
mov eax, 2
cmp ebx, 0x71
cmove r9d, eax
mov rcx, qword [rsp + 0x68]
xor eax, eax
lea r8, [rbp + 0x10]
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
lea rax, [rsp + 0x70]
mov edx, 0x2000000
mov dword [rbp + 0x10], 0x18
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x140007688
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400077b3
mov eax, 0x3000
mov r8d, 0x2000
cmp ebx, 0x72
cmove r8d, eax
lea rax, [rbp - 0x80]
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov dl, 1
mov dword [rsp + 0x28], r12d
mov qword [rbp - 0x80], r12
mov dword [rsp + 0x20], r12d
mov dword [rbp + 0x28], r12d
mov word [rbp + 0x2c], 0x1000
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400077d1
mov rcx, qword [rbp - 0x80]
mov dword [rbp - 0x70], 0x20
mov qword [rbp - 0x78], rcx
call qword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov rcx, qword [rsp + 0x70]
lea r8, [rbp - 0x78]
lea r9d, [rax + 0x10]
mov edx, 0x19
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x1400077ed
xor edx, edx
lea rcx, [rbp - 0x60]
lea r8d, [rdx + 0x68]
call fcn.140011480
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x50], r15
lea rax, str.winsta0default
lea r9, [rbp + 0x10]
xor r8d, r8d
mov qword [rbp - 0x50], rax
lea rax, [rbp - 0x60]
mov rdx, r14
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x10]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r12d
mov dword [rbp - 0x60], 0x68
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140007681
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140007798
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.14000bee0
add rsp, 0x140
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140037e40]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], eax
call fcn.140010478
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x140037e40]
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], eax
call fcn.140010478
int3