Function at 0x140065ed4
Capabilities:
Impersonate user

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r14
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400be278]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], r14w
mov qword [rbp + 0x20], r14
lea r12d, [r14 + 7]
mov qword [rbp + 0x28], r12
mov word [rbp + 0x10], r14w
lea r8, [rbp + 0x10]
lea rdx, [rbp + 0x30]
call fcn.140065688
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
jne 0x140066350
cmp qword [rbp + 0x20], r14
jne 0x140065f74
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14001493c
nop
lea ebx, [r14 + 1]
jmp 0x140065fc1
lea r8, [0x14008b83c]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14003c5cc
nop
mov dword [rsp + 0x20], 2
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.14001c4c0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r12
mov word [rax], r14w
lea rax, [rbp - 0x70]
mov ebx, SafeArrayGetDim
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r12
mov word [rax], r14w
test bl, 4
je 0x140065ff6
and ebx, 0xfffffffb
lea rcx, [rbp - 0x70]
call fcn.140003c2c
nop
test bl, 2
je 0x140066008
and ebx, 0xfffffffd
lea rcx, [rbp - 0x30]
call fcn.140003c2c
nop
test bl, 1
je 0x140066017
lea rcx, [rsp + 0x68]
call fcn.140003c2c
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r12
mov word [rbp - 0x50], r14w
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.140065984
mov rbx, rax
cmp eax, 0x6ba
jne 0x140066052
mov qword [rbp - 0x40], r14
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov word [rax], r14w
jmp 0x140066060
shr rax, 0x27
not eax
test al, 1
jne 0x14006633c
mov ebx, 0x38
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rsp + 0x30], ebx
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rax, qword [rbp - 0x10]
mov qword [rsp + 0x38], rax
cmp qword [rbp - 0x40], r14
je 0x1400660a4
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r14w
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rbp - 0x70]
call fcn.140003c94
nop
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x30]
call fcn.140003c94
nop
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rsp + 0x68]
call fcn.14003c658
mov dword [rbp - 0x78], 0x188
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x30]
mov edx, 4
lea rcx, [rsp + 0x68]
call fcn.14003c3c4
nop
mov r12d, 0x1000
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x140066173
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r12
jb 0x14006616e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006616e
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400674a4
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea rcx, [rbp - 0x30]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x70]
call fcn.140003c2c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x14006632a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
lea rdx, str.::LoadUserProfile___failed_with_error_code__1_.
lea rcx, [rbp - 0x30]
call fcn.140003c94
nop
movdqa xmm0, xmmword [0x140098cc0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x70]
call fcn.140003c94
nop
call fcn.14000a0ec
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x50]
call fcn.14003c360
mov rbx, rax
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rsp + 0x68]
call fcn.14003c658
mov dword [rbp - 0x78], 0x18c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000ca90
mov r9, rbx
lea r8, [rbp - 0x70]
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.14003c4d0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400662a3
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r12
jb 0x14006629e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006629e
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400674a4
movdqa xmm0, xmmword [0x140098cd0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x60]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x70]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x30]
call fcn.140003c2c
mov edx, 0x5c
lea rcx, str.admin_appman_appv_shareduseruserinfo.cpp
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_strrchr]
test rax, rax
je 0x1400662fa
inc rax
jmp 0x140066301
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400bf638]
call fcn.140012ce4
shl rax, 0x34
mov ebx, dword [rsp + 0x20]
or rbx, rax
movabs rax, 0x313000000000
or rbx, rax
jmp 0x14006633c
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
movabs rbx, 0x8000000000
lea rcx, [rbp - 0x50]
call fcn.140003c2c
nop
lea rcx, [rbp - 0x10]
call fcn.140003c2c
nop
lea rcx, [rbp + 0x10]
call fcn.140003c2c
nop
lea rcx, [rbp + 0x30]
call fcn.140003c2c
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140067150
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret