Function at 0x140095e20
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 0x140095ea5
jmp 0x14009611f
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 0x140096111
mov eax, dword [rsp + 0x140]
add eax, 1
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 0x140095f46
jmp 0x140095eb0
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 0x140095fb6
lea rcx, [rsp + 0x370]
call fcn.140094210
movzx eax, al
test eax, eax
je 0x140095fb6
mov dword [rsp + 0x350], 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [0x1401263f8]
mov rcx, qword [rsp + 0x360]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [rsp + 0x368], eax
cmp dword [rsp + 0x368], 0
je 0x140096002
mov rcx, qword [rsp + 0x360]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140095eb0
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, [0x140126408]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [rsp + 0x368], eax
cmp dword [rsp + 0x368], 0
je 0x14009606e
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 0x140095eb0
lea rcx, [rsp + 0x780]
call fcn.1400cf910
mov qword [rsp + 0x888], rax
lea rcx, [0x140126410]
call fcn.1400cf910
mov rcx, qword [rsp + 0x888]
cmp rcx, rax
jb 0x1400960d5
lea rcx, [0x140126420]
call fcn.1400cf910
lea rax, [rsp + rax + 0x780]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x570]
lea r8, [0x14012642c]
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.1400940c0
jmp 0x1400960da
jmp 0x140095eb0
mov byte [rsp + 0x13f], 0
mov edx, dword [rsp + 0x350]
lea rcx, [rsp + 0x40]
call fcn.140094c30
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 0x140095eb0
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 0x14009630d
lea rax, [rsp + 0x36c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x358]
xor r8d, r8d
lea rdx, [0x1401264a0]
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 rdx, rax
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 0x1400961d2
xor al, al
jmp 0x14009630f
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 0x140096243
jmp 0x1400962df
movsxd rax, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x880]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x890], rax
lea rcx, [0x1401264b0]
call fcn.1400cf910
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.1400940c0
movsxd rax, dword [rsp + 0x140]
mov rcx, qword [rsp + 0x880]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1400cf910
mov ecx, dword [rsp + 0x140]
lea eax, [rcx + rax + 1]
mov dword [rsp + 0x140], eax
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.140094c30
jmp 0x140096226
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