Function at 0x140065160
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 [0x1400bd288]
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 [0x140097cf0]
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.140064818
mov rbx, rax
shr rax, 0x27
not eax
test al, 1
jne 0x1400655dc
cmp qword [rbp + 0x20], r14
jne 0x140065200
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x68]
call fcn.14001463c
nop
lea ebx, [r14 + 1]
jmp 0x14006524d
lea r8, [0x14008a87c]
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14003b61c
nop
mov dword [rsp + 0x20], 2
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.14001c208
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 0x140065282
and ebx, 0xfffffffb
lea rcx, [rbp - 0x70]
call fcn.140003c44
nop
test bl, 2
je 0x140065294
and ebx, 0xfffffffd
lea rcx, [rbp - 0x30]
call fcn.140003c44
nop
test bl, 1
je 0x1400652a3
lea rcx, [rsp + 0x68]
call fcn.140003c44
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], r12
mov word [rbp - 0x50], r14w
lea rdx, [rbp - 0x50]
mov rcx, rdi
call fcn.140064b1c
mov rbx, rax
cmp eax, 0x6ba
jne 0x1400652de
mov qword [rbp - 0x40], r14
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov word [rax], r14w
jmp 0x1400652ec
shr rax, 0x27
not eax
test al, 1
jne 0x1400655c8
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 0x140065330
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
mov qword [rsp + 0x40], rax
movdqa xmm0, xmmword [0x140097cf0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r14w
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rbp - 0x70]
call fcn.140003cac
nop
movdqa xmm0, xmmword [0x140097cf0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x30]
call fcn.140003cac
nop
movdqa xmm0, xmmword [0x140097d00]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rsp + 0x68]
call fcn.14003b7cc
mov dword [rbp - 0x78], 0x193
lea r9, [rbp - 0x70]
lea r8, [rbp - 0x30]
mov edx, 4
lea rcx, [rsp + 0x68]
call fcn.14003b394
nop
mov r12d, 0x1000
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x1400653ff
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r12
jb 0x1400653fa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400653fa
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066724
movdqa xmm0, xmmword [0x140097d00]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea rcx, [rbp - 0x30]
call fcn.140003c44
nop
lea rcx, [rbp - 0x70]
call fcn.140003c44
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x1400655b6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
movdqa xmm0, xmmword [0x140097cf0]
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.140003cac
nop
movdqa xmm0, xmmword [0x140097cf0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r14w
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x70]
call fcn.140003cac
nop
call fcn.14000a10c
lea r8, [rbp - 0x30]
lea rdx, [rbp + 0x50]
call fcn.14003b330
mov rbx, rax
movdqa xmm0, xmmword [0x140097d00]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], r14b
lea r9, str.SWUserInfo::LoadUserProfileExtended
mov edx, 0x23
lea rcx, [rsp + 0x68]
call fcn.14003b7cc
mov dword [rbp - 0x78], 0x197
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.14000c800
mov r9, rbx
lea r8, [rbp - 0x70]
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.14003b4a0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14006552f
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, r12
jb 0x14006552a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006552a
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__invalid_parameter_noinfo_noreturn]
int3
call fcn.140066724
movdqa xmm0, xmmword [0x140097d00]
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.140003c44
nop
lea rcx, [rbp - 0x70]
call fcn.140003c44
nop
lea rcx, [rbp - 0x30]
call fcn.140003c44
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 0x140065586
inc rax
jmp 0x14006558d
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400be678]
call fcn.140012a04
shl rax, 0x34
mov ebx, dword [rsp + 0x20]
or rbx, rax
movabs rax, 0x333000000000
or rbx, rax
jmp 0x1400655c8
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
movabs rbx, 0x8000000000
lea rcx, [rbp - 0x50]
call fcn.140003c44
nop
lea rcx, [rbp - 0x10]
call fcn.140003c44
nop
lea rcx, [rbp + 0x10]
call fcn.140003c44
nop
lea rcx, [rbp + 0x30]
call fcn.140003c44
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.1400663d0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x190
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret