Function at 0x140064384
Capabilities:
Impersonate user

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c2270]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov qword [rbp + 0x20], r15
lea eax, [r15 + 7]
mov qword [rbp + 0x28], rax
mov word [rbp + 0x10], r15w
mov qword [rbp], r15
mov qword [rbp + 8], rax
mov word [rbp - 0x10], r15w
lea r8, [rbp - 0x10]
lea rdx, [rbp + 0x10]
call fcn.1400639a4
mov rbx, rax
shr rax, 0x27
not eax
lea r12d, [r15 + 2]
lea r13d, [r15 + 1]
test r13b, al
jne 0x1400647e5
cmp qword [rbp], r15
jne 0x14006444a
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.14000333c
lea rax, [rsp + 0x68]
mov ebx, r13d
jmp 0x140064479
lea r8, [0x14008c6bc]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x38]
call fcn.14003a9f0
nop
mov dword [rsp + 0x20], r12d
lea r8, [rbp + 0x10]
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.14003aaec
mov ebx, 6
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.1400077f0
nop
test bl, 4
je 0x1400644a8
and ebx, 0xfffffffb
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x1400644a8
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x78]
call fcn.140002ec0
nop
test r12b, bl
je 0x1400644ca
and ebx, 0xfffffffd
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1400644ca
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x38]
call fcn.140002ec0
nop
test r13b, bl
je 0x1400644e9
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1400644e9
inc rdx
mov r8, r12
mov rcx, qword [rsp + 0x68]
call fcn.140002ec0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
lea rdx, [rbp - 0x58]
mov rcx, rdi
call fcn.140063ccc
mov rbx, rax
cmp eax, 0x6ba
jne 0x140064528
mov qword [rbp - 0x48], r15
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rax, qword [rbp - 0x58]
mov word [rax], r15w
jmp 0x140064537
shr rax, 0x27
not eax
test r13b, al
jne 0x1400647b1
mov ebx, 0x38
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_memset
mov dword [rsp + 0x30], ebx
lea rax, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rax, qword [rbp + 0x30]
mov qword [rsp + 0x38], rax
cmp qword [rbp - 0x48], r15
je 0x14006457b
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rax, qword [rbp - 0x58]
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x68], r15
mov ebx, 7
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x78], r15w
lea r8d, [rbx + 0x40]
lea rdx, str.Calling_::LoadUserProfile___from_SWUserInfo::LoadUserProfileExtended__.
lea rcx, [rbp - 0x78]
call fcn.1400030f0
nop
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x68], r15w
lea r8d, [rbx + 0xe]
lea rdx, str.VirtualizationManager
lea rcx, [rsp + 0x68]
call fcn.1400030f0
nop
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp - 0x38]
call fcn.14003a658
mov dword [rbp - 0x18], 0x188
lea r9, [rbp - 0x78]
lea r8, [rsp + 0x68]
lea edx, [rbx - 3]
lea rcx, [rbp - 0x38]
call fcn.14003a4a0
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x14006460e
inc rdx
mov r8, r13
mov rcx, qword [rbp - 0x38]
call fcn.140002ec0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140064629
inc rdx
mov r8, r12
mov rcx, qword [rsp + 0x68]
call fcn.140002ec0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140064642
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x78]
call fcn.140002ec0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
jne 0x14006479f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x68], r15w
mov r8d, 0x2f
lea rdx, str.::LoadUserProfile___failed_with_error_code__1_.
lea rcx, [rsp + 0x68]
call fcn.1400030f0
nop
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], rbx
mov word [rbp - 0x78], r15w
mov r8d, SafeArrayUnaccessData
lea rdx, str.VirtualizationManager
lea rcx, [rbp - 0x78]
call fcn.1400030f0
nop
call fcn.140007558
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x50]
call fcn.14003a428
mov rbx, rax
lea rdx, str.SWUserInfo::LoadUserProfileExtended
lea rcx, [rbp - 0x38]
call fcn.14003a658
mov dword [rbp - 0x18], 0x18c
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140009520
mov r9, rbx
lea r8, [rbp - 0x78]
mov edx, r13d
lea rcx, [rbp - 0x38]
call fcn.14003a5d4
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140064715
inc rdx
mov r8, r13
mov rcx, qword [rbp - 0x38]
call fcn.140002ec0
nop
lea rcx, [rbp + 0x50]
call fcn.14003ace4
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 8
jb 0x140064739
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x78]
call fcn.140002ec0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x140064753
inc rdx
mov r8, r12
mov rcx, qword [rsp + 0x68]
call fcn.140002ec0
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 0x14006476f
add rax, r13
jmp 0x140064776
lea rax, str.admin_appman_appv_shareduseruserinfo.cpp
mov rdx, rax
lea rcx, [0x1400c3688]
call fcn.14000f3ec
shl rax, 0x34
mov ebx, dword [rsp + 0x20]
or rbx, rax
movabs rax, 0x313000000000
or rbx, rax
jmp 0x1400647b1
mov rax, qword [rsp + 0x60]
mov qword [rsi], rax
movabs rbx, 0x8000000000
mov rdx, qword [rbp - 0x40]
cmp rdx, 8
jb 0x1400647cb
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x58]
call fcn.140002ec0
nop
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x1400647e5
inc rdx
mov r8, r12
mov rcx, qword [rbp + 0x30]
call fcn.140002ec0
nop
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x1400647ff
inc rdx
mov r8, r12
mov rcx, qword [rbp - 0x10]
call fcn.140002ec0
nop
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x140064818
inc rdx
mov r8, r12
mov rcx, qword [rbp + 0x10]
call fcn.140002ec0
mov rax, rbx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140065760
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret