Function at 0x140083790
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
xor r15d, r15d
xor eax, eax
mov rsi, rcx
mov qword [rsp + 0x60], r15
xor edx, edx
mov qword [rsp + 0x68], rax
lea rcx, [rbp - 0x38]
mov qword [rsp + 0x70], rax
lea r8d, [r15 + 0x60]
mov dword [rbp - 0x40], r15d
mov edi, r15d
call fcn.1400033e1
lea rdx, [rsi + 8]
mov qword [rbp + 0x68], r15
lea rcx, [rbp - 0x70]
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x70], r15
call fcn.1400012da
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x58]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
call fcn.1400034d1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
cmp qword [rsp + 0x7c], rdi
je 0x140083a6d
mov rbx, qword [rbp - 0x6c]
test rbx, rbx
je 0x140083a6d
mov qword [rsi + 0x48], r15
mov qword [rsi + 0x50], r15
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rsi + 0x58], eax
cmp eax, 0xffffffff
jne 0x140083880
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140083a6d
test byte [0x14016ba50], 1
je 0x140083a6d
lea rax, str.Unable_to_get_session_id.
lea edx, [r15 + 4]
mov qword [rsp + 0x28], rax
lea ecx, [rdx - 3]
mov dword [rsp + 0x20], 0x116
lea r9, str..._rsrc_app.c
lea r8, str.rsrc_app_start_app_in_active_user_session
call fcn.140003693
jmp 0x140083a6d
lea rdx, [rbp + 0x68]
mov ecx, eax
call sub.WTSAPI32.dll_WTSQueryUserToken
mov edi, eax
test eax, eax
jne 0x1400838e7
cmp dword [reloc.WSOCK32.dll_accept], 3
jl 0x140083a6d
test byte [0x14016ba3f], 1
je 0x140083a6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, str..._rsrc_app.c
lea rax, str.Unable_to_get_active_user_token._Error___d
mov qword [rsp + 0x28], rax
lea r8, str.rsrc_app_start_app_in_active_user_session
lea edx, [rdi + 3]
mov dword [rsp + 0x20], 0x11c
lea ecx, [rdi + 1]
call fcn.140003693
jmp 0x140083a6d
mov rcx, qword [rbp + 0x68]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
mov r9d, 2
xor r8d, r8d
mov dword [rsp + 0x20], 1
mov edx, 0x2000000
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, eax
test eax, eax
jne 0x14008396d
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x140083a6d
test byte [0x14016ba1d], 1
je 0x140083a6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Unable_to_duplicate_the_user_token._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x128
mov edx, 1
lea r9, str..._rsrc_app.c
mov ecx, edx
lea r8, str.rsrc_app_start_app_in_active_user_session
call fcn.140003693
jmp 0x140083a6d
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x70]
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
mov edi, eax
test eax, eax
jne 0x1400839bd
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x140083a6d
test byte [0x14016ba1d], 1
je 0x140083a6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Unable_to_create_environmet_block._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x133
jmp 0x14008394e
xor edx, edx
lea rcx, [rbp - 0x40]
lea r8d, [rdx + 0x68]
call fcn.1400033e1
mov rdx, qword [rsp + 0x7c]
lea rax, [rsp + 0x60]
mov rcx, qword [rbp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x50], rax
xor r8d, r8d
lea rax, [rbp - 0x40]
mov dword [rbp - 0x40], 0x68
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000428
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
test eax, eax
jne 0x140083a56
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x140083a6d
test byte [0x14016ba1d], 1
je 0x140083a6d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea rax, str.Unable_to_start_capture_program._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x148
jmp 0x14008394e
mov rax, qword [rsp + 0x60]
mov edi, 1
mov qword [rsi + 0x48], rax
mov rax, qword [rsp + 0x68]
mov qword [rsi + 0x50], rax
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x140083a7c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x140083a8b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140083a99
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, edi
add rsp, 0x130
pop r15
pop rdi
pop rsi
pop rbx
pop rbp
ret