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

Disassembly:
push rsi
push rdi
sub rsp, 0x8a8
mov dword [rsp + 0x36c], 0
lea rax, [rsp + 0x570]
lea rcx, str.DeviceKHCAP_
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_ntohs
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x57f]
mov rdi, rax
xor eax, eax
mov ecx, 0x1f1
rep stosb byte [rdi], al
lea rax, [rsp + 0x770]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x368], eax
cmp dword [rsp + 0x368], 0
je 0x14006f6c5
jmp 0x14006f93e
mov dword [rsp + 0x140], 0
mov r9d, 0x100
lea r8, [rsp + 0x150]
mov edx, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x770]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [rsp + 0x354], eax
cmp dword [rsp + 0x354], 0
jne 0x14006f930
mov eax, dword [rsp + 0x140]
inc eax
mov dword [rsp + 0x140], eax
mov dword [rsp + 0x350], 0
lea rax, [rsp + 0x360]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x150]
mov rcx, qword [rsp + 0x770]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x368], eax
cmp dword [rsp + 0x368], 0
je 0x14006f765
jmp 0x14006f6d0
mov dword [rsp + 0x35c], 0x200
lea rax, [rsp + 0x35c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x370]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ComponentId
mov rcx, qword [rsp + 0x360]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x368], eax
cmp dword [rsp + 0x368], 0
jne 0x14006f7d5
lea rcx, [rsp + 0x370]
call fcn.14006d640
movzx eax, al
test eax, eax
je 0x14006f7d5
mov dword [rsp + 0x350], 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1400f3fd0]
mov rcx, qword [rsp + 0x360]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x368], eax
cmp dword [rsp + 0x368], 0
je 0x14006f821
mov rcx, qword [rsp + 0x360]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f6d0
mov dword [rsp + 0x35c], 0x100
lea rax, [rsp + 0x35c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x780]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1400f3fe0]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x368], eax
cmp dword [rsp + 0x368], 0
je 0x14006f88d
mov rcx, qword [rsp + 0x360]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f6d0
lea rcx, [rsp + 0x780]
call fcn.140099f30
mov qword [rsp + 0x888], rax
lea rcx, [0x1400f3fe8]
call fcn.140099f30
mov rcx, qword [rsp + 0x888]
cmp rcx, rax
jb 0x14006f8f4
lea rcx, [0x1400f3ff8]
call fcn.140099f30
lea rax, [rsp + rax + 0x780]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x570]
lea r8, [0x1400f4004]
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.14006d5c0
jmp 0x14006f8f9
jmp 0x14006f6d0
mov byte [rsp + 0x13f], 0
mov edx, dword [rsp + 0x350]
lea rcx, [rsp + 0x40]
call fcn.14006e2c0
mov rcx, qword [rsp + 0x360]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14006f6d0
mov rcx, qword [rsp + 0x770]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesTcpipLinkage
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x368], eax
cmp dword [rsp + 0x368], 0
jne 0x14006fb2b
lea rax, [rsp + 0x36c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x358]
xor r8d, r8d
lea rdx, [0x1400f4070]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x368], eax
mov eax, dword [rsp + 0x36c]
add eax, 2
mov eax, eax
mov edx, eax
mov ecx, 0x42
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov qword [rsp + 0x880], rax
cmp qword [rsp + 0x880], 0
jne 0x14006f9f0
xor al, al
jmp 0x14006fb2d
lea rax, [rsp + 0x36c]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x880]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x358]
xor r8d, r8d
lea rdx, str.bind
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x368], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x140], 0
movsxd rax, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x880]
movsx eax, byte [rcx + rax]
test eax, eax
jne 0x14006fa61
jmp 0x14006fafd
movsxd rax, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x880]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x890], rax
lea rcx, [0x1400f4080]
call fcn.140099f30
mov rcx, qword [rsp + 0x890]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x570]
lea r8, str._s_s
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.14006d5c0
movsxd rax, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x880]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140099f30
mov ecx, dword [rsp + 0x140]
lea eax, [rcx + rax + 1]
mov dword [rsp + 0x140], eax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.14006e2c0
jmp 0x14006fa44
mov rcx, qword [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rcx, qword [rsp + 0x880]
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov al, 1
add rsp, 0x8a8
pop rdi
pop rsi
ret