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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x528], rbx
mov rax, qword [0x18012c3a8]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov r13, r8
mov r12, rdx
mov r15, rcx
xor ebx, ebx
mov dword [rdx], ebx
mov dword [r8], ebx
mov qword [rsp + 0x70], rbx
mov dword [rsp + 0x78], ebx
mov qword [rbp - 0x80], rbx
lea r9d, [rbx + 8]
lea r8, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x70]
call fcn.180022180
mov r14, qword [rsp + 0x70]
test eax, eax
je 0x180064885
mov esi, ebx
jmp 0x180064b72
mov edi, ebx
mov esi, 1
nop dword [rax]
mov dword [rsp + 0x44], 0x104
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
lea r8, [rbp + 0x1b0]
mov edx, edi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180064b72
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x50], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, esi
xor r8d, r8d
lea rdx, [rbp + 0x1b0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1800649b4
mov dword [rsp + 0x60], ebx
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rbx
xor eax, eax
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x40], 0x208
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.NetCfgInstanceId
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18006499d
mov eax, dword [rsp + 0x48]
dec eax
cmp eax, 1
ja 0x18006499d
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x180064980
test cl, 1
jne 0x18006499d
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x180064986
jmp 0x18006499d
xor eax, eax
mov word [rbp - 0x60], ax
shr ecx, 1
mov dword [rsp + 0x44], ecx
mov rdx, r15
lea rcx, [rbp - 0x60]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x1800649cb
test rbx, rbx
je 0x1800649b4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
jmp 0x1800649b4
mov dword [rsp + 0x60], ebx
inc edi
cmp edi, 0x100
jge 0x180064b72
jmp 0x180064890
mov dword [rsp + 0x40], 0x208
xor edi, edi
mov dword [rsp + 0x44], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.BusType
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180064b59
mov eax, dword [rsp + 0x48]
dec eax
cmp eax, 1
ja 0x180064b59
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x180064a3d
test cl, 1
jne 0x180064b59
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 - 0x62], di
je 0x180064a41
jmp 0x180064b59
mov word [rbp - 0x60], di
shr ecx, 1
mov dword [rsp + 0x44], ecx
lea rcx, [rbp - 0x60]
call fcn.1800bd960
cmp eax, 5
je 0x180064b49
test eax, eax
jne 0x180064b59
mov dword [rsp + 0x40], 0x208
mov dword [rsp + 0x44], edi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x48]
xor r8d, r8d
lea rdx, str.DriverDesc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180064b59
mov eax, dword [rsp + 0x48]
dec eax
cmp eax, 1
ja 0x180064b59
mov ecx, dword [rsp + 0x40]
test ecx, ecx
je 0x180064ad1
test cl, 1
jne 0x180064b59
mov eax, ecx
shr rax, 1
cmp word [rbp + rax*2 - 0x62], di
je 0x180064ad5
jmp 0x180064b59
mov word [rbp - 0x60], di
shr ecx, 1
mov dword [rsp + 0x44], ecx
mov r8d, 9
lea rdx, str.Microsoft
lea rcx, [rbp - 0x60]
call fcn.1800bd98c
test eax, eax
jne 0x180064b59
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.IfType
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180064b59
cmp dword [rsp + 0x50], 4
jne 0x180064b59
cmp dword [rsp + 0x40], 6
jne 0x180064b59
mov dword [r12], esi
mov dword [r13], edi
jmp 0x180064b59
mov dword [r12], esi
mov rdx, r13
mov rcx, rbx
call fcn.1800645f0
nop
test rbx, rbx
je 0x180064b6e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebx
test r14, r14
je 0x180064b85
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], rbx
mov eax, esi
mov dword [rsp + 0x78], ebx
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.18008f850
mov rbx, qword [rsp + 0x528]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret