Function at 0x14000c570
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x210
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x208], rax
mov r12, r9
mov qword [rsp + 0x68], r9
mov rsi, r8
mov rdi, rdx
mov rax, rcx
mov qword [rsp + 0xa8], rcx
mov qword [r11 - 0x68], rdx
mov qword [r11 - 0x70], r8
mov qword [r11 - 0x158], r9
mov r15, qword [rsp + 0x270]
mov qword [r11 - 0x78], r15
mov rcx, qword [rsp + 0x278]
mov qword [rsp + 0xb0], rcx
mov r14, qword [rsp + 0x280]
mov qword [r11 - 0x150], r14
mov byte [rsp + 0x62], 0
mov byte [rsp + 0x61], 0
lea rdx, str.Attempting_to_impersonate_logged_in_user.
mov rcx, qword [rax]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogInfo_wchar_t_const____ptr64____ptr64]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x108], xmm0
mov qword [rsp + 0x118], rax
xor ebx, ebx
mov dword [rsp + 0x160], ebx
movups xmmword [rsp + 0x168], xmm0
movups xmmword [rsp + 0x178], xmm0
movups xmmword [rsp + 0x188], xmm0
movups xmmword [rsp + 0x198], xmm0
movups xmmword [rsp + 0x1a8], xmm0
movups xmmword [rsp + 0x1b8], xmm0
mov qword [rsp + 0x1c8], rax
mov dword [rsp + 0x160], 0x70
mov r13d, ebx
mov qword [rsp + 0xe0], rbx
cmp qword [rdi + 0x10], rax
je 0x14000c69f
mov rax, rdi
mov qword [rsp + 0x70], rax
mov qword [rsp + 0xb8], rax
cmp qword [rdi + 0x18], 7
jbe 0x14000c69d
mov rax, qword [rdi]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0xb8], rax
jmp 0x14000c6a4
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x120], rax
mov rdx, rdi
cmp qword [r15 + 0x10], rbx
cmovne rdx, r15
mov qword [rsp + 0x128], rdx
lea rcx, [rsp + 0x1e8]
call fcn.140005d60
nop
mov rdx, qword [rsp + 0x1f8]
lea rax, [rdx + 1]
mov qword [rsp + 0x130], rax
cmp rax, 0x7fff
jbe 0x14000c764
lea rcx, [rsp + 0x1e8]
call sym.DiagsCap.exe_public:_void___cdecl_Hp::Bridge::Server::Uwp::UwpPackageModel::destructor_void____ptr64
nop
mov rcx, rdi
call sym.DiagsCap.exe_public:_void___cdecl_Hp::Bridge::Server::Uwp::UwpPackageModel::destructor_void____ptr64
nop
mov rcx, rsi
call sym.DiagsCap.exe_public:_void___cdecl_Hp::Bridge::Server::Uwp::UwpPackageModel::destructor_void____ptr64
nop
mov rcx, qword [r12 + 8]
test rcx, rcx
je 0x14000c74c
mov qword [rsp + 0x68], rcx
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14000c74c
mov rbx, qword [rsp + 0x68]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14000c74c
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, r15
call sym.DiagsCap.exe_public:_void___cdecl_Hp::Bridge::Server::Uwp::UwpPackageModel::destructor_void____ptr64
nop
mov rcx, r14
call fcn.14000d6b0
xor al, al
jmp 0x14000ccb3
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0x1e8]
cmp qword [rsp + 0x200], 7
cmova rax, rcx
mov qword [rsp + 0xc0], rax
lea rdx, [rax + rdx*2]
mov qword [rsp + 0x138], rdx
mov qword [rsp + 0x90], rdx
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0xc8], rax
cmova rax, rcx
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xd0], rdx
sub rdx, rax
sar rdx, 1
mov qword [rsp + 0x140], rdx
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xd8]
lea rcx, [rsp + 0x78]
call fcn.14000dfb0
nop
mov word [rsp + 0x64], bx
mov rdx, qword [rsp + 0x80]
cmp rdx, qword [rsp + 0x88]
je 0x14000c838
mov word [rdx], bx
add qword [rsp + 0x80], 2
jmp 0x14000c847
lea r8, [rsp + 0x64]
lea rcx, [rsp + 0x78]
call fcn.14000e0a0
cmp qword [rsi + 0x10], 0
je 0x14000c86d
mov r12, rsi
mov qword [rsp + 0x90], rsi
cmp qword [rsi + 0x18], 7
jbe 0x14000c86b
mov r12, qword [rsi]
mov qword [rsp + 0x90], r12
jmp 0x14000c870
mov r12, rbx
mov qword [rsp + 0x148], r12
mov byte [rsp + 0x60], 1
mov rax, qword [r14 + 8]
sub rax, qword [r14]
sar rax, 3
test rax, rax
je 0x14000c956
mov byte [rsp + 0x60], 0
mov qword [rsp + 0x98], rbx
lea r9, [rsp + 0x98]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov r13, qword [rsp + 0x98]
test r13, r13
je 0x14000ca73
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r13
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
mov qword [rsp + 0xe0], rax
test rax, rax
je 0x14000ca73
lea r9, [rsp + 0x98]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x14000ca73
mov byte [rsp + 0x61], 1
mov r9, qword [r14]
mov rax, qword [r14 + 8]
sub rax, r9
and rax, 0xfffffffffffffff8
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0x20002
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x14000ca73
mov qword [rsp + 0x1c8], r13
mov byte [rsp + 0x60], 1
mov qword [rsp + 0xa0], rbx
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rdx, qword [rdx]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x14000ca43
mov rax, qword [r14 + 8]
sub rax, qword [r14]
sar rax, 3
mov r8d, ebx
test rax, rax
setne r8b
lea rax, [rsp + 0x108]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x160]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r12
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x80430
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [rsp + 0x100], eax
test eax, eax
je 0x14000ca10
mov byte [rsp + 0x62], 1
mov eax, dword [rsp + 0x118]
mov rcx, qword [rsp + 0xb0]
mov dword [rcx], eax
jmp 0x14000ca35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
mov r8d, eax
lea rdx, str.Problem_while_creating_process_as_user__d.
mov rcx, qword [rsp + 0xa8]
mov rcx, qword [rcx]
call qword [sym.imp.Logging.dll_public:_void___cdecl_Hp::Bridge::Logging::TraceLogger::LogWarning_wchar_t_const____ptr64____ptr64]
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp byte [rsp + 0x61], 0
je 0x14000ca53
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
cmp qword [rsp + 0x1c8], 0
je 0x14000ca73
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r13
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000cb02
mov rax, qword [rsp + 0x88]
sub rax, rcx
sar rax, 1
mov qword [rsp + 0xb0], rax
lea rdx, [rax + rax]
mov qword [rsp + 0xe8], rdx
mov qword [rsp + 0xa8], rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000caec
add rdx, 0x27
mov qword [rsp + 0xe8], rdx
mov rcx, qword [rcx - 8]
mov qword [rsp + 0x150], rcx
sub rax, rcx
mov qword [rsp + 0x158], rax
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000cb17
mov qword [rsp + 0xa8], rcx
call fcn.1400688bc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0x1e8]
call sym.DiagsCap.exe_public:_void___cdecl_Hp::Bridge::Server::Uwp::UwpPackageModel::destructor_void____ptr64
nop
mov r12, qword [rsp + 0x68]
jmp 0x14000cb48
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
xor ebx, ebx
mov rdi, qword [rsp + 0x1e0]
mov rsi, qword [rsp + 0x1d8]
mov r12, qword [rsp + 0xf0]
mov r15, qword [rsp + 0x1d0]
mov r14, qword [rsp + 0xf8]
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x14000cb87
mov rcx, qword [rdi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000cb82
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000ccd6
mov rcx, r8
call fcn.1400688bc
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 7
mov word [rdi], bx
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x14000cbd5
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000cbd0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000ccdd
mov rcx, r8
call fcn.1400688bc
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], 7
mov word [rsi], bx
mov rsi, qword [r12 + 8]
test rsi, rsi
je 0x14000cc1b
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x14000cc1b
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
lock xadd dword [rsi + 0xc], edi
cmp edi, 1
jne 0x14000cc1b
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
nop
mov rdx, qword [r15 + 0x18]
cmp rdx, 7
jbe 0x14000cc5a
mov rcx, qword [r15]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000cc55
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cce4
mov rcx, r8
call fcn.1400688bc
mov qword [r15 + 0x10], rbx
mov qword [r15 + 0x18], 7
mov word [r15], bx
mov rcx, qword [r14]
test rcx, rcx
je 0x14000ccae
mov rdx, qword [r14 + 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffff8
cmp rdx, 0x1000
jb 0x14000cc9e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000cceb
mov rcx, r8
call fcn.1400688bc
mov qword [r14], rbx
mov qword [r14 + 8], rbx
mov qword [r14 + 0x10], rbx
movzx eax, byte [rsp + 0x62]
mov rcx, qword [rsp + 0x208]
xor rcx, rsp
call fcn.140068870
add rsp, 0x210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3