Function at 0x140170470
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 [0x140304f48]
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 [0x1402a2018]
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 0x140170518
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
jmp 0x140170fe5
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 0x140170fcd
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.CFGMGR32.dll_CM_Get_Device_ID_ExW]
test eax, eax
jne 0x140170663
lea rax, [rbp + 0xe0]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140170620
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x10]
call fcn.14001e710
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.140171020
mov rbx, rax
lea rax, [rbp + 0x10]
cmp rax, rbx
je 0x1401706f6
cmp rsi, 8
jb 0x1401706c5
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401706c0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170fa2
call fcn.14017fa70
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 0x140170736
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140170731
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170fa2
call fcn.14017fa70
mov r9d, 9
lea r8, [rbp + 0x70]
mov rdx, rdi
lea rcx, [rbp + 0x90]
call fcn.140171020
nop
mov rdi, qword [rbp + 0xa0]
test rdi, rdi
jne 0x14017085d
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x1401707a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401707a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170fbe
call fcn.14017fa70
nop
cmp r14, 8
jb 0x1401707df
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401707da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170856
call fcn.14017fa70
cmp rsi, 8
jb 0x140170817
lea rdx, [rsi*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140170812
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170856
call fcn.14017fa70
cmp r15, 8
jb 0x140170f75
lea rdx, [r15*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140170f70
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140170f70
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 [0x140304ee8]
movabs r8, 0x7ffffffffffffffe
mov rax, r8
sub rax, r15
cmp rax, rdi
jb 0x140171018
lea rax, [0x140304ed8]
cmp qword [0x140304ef0], 8
cmovae rax, qword [0x140304ed8]
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 0x14017091a
mov rbx, r12
or rbx, 7
cmp rbx, r8
jbe 0x1401708f4
mov rbx, r8
jmp 0x140170901
cmp rbx, 0xa
mov eax, 0xa
cmovb rbx, rax
lea rdx, [rbx + 1]
lea rcx, [rbp - 0x38]
call fcn.14001e6a0
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 0x140170ace
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1401709b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401709b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170fb7
call fcn.14017fa70
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140170a06
lea rdx, [rdx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x1401709fd
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170fbe
mov rcx, r13
call fcn.14017fa70
nop
cmp r14, 8
jb 0x140170a42
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140170a3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170856
call fcn.14017fa70
mov rax, qword [rsp + 0x50]
cmp rax, 8
jb 0x140170a83
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140170a7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170856
call fcn.14017fa70
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x140170ac4
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140170abf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170856
call fcn.14017fa70
mov r12, qword [rsp + 0x40]
jmp 0x140170f78
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.14001e710
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 0x140170b71
lea rdx, [rbp + 0x310]
lea rcx, [rbp + 0x50]
call fcn.14001e710
cmp r14, 8
jb 0x140170bc8
lea rdx, [r14*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140170bc3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170fa9
call fcn.14017fa70
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 0x140170c1e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140170c19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170fb0
call fcn.14017fa70
mov rcx, qword [rsp + 0x40]
cmp rcx, qword [rbp - 0x80]
je 0x140170de3
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 0x140170c67
movups xmm0, xmmword [rdi]
movups xmmword [rcx], xmm0
mov ebx, 7
jmp 0x140170ca8
mov rbx, rsi
or rbx, 7
movabs rax, 0x7ffffffffffffffe
cmp rbx, rax
cmova rbx, rax
lea rdx, [rbx + 1]
call fcn.14001e6a0
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 0x140170ce9
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
lea edi, [rdx + 7]
jmp 0x140170d2a
mov rdi, r12
or rdi, 7
movabs rax, 0x7ffffffffffffffe
cmp rdi, rax
cmova rdi, rax
lea rdx, [rdi + 1]
mov rcx, rbx
call fcn.14001e6a0
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 0x140170d77
movups xmm0, xmmword [r12]
movups xmmword [rbx], xmm0
mov esi, 7
jmp 0x140170dc0
mov rsi, rax
or rsi, 7
movabs rax, 0x7ffffffffffffffe
cmp rsi, rax
cmova rsi, rax
lea rdx, [rsi + 1]
mov rcx, rbx
call fcn.14001e6a0
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 0x140170e21
lea r8, [rbp - 0x10]
mov rdx, rcx
lea rcx, [rbp - 0x58]
call fcn.14016f330
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 0x140170e6d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140170e68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170fb7
call fcn.14017fa70
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 0x140170ebf
lea rdx, [rdx*2 + 2]
mov rax, r13
cmp rdx, 0x1000
jb 0x140170eb6
add rdx, 0x27
mov r13, qword [r13 - 8]
sub rax, r13
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170fbe
mov rcx, r13
call fcn.14017fa70
nop
cmp rbx, 8
jb 0x140170efa
lea rdx, [rbx*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140170ef2
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170856
mov rcx, rdi
call fcn.14017fa70
cmp rsi, 8
jb 0x140170f35
lea rdx, [rsi*2 + 2]
mov rax, r14
cmp rdx, 0x1000
jb 0x140170f2d
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170856
mov rcx, r14
call fcn.14017fa70
mov rax, qword [rsp + 0x58]
cmp rax, 8
jb 0x140170f75
lea rdx, [rax*2 + 2]
mov rax, r15
cmp rdx, 0x1000
jb 0x140170f6d
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140170856
mov rcx, r15
call fcn.14017fa70
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 0x140170fc5
mov rbx, qword [rbp - 0x60]
jmp 0x140170580
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.140180070
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.140008e80
nop
int3