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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x3f8]
sub rsp, 0x4e0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403b8c08]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r14, rcx
xor edi, edi
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x78], rdi
lea r9d, [rdi + 8]
lea r8, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x68]
call fcn.14007dcc0
mov rsi, qword [rsp + 0x68]
test eax, eax
jne 0x14017b35f
mov r15d, edi
nop word [rax + rax]
mov dword [rsp + 0x40], 0x104
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x40]
lea r8, [rbp + 0x1c0]
mov edx, r15d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14017b354
mov qword [rbp - 0x60], rdi
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rbp + 0x1c0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14017b344
mov rbx, qword [rsp + 0x60]
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], edi
mov dword [rsp + 0x44], 0x208
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.BusType
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14017b24a
mov eax, dword [rsp + 0x4c]
dec eax
cmp eax, 1
ja 0x14017b24a
mov ecx, dword [rsp + 0x44]
test ecx, ecx
je 0x14017b232
test cl, 1
jne 0x14017b24a
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 - 0x52], 0
je 0x14017b236
jmp 0x14017b24a
mov word [rbp - 0x50], di
shr ecx, 1
mov dword [rsp + 0x40], ecx
lea rcx, [rbp - 0x50]
call fcn.140291898
cmp eax, 5
je 0x14017b261
test rbx, rbx
je 0x14017b344
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14017b344
mov dword [rsp + 0x48], 0x208
mov dword [rsp + 0x40], edi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.NetCfgInstanceId
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14017b24a
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
ja 0x14017b24a
mov ecx, dword [rsp + 0x48]
test ecx, ecx
je 0x14017b2c3
test cl, 1
jne 0x14017b24a
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 - 0x52], 0
je 0x14017b2c7
jmp 0x14017b24a
mov word [rbp - 0x50], di
shr ecx, 1
mov dword [rsp + 0x40], ecx
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x58]
call fcn.14000d920
nop
mov rax, qword [r14 + 8]
cmp qword [r14 + 0x10], rax
je 0x14017b2fa
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.1400835f0
add qword [r14 + 8], 8
jmp 0x14017b30b
lea r8, [rsp + 0x58]
mov rdx, rax
mov rcx, r14
call fcn.1400ceb70
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14017b32d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14017b33d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x68]
jmp 0x14017b344
inc r15d
cmp r15d, 0x100
jl 0x14017b150
mov rdx, qword [r14 + 8]
cmp qword [r14], rdx
setne dil
test rsi, rsi
je 0x14017b36d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.140172190
lea r11, [rsp + 0x4e0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret