Function at 0x1400a1940
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbp
push rbx
lea rbp, [r11 - 0x198]
sub rsp, 0x288
mov rax, qword [0x14021a328]
xor rax, rsp
mov qword [rbp + 0x160], rax
xorps xmm1, xmm1
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
xor eax, eax
mov qword [r11 - 0x18], r12
mov rdi, rcx
xor r12d, r12d
mov qword [r11 - 0x28], r15
xorps xmm0, xmm0
mov qword [rbp - 0x50], r12
xor edx, edx
mov qword [rbp - 0x58], r12
mov r8d, 0x104
mov qword [rbp - 0x48], r12
lea rcx, [rbp + 0x50]
mov qword [rbp - 0x30], rax
mov ebx, r12d
mov qword [rbp + 0x40], rax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x20], xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm1
call fcn.1400ae310
lea r9, str.tools
mov dword [rbp - 0x28], 1
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov edx, 0x104
lea rcx, [rbp + 0x50]
call fcn.140013c70
lea r8, [rbp + 0x50]
lea rdx, [0x1401e04e4]
lea rcx, [rsp + 0x60]
call fcn.140097fb0
mov r9, qword [rdi + 8]
lea r8, [rbp + 0x50]
lea rdx, str.__S_s_
lea rcx, [rbp - 0x70]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
call fcn.140097fb0
mov r15, qword [rsp + 0x7c]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
mov rsi, qword [rsp + 0x64]
test r15, r15
je 0x1400a1d39
test rsi, rsi
je 0x1400a1d31
lea rcx, [rdi + 0x20]
mov qword [rsp + 0x278], r14
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
call fcn.1400a0a80
mov ebx, eax
test eax, eax
jne 0x1400a1ab3
cmp dword [0x140213620], 4
jl 0x1400a1d29
test dword [0x14021369c], 0x10000
je 0x1400a1d29
lea rax, str.Unable_to_get_session_id.
mov ecx, 0x10000
mov qword [rsp + 0x28], rax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswin_rsrc_app.c
lea r8, str.rsrc_app_start_tool_as_user
mov dword [rsp + 0x20], 0x1a2
lea edx, [rbx + 4]
call fcn.140079050
jmp 0x1400a1d29
mov ecx, dword [rdi + 0x20]
lea rdx, [rbp - 0x50]
call fcn.1400a0df0
mov ebx, eax
test eax, eax
jne 0x1400a1b08
cmp dword [0x140213620], 3
jl 0x1400a1d29
test dword [0x140213684], 0x10000
je 0x1400a1d29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea edx, [rbx + 3]
lea rax, str.Unable_to_get_active_user_token._Error___d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x1a8
jmp 0x1400a1bca
mov rcx, qword [rbp - 0x50]
lea rax, [rbp - 0x58]
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 ebx, eax
test eax, eax
jne 0x1400a1b74
cmp dword [0x140213620], 1
jl 0x1400a1d29
test dword [0x140213654], 0x10000
je 0x1400a1d29
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], 0x1b3
jmp 0x1400a1bc5
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x48]
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
mov ebx, eax
test eax, eax
jne 0x1400a1be7
cmp dword [0x140213620], 1
jl 0x1400a1d29
test dword [0x140213654], 0x10000
je 0x1400a1d29
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], 0x1be
mov edx, 1
lea r8, str.rsrc_app_start_tool_as_user
mov ecx, 0x10000
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswin_rsrc_app.c
call fcn.140079050
jmp 0x1400a1d29
mov rcx, qword [rbp - 0x58]
lea r8, [rbp - 0x28]
mov r9d, 4
lea edx, [r9 + 0x16]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x1400a1c53
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x140213620], 1
jl 0x1400a1c53
test dword [0x140213654], 0x10000
je 0x1400a1c53
mov dword [rsp + 0x30], eax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswin_rsrc_app.c
lea rax, str.Unable_to_set_token_information._Error___d
mov edx, 1
mov qword [rsp + 0x28], rax
lea r8, str.rsrc_app_start_tool_as_user
mov ecx, 0x10000
mov dword [rsp + 0x20], 0x1c5
call fcn.140079050
mov rcx, qword [rbp - 0x58]
xorps xmm0, xmm0
xor eax, eax
mov dword [rbp - 0x20], 0x68
mov dword [rbp + 0x44], eax
xor r9d, r9d
lea rax, [rbp - 0x40]
mov r8, rsi
mov qword [rsp + 0x50], rax
xor edx, edx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x48], rax
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000428
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
movups xmmword [rbp + 0x14], xmm0
movups xmmword [rbp + 0x24], xmm0
movups xmmword [rbp + 0x34], xmm0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
test eax, eax
jne 0x1400a1d14
cmp dword [0x140213620], 2
jl 0x1400a1d29
test dword [0x14021366c], 0x10000
je 0x1400a1d29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
lea r9, str.C:jenkinsworkspacedptfSrcESIFProductsESIF_UFSourceswin_rsrc_app.c
lea rax, str.Unable_to_start_capture_program._Error___d
mov ecx, 0x10000
mov qword [rsp + 0x28], rax
lea r8, str.rsrc_app_start_tool_as_user
lea edx, [rbx + 2]
mov dword [rsp + 0x20], 0x1d9
call fcn.140079050
jmp 0x1400a1d29
mov rax, qword [rbp - 0x40]
mov ebx, 1
mov qword [rdi + 0x10], rax
mov rax, qword [rbp - 0x38]
mov qword [rdi + 0x18], rax
mov r14, qword [rsp + 0x278]
mov rcx, r15
call fcn.1400bb754
mov r15, qword [rsp + 0x270]
mov r12, qword [rsp + 0x280]
mov rdi, qword [rsp + 0x2b0]
test rsi, rsi
je 0x1400a1d5e
mov rcx, rsi
call fcn.1400bb754
mov rcx, qword [rbp - 0x50]
mov rsi, qword [rsp + 0x2a8]
test rcx, rcx
je 0x1400a1d75
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400a1d84
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400a1d92
call sub.USERENV.dll_DestroyEnvironmentBlock
mov eax, ebx
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400ac830
add rsp, 0x288
pop rbx
pop rbp
ret