Function at 0x140017514
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1d8]
sub rsp, 0x2c0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x140109388]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rdi, [0x140106190]
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017588
test byte [rcx + 0x1c], 1
je 0x140017588
mov edx, 0x140
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.140003538
mov rcx, qword [0x140106190]
mov esi, 1
xor r15d, r15d
mov eax, r15d
mov qword [rsp + 0x48], rax
mov r14d, r15d
or r12, 0xffffffffffffffff
cmp rcx, rdi
je 0x1400175cd
test byte [rcx + 0x1c], 2
je 0x1400175cd
cmp byte [rcx + 0x19], 5
jb 0x1400175cd
mov edx, 0x141
mov r9d, r14d
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x1400175e0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], r15
mov rbx, r15
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, [0x1400dccf0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017a31
mov eax, r15d
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x70], rbx
test eax, eax
jne 0x140017a31
mov dword [rsp + 0x58], 0x100
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x58]
lea r8, [rbp - 0x50]
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140017a27
test eax, eax
jne 0x1400179f5
lea rdx, [0x1400dccf0]
lea rcx, [rsp + 0x40]
call fcn.140004a80
nop
lea rcx, [rbp - 0x50]
mov rax, r12
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140017697
mov r8d, eax
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x40]
call fcn.1400044f8
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
mov qword [rsp + 0x50], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017947
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x70], rax
mov rax, qword [str.Xr_r_]
lea rcx, str.Xr_r_
mov rax, qword [rax + 0x18]
call qword [case.0x14006d218.0]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x60]
lea rdx, [0x1400dccc0]
lea rcx, [rbp - 0x70]
call fcn.1400b442c
test eax, eax
je 0x1400177e0
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017764
test byte [rcx + 0x1c], 2
je 0x140017764
cmp byte [rcx + 0x19], 5
jb 0x140017764
mov edx, 0x145
mov r9d, eax
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14001778d
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14001779e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400177c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140017933
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017933
mov qword [rbp - 0x78], r15
lea rdx, [0x1400dac18]
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
mov edi, r15d
test eax, eax
sete dil
test eax, eax
je 0x14001787a
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x78]
mov eax, 1
mov r8d, eax
mov edx, eax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
test eax, eax
je 0x14001787a
mov edi, 1
mov rcx, qword [0x140106190]
lea rdx, [0x140106190]
cmp rcx, rdx
je 0x1400178be
test byte [rcx + 0x1c], 2
je 0x140017881
cmp byte [rcx + 0x19], 5
jb 0x140017881
mov edx, 0x146
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.140005344
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x1400178b6
test byte [rcx + 0x1c], 2
je 0x1400178b6
cmp byte [rcx + 0x19], 4
jb 0x1400178b6
mov edx, 0x147
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x50]
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.140005344
test edi, edi
je 0x14001797f
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400178e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400178f3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x14001791c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001792c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdi, [0x140106190]
inc r14d
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x140106190]
jmp 0x14001759f
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x14001797a
test byte [rcx + 0x1c], 2
je 0x14001797a
cmp byte [rcx + 0x19], 2
jb 0x14001797a
mov edx, 0x144
mov r9, qword [rsp + 0x40]
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.140003558
nop
jmp 0x14001779e
mov esi, 1
lea rdx, [rbx - 0x18]
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400179a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400179b9
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r12d
lock xadd dword [rdx + 0x10], eax
add eax, r12d
test eax, eax
jg 0x1400179e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14006d218.0]
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140017a84
jmp 0x140017a7e
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017a76
test byte [rcx + 0x1c], 2
je 0x140017a76
cmp byte [rcx + 0x19], 2
jb 0x140017a76
mov edx, 0x143
mov r9d, eax
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
jmp 0x140017a6f
mov esi, r15d
test rbx, rbx
jne 0x140017a7b
jmp 0x140017a84
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
mov rcx, qword [0x140106190]
cmp rcx, rdi
je 0x140017a76
test byte [rcx + 0x1c], 2
je 0x140017a76
cmp byte [rcx + 0x19], 2
jb 0x140017a76
mov edx, 0x142
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
mov rcx, qword [0x140106190]
test rbx, rbx
je 0x140017a8b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x140106190]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140017aaa
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rsp + 0x48], r15
mov rcx, qword [0x140106190]
lea rax, [0x140106190]
cmp rcx, rax
je 0x140017ada
test byte [rcx + 0x1c], 1
je 0x140017ada
cmp byte [rcx + 0x19], 5
jb 0x140017ada
mov edx, 0x148
mov r9d, esi
lea r8, [0x1400dcd50]
mov rcx, qword [rcx + 0x10]
call fcn.1400035ec
mov eax, esi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400cc8d0
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret