Function at 0x140160d10
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb20]
sub rsp, 0xc20
mov rax, qword [0x1402ecca8]
xor rax, rsp
mov qword [rbp + 0xb10], rax
mov rbx, rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x60], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
xor r15d, r15d
mov r13d, r15d
mov qword [rbp - 0x80], r15
mov qword [rbp - 0x48], r15
movups xmm0, xmmword [0x140285a30]
movups xmmword [rbp + 0xd0], xmm0
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0xd0]
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsExW]
mov rdi, rax
mov qword [rbp - 0x68], rax
cmp rax, 0xffffffffffffffff
jne 0x140160db8
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
jmp 0x140161885
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
mov dword [rbp + 0x70], 0x20
xor edx, edx
mov r8d, 0x230
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x48], r15d
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
mov r12, qword [rbp - 0x50]
test eax, eax
je 0x14016186d
mov rbx, qword [rbp + 0xf8]
mov qword [rbp - 0x60], rbx
mov qword [rsp + 0x40], r12
nop dword [rax]
nop word [rax + rax]
mov qword [rbp - 0x10], r15
mov rax, r15
mov qword [rsp + 0x60], rax
mov qword [rbp], rax
mov r15d, 7
mov qword [rsp + 0x58], r15
mov qword [rbp + 8], r15
xor r13d, r13d
mov word [rbp - 0x10], r13w
mov qword [rbp + 0x10], r13
mov qword [rsp + 0x70], r13
mov qword [rbp + 0x20], r13
mov esi, r15d
mov qword [rsp + 0x50], r15
mov qword [rbp + 0x28], r15
mov word [rbp + 0x10], r13w
mov qword [rbp + 0x30], r13
mov qword [rbp + 0x40], r13
mov r14d, r15d
mov qword [rbp + 0x48], r15
mov word [rbp + 0x30], r13w
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8d, 0xc8
lea rdx, [rbp + 0xe0]
mov ecx, dword [rbp + 0x84]
call qword [sym.imp.SETUPAPI.dll_CM_Get_Device_ID_ExW]
test eax, eax
jne 0x140160f03
lea rax, [rbp + 0xe0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140160ec0
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x10]
call fcn.14001e220
mov r14, qword [rbp + 0x48]
mov rsi, qword [rbp + 0x28]
mov qword [rsp + 0x50], rsi
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x70], rax
mov r15, qword [rbp + 8]
mov qword [rsp + 0x58], r15
mov rax, qword [rbp]
mov qword [rsp + 0x60], rax
mov r9d, 0xc
lea r8, [rbp + 0x70]
mov rdi, qword [rbp - 0x68]
mov rdx, rdi
lea rcx, [rbp + 0x50]
call fcn.1401618c0
mov rbx, rax
lea rax, [rbp + 0x10]
cmp rax, rbx
je 0x140160f96
cmp rsi, 8
jb 0x140160f65
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140160f60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140161842
call fcn.140175928
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x10], xmm0
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rbp + 0x20], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 7
mov word [rbx], r13w
mov rsi, qword [rbp + 0x28]
mov qword [rsp + 0x50], rsi
mov rax, qword [rbp + 0x20]
mov qword [rsp + 0x70], rax
mov rdx, qword [rbp + 0x68]
cmp rdx, 8
jb 0x140160fd6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140160fd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140161842
call fcn.140175928
mov r9d, 9
lea r8, [rbp + 0x70]
mov rdx, rdi
lea rcx, [rbp + 0x90]
call fcn.1401618c0
nop
mov rdi, qword [rbp + 0xa0]
test rdi, rdi
jne 0x1401610fd
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x140161047
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140161041
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016185e
call fcn.140175928
nop
cmp r14, 8
jb 0x14016107f
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016107a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401610f6
call fcn.140175928
cmp rsi, 8
jb 0x1401610b7
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401610b2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401610f6
call fcn.140175928
cmp r15, 8
jb 0x140161815
lea rdx, [r15*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140161810
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140161810
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov qword [rsp + 0x78], r13
mov r15, qword [0x1402ecc18]
movabs r8, 0x7ffffffffffffffe
mov rax, r8
sub rax, r15
cmp rax, rdi
jb 0x1401618b8
lea rax, [0x1402ecc08]
cmp qword [0x1402ecc20], 8
cmovae rax, qword [0x1402ecc08]
mov qword [rsp + 0x68], rax
lea rcx, [rbp + 0x90]
mov r13, qword [rbp + 0x90]
mov rdx, qword [rbp + 0xa8]
mov qword [rbp - 0x70], rdx
cmp rdx, 8
cmovae rcx, r13
mov qword [rbp - 0x78], rcx
xor ecx, ecx
mov qword [rbp - 0x38], rcx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], rcx
lea r12, [rdi + r15]
mov ebx, 7
lea rsi, [rbp - 0x38]
cmp r12, rbx
jbe 0x1401611ba
mov rbx, r12
or rbx, 7
cmp rbx, r8
jbe 0x140161194
mov rbx, r8
jmp 0x1401611a1
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x38]
call fcn.14001e1b0
mov rsi, rax
mov qword [rbp - 0x38], rax
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], rbx
lea rbx, [r15 + r15]
mov r8, rbx
mov rdx, rax
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsi + rbx]
lea r8, [rdi + rdi]
mov rdx, qword [rbp - 0x78]
call sub.VCRUNTIME140.dll_memcpy
xor r15d, r15d
mov word [rsi + r12*2], r15w
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rdx, qword [rbp - 0x38]
lea r8, [rsp + 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14016136e
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x140161255
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140161250
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140161857
call fcn.140175928
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1401612a6
lea rdx, [rdx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x14016129d
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016185e
mov rcx, r13
call fcn.140175928
nop
cmp r14, 8
jb 0x1401612e2
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401612dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401610f6
call fcn.140175928
mov rax, qword [rsp + 0x50]
cmp rax, 8
jb 0x140161323
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016131e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401610f6
call fcn.140175928
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x140161364
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14016135f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401610f6
call fcn.140175928
mov r12, qword [rsp + 0x40]
jmp 0x140161818
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xc0], r15
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], r15w
mov r8d, 0xd
lea rdx, str.DriverVersion
lea rcx, [rbp + 0xb0]
call fcn.14001e220
nop
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x310]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x68], 0x400
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x310]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.DriverVersion
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov qword [rbp + 0x50], r15
mov qword [rbp + 0x60], r15
mov qword [rbp + 0x68], 7
lea rax, [rbp + 0x310]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140161411
lea rdx, [rbp + 0x310]
lea rcx, [rbp + 0x50]
call fcn.14001e220
cmp r14, 8
jb 0x140161468
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140161463
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140161849
call fcn.140175928
movups xmm0, xmmword [rbp + 0x50]
movaps xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rbp + 0x60]
movaps xmmword [rbp + 0x40], xmm1
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x1401614be
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401614b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140161850
call fcn.140175928
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rbp - 0x80]
je 0x140161683
mov qword [rsp + 0x68], rcx
mov qword [rcx], r15
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], r15
lea rdi, [rbp - 0x10]
mov r15, qword [rbp - 0x10]
cmp qword [rsp + 0x58], 8
cmovae rdi, r15
mov rsi, qword [rsp + 0x60]
cmp rsi, 8
jae 0x140161507
movups xmm0, xmmword [rdi]
movups xmmword [rcx], xmm0
mov ebx, 7
jmp 0x140161548
mov rbx, rsi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
call fcn.14001e1b0
mov rcx, qword [rsp + 0x40]
mov qword [rcx], rax
lea r8, [rsi*2 + 2]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x40]
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rbx
lea rbx, [rcx + 0x20]
xor edx, edx
mov qword [rbx], rdx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 0x18], rdx
lea rsi, [rbp + 0x10]
mov r14, qword [rbp + 0x10]
cmp qword [rsp + 0x50], 8
cmovae rsi, r14
mov r12, qword [rsp + 0x70]
cmp r12, 8
jae 0x140161589
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
lea edi, [rdx + 7]
jmp 0x1401615ca
mov rdi, r12
or rdi, 7
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
cmova rdi, rax
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.14001e1b0
mov qword [rbx], rax
lea r8, [r12*2 + 2]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], rdi
lea rbx, [rcx + 0x40]
mov qword [rbx], rdx
mov qword [rbx + 0x10], rdx
mov qword [rbx + 0x18], rdx
lea r12, [rbp + 0x30]
mov rdi, qword [rbp + 0x30]
mov rax, qword [rbp + 0x48]
mov qword [rbp - 0x78], rax
cmp rax, 8
cmovae r12, rdi
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x60], rax
cmp rax, 8
jae 0x140161617
movups xmm0, xmmword [r12]
movups xmmword [rbx], xmm0
mov esi, 7
jmp 0x140161660
mov rsi, rax
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
cmova rsi, rax
lea rdx, [rsi + 1]
mov rcx, rbx
call fcn.14001e1b0
mov qword [rbx], rax
mov r8, qword [rsp + 0x60]
lea r8, [r8*2 + 2]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rsi
add rcx, 0x60
mov qword [rsp + 0x40], rcx
mov qword [rbp - 0x50], rcx
mov rbx, qword [rbp - 0x78]
mov rsi, qword [rsp + 0x50]
mov r12, rcx
jmp 0x1401616c1
lea r8, [rbp - 0x10]
mov rdx, rcx
lea rcx, [rbp - 0x58]
call fcn.14015fbe0
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x80], rax
mov r12, qword [rbp - 0x50]
mov qword [rsp + 0x40], r12
mov rbx, qword [rbp + 0x48]
mov rdi, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x28]
mov r14, qword [rbp + 0x10]
mov rax, qword [rbp + 8]
mov qword [rsp + 0x58], rax
mov r15, qword [rbp - 0x10]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x14016170d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140161708
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140161857
call fcn.140175928
xor ecx, ecx
mov qword [rbp - 0x28], rcx
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], cx
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x14016175f
lea rdx, [rdx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140161756
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14016185e
mov rcx, r13
call fcn.140175928
nop
cmp rbx, 8
jb 0x14016179a
lea rdx, [rbx*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140161792
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401610f6
mov rcx, rdi
call fcn.140175928
cmp rsi, 8
jb 0x1401617d5
lea rdx, [rsi*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x1401617cd
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401610f6
mov rcx, r14
call fcn.140175928
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x140161815
lea rdx, [rax*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x14016180d
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401610f6
mov rcx, r15
call fcn.140175928
xor r15d, r15d
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
lea r8, [rbp + 0x70]
mov edx, eax
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x140161865
mov rbx, qword [rbp - 0x60]
jmp 0x140160e20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rbx, qword [rbp - 0x40]
mov r13, qword [rbp - 0x80]
mov rcx, rdi
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov rax, qword [rbp - 0x58]
mov qword [rbx], rax
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r13
mov rax, rbx
mov rcx, qword [rbp + 0xb10]
xor rcx, rsp
call fcn.140175f30
lea r11, [rsp + 0xc20]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140008c60
nop
int3