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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rbp + 0x460], rax
mov rbx, rcx
mov edi, 0x64
mov r8d, edi
lea rcx, [rsp + 0x60]
xor edx, edx
call fcn.1800abaa0
lea rax, [rsp + 0x48]
xor r8d, r8d
lea r9d, [rdi - 0x5c]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
jne 0x18005fb8c
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0x250]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x598], r14
mov r14d, esi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x18005fb79
nop word [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [rbp + 0x250]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18005fb38
xor edx, edx
mov dword [rsp + 0x54], 1
mov r8d, 0x208
mov dword [rsp + 0x50], 0x206
lea rcx, [rbp + 0x40]
call fcn.1800abaa0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rbp + 0x40]
xor r8d, r8d
lea rdx, [0x1800fe6b8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18005fb2d
mov r8, rdi
lea rcx, [rbp - 0x30]
xor edx, edx
call fcn.1800abaa0
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x40]
call fcn.18005f7f0
test eax, eax
je 0x18005fb2d
cmp byte [rsp + 0x60], sil
je 0x18005fae8
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x18005fb2d
lea r8, [rbp - 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x60]
sub r8, rcx
lea rax, [rsp + 0x60]
nop dword [rax]
lea rcx, [rdx + 0x7fffff9a]
test rcx, rcx
je 0x18005fb22
movzx ecx, byte [r8 + rax]
test cl, cl
je 0x18005fb22
mov byte [rax], cl
inc rax
sub rdx, 1
jne 0x18005fb00
jmp 0x18005fb27
test rdx, rdx
jne 0x18005fb2a
dec rax
mov byte [rax], sil
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rsi
lea r8, [rbp + 0x250]
mov qword [rsp + 0x30], rsi
inc r14d
mov qword [rsp + 0x28], rsi
mov edx, r14d
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x40], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x18005fa30
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x598]
cmp byte [rsp + 0x60], sil
je 0x18005fbda
lea rcx, [rsp + 0x60]
sub rcx, rbx
nop dword [rax + rax]
lea rax, [rdi + 0x7fffff9a]
test rax, rax
je 0x18005fbc1
movzx eax, byte [rcx + rbx]
test al, al
je 0x18005fbc1
mov byte [rbx], al
inc rbx
sub rdi, 1
jne 0x18005fba0
jmp 0x18005fbc6
test rdi, rdi
jne 0x18005fbce
dec rbx
mov esi, 0x8007007a
not esi
mov byte [rbx], 0
shr esi, 0x1f
mov eax, esi
jmp 0x18005fbdc
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.18008f850
mov rbx, qword [rsp + 0x5a0]
add rsp, 0x570
pop rdi
pop rsi
pop rbp
ret