Function at 0x140082120
Capabilities:
Encrypt data using dpapi
Get session user name
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10020]
mov eax, 0x10120
call fcn.140089690
sub rsp, rax
mov rax, qword [0x14049e048]
xor rax, rsp
mov qword [rbp + 0x10010], rax
mov rsi, rcx
xor edi, edi
mov r15d, edi
mov dword [rbp - 0x70], edi
mov qword [rbp - 0x68], rdi
lea rdx, [0x14049e020]
cmp qword [reloc.OLEAUT32.dll_VariantInit], 8
cmovae rdx, qword [0x14049e020]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140082891
mov r15, qword [rsp + 0x40]
mov qword [rbp - 0x78], r15
mov dword [rbp - 0x70], edi
mov dword [rsp + 0x54], edi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.USERTAPS
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140082891
cmp dword [rsp + 0x40], 3
jne 0x140082891
mov eax, dword [rsp + 0x54]
test eax, eax
jne 0x14008220a
xor bl, bl
jmp 0x140082893
mov rcx, rax
call sub.mfc140u.dll_operator_1
mov r14, rax
test rax, rax
jne 0x140082221
xor bl, bl
jmp 0x140082893
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.USERTAPS
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140082885
cmp dword [rsp + 0x40], 3
jne 0x140082885
test r15, r15
je 0x140082270
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, rdi
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x70], edi
lea rdx, [section..data]
lea rcx, [rbp - 0x10]
call fcn.1400495ec
nop
mov r12, qword [rbp]
movabs rdx, 0x7ffffffffffffffe
cmp r12, 8
jae 0x1400822b5
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
mov dword [rsp + 0x40], eax
jmp 0x1400823dd
lea rcx, [r12 - 9]
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
cmp r12, rcx
jb 0x1400828da
mov rax, r12
sub rax, rcx
mov edi, 8
cmp rax, rdi
cmovb rdi, rax
lea rax, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rax, qword [rbp - 0x10]
lea rax, [rax + rcx*2]
mov qword [rsp + 0x48], rax
cmp rdi, 7
ja 0x140082326
mov qword [rbp - 0x20], rdi
lea rbx, [rdi + rdi]
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memmove
xor edi, edi
mov word [rbp + rbx - 0x30], di
mov r13, qword [rbp - 0x30]
jmp 0x140082383
cmp rdi, rdx
ja 0x1400828d4
mov rbx, rdi
or rbx, 7
cmp rbx, rdx
jbe 0x140082340
mov rbx, rdx
jmp 0x14008234c
mov eax, 0xa
cmp rbx, rax
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x30]
call fcn.14008a18c
mov r13, rax
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], rbx
lea rbx, [rdi + rdi]
mov r8, rbx
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
mov word [rbx + r13], di
mov qword [rbp - 0x30], r13
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, r13
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtol]
mov dword [rsp + 0x40], eax
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1400823dd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, reloc.mfc140u.dll_COleChangeIconDialog::DoModal
jb 0x1400823d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400823d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088c70
mov dword [rsp + 0x50], 0x7fff
xor edx, edx
mov r8d, 0x7fff
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x10]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov eax, dword [rsp + 0x50]
add rax, r12
lea rax, [rax*2 + 0xc4]
mov qword [rsp + 0x48], rax
mov rcx, rax
call sub.mfc140u.dll_operator_1
mov r13, rax
test rax, rax
je 0x140082862
mov r8d, dword [rsp + 0x50]
add r8, r8
lea rdx, [rbp + 0x10]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsp + 0x50]
lea rdi, [rcx*2]
add rdi, r13
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 8
cmovae rdx, qword [rbp - 0x10]
lea rbx, [r12 + r12]
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
add rdi, rbx
lea rax, str.CF33904517D8D3B868D0E8945FA3C844723F8B8ABC68721BA73ABA6CDE4574D7BCB5227A8B992354B491C29A452BB665C003EE305EE31FE3368B5A552ECC095666689F67B2BB997E069710FEEDBE0CFB9FE7693413A3EF48AA1F541003B2C299
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdi + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdi + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdi + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdi + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdi + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
movups xmmword [rdi + 0x70], xmm0
movups xmm1, xmmword [rax + 0x80]
movups xmmword [rdi + 0x80], xmm1
movups xmm0, xmmword [rax + 0x90]
movups xmmword [rdi + 0x90], xmm0
movups xmm1, xmmword [rax + 0xa0]
movups xmmword [rdi + 0xa0], xmm1
movups xmm0, xmmword [rax + 0xb0]
movups xmmword [rdi + 0xb0], xmm0
mov eax, dword [rsp + 0x40]
mov dword [rdi + 0xc0], eax
xor edi, edi
mov qword [rsp + 0x60], rdi
lea r9, [rsp + 0x60]
mov r8, qword [rsp + 0x48]
mov rdx, r13
mov rcx, rsi
call fcn.140082f60
mov ebx, eax
mov rcx, r13
call sub.mfc140u.dll_operator
test ebx, ebx
jle 0x140082862
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x40], edi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
mov edx, ebx
mov rcx, qword [rsp + 0x60]
call fcn.140081ad0
mov rcx, qword [rsp + 0x60]
call sub.mfc140u.dll_operator
mov eax, dword [rsp + 0x40]
mov dword [rbp - 0x60], eax
mov r13, qword [rsp + 0x48]
mov qword [rbp - 0x58], r13
mov qword [rsp + 0x58], rdi
mov qword [rbp - 0x48], r14
mov eax, dword [rsp + 0x54]
mov dword [rbp - 0x50], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8, [rbp - 0x60]
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x50]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
jne 0x1400825ae
mov rcx, r14
call sub.mfc140u.dll_operator
mov rcx, r13
call sub.mfc140u.dll_operator
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14008286a
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], di
jne 0x1400825d3
lea rcx, [rbp - 0x30]
call fcn.140017640
nop
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rdi
lea rdi, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rdi, qword [rbp - 0x30]
mov r12, qword [rbp - 0x20]
cmp r12, 8
jae 0x140082617
movups xmm0, xmmword [rdi]
movups xmmword [rsp + 0x68], xmm0
mov ebx, 7
jmp 0x140082655
mov rbx, r12
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x68]
call fcn.14008a18c
mov qword [rsp + 0x68], rax
lea r8, [r12*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], rbx
xor r8d, r8d
lea rdx, str.TAPP_Description
lea rcx, [rsp + 0x68]
call fcn.140085f70
test al, al
je 0x1400827dd
mov rcx, r14
call sub.mfc140u.dll_operator
mov rcx, r13
call sub.mfc140u.dll_operator
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rbp - 0x38]
lea rdi, [rax + 4]
cmp dword [rax], 1
jne 0x1400827dd
mov eax, dword [rdi]
add rdi, 4
test eax, eax
jle 0x1400827dd
mov r14d, eax
xor r12d, r12d
nop word [rax + rax]
mov ecx, 0x218
call sub.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl
mov rbx, rax
mov qword [rsp + 0x48], rax
test rax, rax
je 0x1400826f7
xor edx, edx
mov r8d, 0x208
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbx + 0x208], r12
mov dword [rbx + reloc.mfc140u.dll_CHandleMap::CHandleMap], r12d
jmp 0x1400826fa
mov rbx, r12
mov qword [rsp + 0x48], rbx
mov rdx, rbx
mov rax, rdi
mov ecx, 4
nop word [rax + rax]
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rdx + 0x60], xmm0
lea rdx, [rdx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rdx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rcx, 1
jne 0x140082710
mov rcx, qword [rax]
mov qword [rdx], rcx
mov eax, dword [rdi + 0x208]
mov dword [rbx + reloc.mfc140u.dll_CHandleMap::CHandleMap], eax
add rdi, 0x20c
mov ecx, eax
call sub.mfc140u.dll_operator_1
mov qword [rbx + 0x208], rax
mov r8d, dword [rbx + reloc.mfc140u.dll_CHandleMap::CHandleMap]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rbx + reloc.mfc140u.dll_CHandleMap::CHandleMap]
add rdi, rax
mov rdx, qword [rsi + 8]
cmp rdx, qword [rsi + 0x10]
je 0x1400827b8
mov qword [rdx], rbx
add qword [rsi + 8], 8
jmp 0x1400827c5
lea r8, [rsp + 0x48]
mov rcx, rsi
call fcn.140081480
sub r14, 1
jne 0x1400826c0
mov rcx, qword [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov bl, 1
jmp 0x1400827df
xor bl, bl
mov rax, qword [rbp - 0x18]
cmp rax, 8
jb 0x140082822
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, reloc.mfc140u.dll_COleChangeIconDialog::DoModal
jb 0x14008281d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008281d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140088c70
xor edi, edi
mov rdx, qword [rbp + 8]
cmp rdx, 8
jb 0x140082873
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, reloc.mfc140u.dll_COleChangeIconDialog::DoModal
jb 0x14008286e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14008286e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, r14
call sub.mfc140u.dll_operator
xor bl, bl
jmp 0x140082824
call fcn.140088c70
mov qword [rbp], rdi
mov qword [rbp + 8], 7
mov word [rbp - 0x10], di
jmp 0x140082893
mov rcx, r14
call sub.mfc140u.dll_operator
xor bl, bl
jmp 0x140082893
mov bl, 1
test r15, r15
je 0x1400828a1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x10010]
xor rcx, rsp
call fcn.140088c50
lea r11, [rsp + 0x10120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400b5d14
nop
call fcn.1401de4b8
int3