Function at 0x14002bc54
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5b8]
sub rsp, 0x690
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x580], rax
xor r14d, r14d
lea r12, [rcx + 0x10]
mov rdi, rcx
mov r15b, r14b
mov rcx, qword [r12]
lea eax, [r14 + 1]
test rcx, rcx
jne 0x14002bcd3
mov r9d, 0x20019
mov qword [rsp + 0x20], r12
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftTPGInputPersonalizationAnalysisTokens
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov rcx, qword [rdi + 0x10]
test eax, eax
jne 0x14002bcf7
lea eax, [r14 + 1]
cmp byte [rdi + 0x20], r14b
je 0x14002bcf7
mov r9, qword [rdi + 0x18]
mov r8d, 5
mov edx, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x14002bcf7
mov byte [rdi + 0x20], r14b
mov rcx, qword [r12]
test rcx, rcx
jne 0x14002bd07
xor al, al
jmp 0x14002c023
mov r13d, r14d
xor edx, edx
jmp 0x14002bfe7
lea rcx, [rsp + 0x70]
call qword [sym.imp.msvcrt.dll__wtoi]
mov esi, eax
test eax, eax
je 0x14002bfdd
mov ecx, 0x30
call fcn.140035c78
mov qword [rsp + 0x48], rax
mov rbx, rax
test rax, rax
je 0x14002bd55
mov dword [rax], esi
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r14
mov qword [rax + 0x20], r14
mov byte [rax + 0x28], r14b
jmp 0x14002bd58
mov rbx, r14
test rbx, rbx
je 0x14002bfdd
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.140035c78
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002bd84
and qword [rax], 0
mov qword [rax + 8], r14
and word [rax + 0x10], 0
jmp 0x14002bd87
mov rax, r14
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rbx + 8], rax
call fcn.140035c78
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002bdaa
xor ecx, ecx
mov qword [rax + 8], r14
mov qword [rax], rcx
jmp 0x14002bdad
mov rax, r14
mov ecx, 0x20
mov qword [rbx + 0x10], rax
call fcn.140035c78
mov qword [rsp + 0x48], rax
mov rsi, rax
test rax, rax
je 0x14002bde9
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
and qword [rsi], 0
mov qword [rsi + 8], r14
and qword [rsi + 0x10], 0
mov qword [rsi + 0x18], r14
jmp 0x14002bdec
mov rsi, r14
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rbx + 0x18], rsi
call fcn.140035c78
mov qword [rsp + 0x48], rax
test rax, rax
je 0x14002be0f
xor ecx, ecx
mov qword [rax + 8], r14
mov qword [rax], rcx
jmp 0x14002be12
mov rax, r14
mov qword [rbx + 0x20], rax
cmp qword [rbx + 8], r14
je 0x14002be91
cmp qword [rbx + 0x10], r14
je 0x14002be91
cmp qword [rbx + 0x18], r14
je 0x14002be91
test rax, rax
je 0x14002be91
mov eax, dword [rdi]
mov ecx, dword [rdi + 4]
cmp eax, ecx
jb 0x14002be83
add ecx, 8
mov eax, 8
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140035cbc
mov rsi, rax
test rax, rax
je 0x14002be91
mov r8d, dword [rdi + 4]
mov rcx, rax
mov rdx, qword [rdi + 8]
shl r8, 3
call sub.msvcrt.dll_memcpy
mov rcx, qword [rdi + 8]
call fcn.140035cb4
add dword [rdi + 4], 8
mov eax, dword [rdi]
mov qword [rdi + 8], rsi
mov ecx, eax
mov rax, qword [rdi + 8]
mov qword [rax + rcx*8], rbx
inc dword [rdi]
jmp 0x14002be9c
mov rcx, rbx
call fcn.14002c054
mov rbx, r14
test rbx, rbx
je 0x14002bfdd
mov rcx, qword [r12]
lea rax, [rsp + 0x50]
mov r9d, 8
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov sil, r14b
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002bfdd
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x30], rax
lea r8, [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
mov qword [rsp + 0x28], rax
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14002bfda
lea r12d, [rax + 1]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea r8, str.TokenFilePath
lea rax, [rbp + 0x370]
mov dword [rsp + 0x48], 0x208
mov qword [rsp + 0x28], rax
lea rdx, [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
lea rax, [rsp + 0x58]
mov r9d, 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_RegGetValueW]
test eax, eax
jne 0x14002bf7e
lea rdx, [rbp + 0x370]
mov rcx, rbx
call fcn.14002c5d8
test al, al
movzx esi, sil
cmovne esi, r12d
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
xor eax, eax
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x30], rax
lea r8, [rbp + reloc.OLEAUT32.dll_VarBstrFromUI8]
mov qword [rsp + 0x28], rax
add r14d, r12d
mov edx, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14002bf1a
xor r14d, r14d
movzx r15d, r15b
test sil, sil
cmovne r15d, r12d
lea r12, [rdi + 0x10]
jmp 0x14002bfdd
xor r14d, r14d
mov rcx, qword [r12]
inc r13d
mov edx, r13d
lea rax, [rsp + 0x68]
mov dword [rsp + 0x44], 0xff
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14002bd11
mov al, r15b
mov rcx, qword [rbp + 0x580]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x690]
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