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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x548]
sub rsp, 0x620
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rbp + 0x510], rax
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov qword [rbp - 0x80], r12
lea r9d, [r12 + 8]
lea r8, str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.180022180
mov r14, qword [rsp + 0x70]
test eax, eax
jne 0x1800650ea
xor edx, edx
lea r8d, [r12 + 0x64]
lea rcx, [rbp - 0x60]
call fcn.1800abaa0
xor edx, edx
lea r8d, [r12 + 0x64]
lea rcx, [rbp + 0x10]
call fcn.1800abaa0
mov edi, r12d
lea esi, [r12 + 1]
mov dword [rsp + 0x68], 0x104
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x300]
mov edx, edi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180065093
mov qword [rsp + 0x50], r12
mov dword [rsp + 0x58], r12d
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x48], r12
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp + 0x300]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180065083
mov dword [rsp + 0x58], r12d
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], r12d
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, [0x1800fe6b8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180064f53
mov eax, dword [rsp + 0x6c]
dec eax
cmp eax, 1
ja 0x180064f53
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x180064f20
test al, 1
jne 0x180064f53
shr rax, 1
cmp word [rbp + rax*2 + 0xee], 0
je 0x180064f28
jmp 0x180064f53
mov word [rbp + 0xf0], r12w
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r12d
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0xf0]
call fcn.180064800
test eax, eax
je 0x180064f6f
cmp dword [rsp + 0x48], 0
jne 0x180064f6f
test rbx, rbx
je 0x180065083
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], r12
jmp 0x180065083
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp + 0x80]
call fcn.1800abaa0
lea r9, [rsp + 0x40]
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xf0]
call fcn.180064bc0
test eax, eax
je 0x180064f53
cmp dword [rsp + 0x40], 0
je 0x180065016
cmp byte [rbp + 0x10], 0
je 0x180064fbf
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x180064f53
mov edx, 0x64
lea rcx, [rbp + 0x10]
lea r8, [rbp + 0x80]
lea rax, [rbp + 0x10]
sub r8, rax
nop word [rax + rax]
lea rax, [rdx + 0x7fffff9a]
test rax, rax
je 0x180065070
movzx eax, byte [r8 + rcx]
test al, al
je 0x180065070
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180064fe0
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], dl
jmp 0x180064f53
cmp byte [rbp - 0x60], 0
je 0x180065035
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x180064f53
mov edx, 0x64
lea rcx, [rbp - 0x60]
lea r8, [rbp + 0x80]
lea rax, [rbp - 0x60]
sub r8, rax
nop dword [rax]
lea rax, [rdx + 0x7fffff9a]
test rax, rax
je 0x180065070
movzx eax, byte [r8 + rcx]
test al, al
je 0x180065070
mov byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180065050
lea rax, [rcx - 1]
test rdx, rdx
cmovne rax, rcx
mov byte [rax], 0
jmp 0x180064f53
mov dword [rsp + 0x58], r12d
inc edi
cmp edi, 0x64
jl 0x180064e30
cmp byte [rbp - 0x60], 0
je 0x1800650be
lea rcx, [rbp - 0x60]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1800650a4
mov r8d, eax
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.180060a90
jmp 0x1800650ed
cmp byte [rbp + 0x10], 0
je 0x1800650ea
lea rcx, [rbp + 0x10]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rcx + rax], 0
jne 0x1800650d0
mov r8d, eax
lea rdx, [rbp + 0x10]
mov rcx, r15
call fcn.180060a90
jmp 0x1800650ed
mov esi, r12d
test r14, r14
je 0x180065100
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
mov eax, esi
mov dword [rsp + 0x78], r12d
mov rcx, qword [rbp + 0x510]
xor rcx, rsp
call fcn.18008f850
lea r11, [rsp + 0x620]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret