Function at 0x140017d30
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov rax, qword [0x1400416c8]
mov qword [rbp - 0x58], rax
mov qword [0x1400416c8], 0xffffffff80000002
xor r15d, r15d
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], r15
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], r15
mov word [rbp + 0x48], r15w
lea rcx, [rbp + 0x48]
call fcn.140017bd0
test eax, eax
jne 0x140017de3
cmp qword [rbp + 0x60], 8
jb 0x140017dde
mov rcx, qword [rbp + 0x48]
call fcn.14001a248
nop
jmp 0x140018752
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], r15
mov word [rbp + 0x70], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp + 0x48]
lea rcx, [rbp + 0x70]
call fcn.14000c9d0
nop
mov r8d, 0x18
lea rdx, str.drivers_atheros_bth.inf
lea rcx, [rbp + 0x70]
call fcn.14000cd00
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r15
mov word [rbp - 8], r15w
mov r8d, 0xd
lea rdx, str.XYZBth.NT.5.1
lea rcx, [rbp - 8]
call fcn.14000ce60
nop
lea r8, [rbp + 0x70]
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x78]
call fcn.14000c010
nop
cmp qword [rbp + 0x10], 8
jb 0x140017e6f
mov rcx, qword [rbp - 8]
call fcn.14001a248
mov r12d, r15d
mov rcx, qword [rbp - 0x70]
mov r14, qword [rbp - 0x78]
sub rcx, r14
movabs rax, 0x6666666666666667
imul rcx
mov r13, rdx
sar r13, 4
mov rax, r13
shr rax, 0x3f
add r13, rax
je 0x140017fa9
lea rdi, [r14 + 0x10]
nop word [rax + rax]
mov esi, 1
mov r8, qword [rdi]
cmp r8, rsi
jae 0x140017ec5
mov rsi, r8
test r8, r8
je 0x140017f10
mov rax, qword [rdi + 8]
lea rbx, [rdi - 0x10]
cmp rax, 8
jb 0x140017ed8
mov rdx, qword [rbx]
jmp 0x140017edb
mov rdx, rbx
cmp rax, 8
jb 0x140017ee6
mov rcx, qword [rbx]
jmp 0x140017ee9
mov rcx, rbx
sub r8, rsi
add r8, r8
lea rdx, [rdx + rsi*2]
call fcn.14001aa60
mov r11, qword [rdi]
sub r11, rsi
mov qword [rdi], r11
cmp qword [rdi + 8], 8
jb 0x140017f0b
mov rbx, qword [rbx]
mov word [rbx + r11*2], r15w
mov rax, qword [rdi]
mov esi, 1
lea rcx, [rax - 1]
mov r8, rax
cmp rax, rcx
jb 0x140017f9c
sub r8, rcx
cmp r8, rsi
jae 0x140017f34
mov rsi, r8
test r8, r8
je 0x140017f87
mov rax, qword [rdi + 8]
lea rbx, [rdi - 0x10]
cmp rax, 8
jb 0x140017f47
mov rdx, qword [rbx]
jmp 0x140017f4a
mov rdx, rbx
cmp rax, 8
jb 0x140017f55
mov r9, qword [rbx]
jmp 0x140017f58
mov r9, rbx
sub r8, rsi
add r8, r8
lea rax, [rcx + rsi]
lea rdx, [rdx + rax*2]
lea rcx, [r9 + rcx*2]
call fcn.14001aa60
mov r11, qword [rdi]
sub r11, rsi
mov qword [rdi], r11
cmp qword [rdi + 8], 8
jb 0x140017f82
mov rbx, qword [rbx]
mov word [rbx + r11*2], r15w
inc r12d
add rdi, 0x28
mov eax, r12d
cmp rax, r13
jb 0x140017eb0
jmp 0x140017fa9
lea rcx, str.invalid_string_position
call fcn.1400195ac
int3
mov qword [rbp + 0x10], 7
xor r12d, r12d
mov qword [rbp + 8], r12
mov word [rbp - 8], r12w
lea r8d, [r12 + 0x21]
lea rdx, str.SYSTEMCurrentControlSetEnumUSB
lea rcx, [rbp - 8]
call fcn.14000ce60
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 8]
call fcn.14000bbe0
nop
cmp qword [rbp + 0x10], 8
jb 0x140017ff1
mov rcx, qword [rbp - 8]
call fcn.14001a248
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.14000be30
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
cmp r15, rbx
je 0x140018060
mov r8, r15
mov rdx, rbx
mov rcx, rbx
call fcn.14000e1c0
mov rsi, rax
mov rdi, rax
cmp rax, rbx
je 0x140018058
nop dword [rax + rax]
cmp qword [rdi + 0x18], 8
jb 0x14001803f
mov rcx, qword [rdi]
call fcn.14001a248
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x140018030
mov rbx, rsi
mov qword [rsp + 0x68], rbx
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r12
mov word [rbp - 8], r12w
mov r8d, 0x17
lea rdx, str.Vid_0cf3Pid_3006MI_00
lea rcx, [rbp - 8]
call fcn.14000ce60
nop
lea rax, [rbp - 8]
cmp rax, rbx
jae 0x140018125
lea rax, [rbp - 8]
cmp r15, rax
ja 0x140018125
lea rcx, [rbp - 8]
sub rcx, r15
movabs r13, 0x6666666666666667
mov rax, r13
imul rcx
mov rsi, rdx
sar rsi, 4
mov rax, rsi
shr rax, 0x3f
add rsi, rax
mov rdi, qword [rsp + 0x70]
cmp rbx, rdi
jne 0x1400180ed
lea rcx, [rsp + 0x60]
call fcn.14000cb00
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
lea rax, [rsi + rsi*4]
lea rdx, [r15 + rax*8]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x80], rbx
test rbx, rbx
je 0x140018123
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000c9d0
nop
jmp 0x140018184
mov rdi, qword [rsp + 0x70]
cmp rbx, rdi
jne 0x140018148
lea rcx, [rsp + 0x60]
call fcn.14000cb00
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x80], rbx
test rbx, rbx
je 0x14001817a
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 8]
mov rcx, rbx
call fcn.14000c9d0
nop
movabs r13, 0x6666666666666667
add rbx, 0x28
mov qword [rsp + 0x68], rbx
cmp qword [rbp + 0x10], 8
jb 0x14001819d
mov rcx, qword [rbp - 8]
call fcn.14001a248
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r12
mov word [rbp - 8], r12w
mov r8d, 0x17
lea rdx, str.Vid_0cf3Pid_3006MI_01
lea rcx, [rbp - 8]
call fcn.14000ce60
nop
lea rax, [rbp - 8]
cmp rax, rbx
jae 0x140018246
lea rax, [rbp - 8]
cmp r15, rax
ja 0x140018246
lea rcx, [rbp - 8]
sub rcx, r15
mov rax, r13
imul rcx
mov rsi, rdx
sar rsi, 4
mov rax, rsi
shr rax, 0x3f
add rsi, rax
cmp rbx, rdi
jne 0x14001820e
lea rcx, [rsp + 0x60]
call fcn.14000cb00
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
lea rax, [rsi + rsi*4]
lea rdx, [r15 + rax*8]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x80], rbx
test rbx, rbx
je 0x140018244
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rcx, rbx
call fcn.14000c9d0
nop
jmp 0x140018291
cmp rbx, rdi
jne 0x14001825f
lea rcx, [rsp + 0x60]
call fcn.14000cb00
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x80], rbx
test rbx, rbx
je 0x140018291
mov qword [rbx + 0x18], 7
mov qword [rbx + 0x10], r12
mov word [rbx], r12w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 8]
mov rcx, rbx
call fcn.14000c9d0
nop
add rbx, 0x28
mov qword [rsp + 0x68], rbx
cmp qword [rbp + 0x10], 8
jb 0x1400182aa
mov rcx, qword [rbp - 8]
call fcn.14001a248
mov dword [rbp - 0x80], r12d
mov rcx, rbx
sub rcx, r15
mov rax, r13
imul rcx
mov rcx, rdx
sar rcx, 4
mov rax, rcx
shr rax, 0x3f
add rcx, rax
je 0x140018632
mov rdi, r12
mov rbx, rcx
nop word [rax + rax]
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r12
mov word [rbp - 8], r12w
mov r8d, 0x21
lea rdx, str.SYSTEMCurrentControlSetEnumUSB
lea rcx, [rbp - 8]
call fcn.14000ce60
nop
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x98]
call fcn.140018820
nop
lea rcx, [rdi + rdi*4]
lea r8, [r15 + rcx*8]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400188d0
mov rdi, rax
lea rax, [rbp - 8]
cmp rax, rdi
je 0x1400183a3
cmp qword [rbp + 0x10], 8
jb 0x140018349
mov rcx, qword [rbp - 8]
call fcn.14001a248
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r12
mov word [rbp - 8], r12w
cmp qword [rdi + 0x18], 8
jae 0x140018379
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 8]
call fcn.14001aa60
jmp 0x140018383
mov rax, qword [rdi]
mov qword [rbp - 8], rax
mov qword [rdi], r12
mov rax, qword [rdi + 0x10]
mov qword [rbp + 8], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x10], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
cmp qword [rbp + 0x38], 8
jb 0x1400183b3
mov rcx, qword [rbp + 0x20]
call fcn.14001a248
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r12
mov word [rbp + 0x20], r12w
cmp qword [rbp + 0xb0], 8
jb 0x1400183da
mov rcx, qword [rbp + 0x98]
call fcn.14001a248
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
lea rdx, [rbp - 8]
cmp qword [rbp + 0x10], 8
cmovae rdx, qword [rbp - 8]
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r12
mov word [rbp + 0x20], r12w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x20]
call fcn.14000ce60
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x20]
call fcn.14000bbe0
nop
cmp qword [rbp + 0x38], 8
jb 0x140018440
mov rcx, qword [rbp + 0x20]
call fcn.14001a248
mov esi, r12d
mov r14, qword [rbp - 0x28]
mov rcx, r14
mov r13, qword [rbp - 0x30]
sub rcx, r13
movabs rax, 0x6666666666666667
imul rcx
mov r12, rdx
sar r12, 4
mov rax, r12
shr rax, 0x3f
add r12, rax
je 0x1400185be
xor r15d, r15d
mov edi, r15d
nop dword [rax + rax]
lea rdx, [rbp - 8]
lea rcx, [rbp + 0xc0]
call fcn.140018820
nop
lea rcx, [rdi + rdi*4]
lea r8, [r13 + rcx*8]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.1400188d0
nop
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.140018930
nop
cmp qword [rbp + 0x38], 8
jb 0x1400184c7
mov rcx, qword [rbp + 0x20]
call fcn.14001a248
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r15
mov word [rbp + 0x20], r15w
cmp qword [rbp + 0xd8], 8
jb 0x1400184ee
mov rcx, qword [rbp + 0xc0]
call fcn.14001a248
mov qword [rbp + 0xd8], 7
mov qword [rbp + 0xd0], r15
mov word [rbp + 0xc0], r15w
mov byte [rsp + 0x50], 1
lea rdx, [rbp + 0x98]
cmp qword [rbp + 0xb0], 8
cmovae rdx, qword [rbp + 0x98]
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov eax, dword [0x1400418d8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [0x1400416c8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140018596
mov dword [rsp + 0x28], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.SelectiveSuspendEnabled
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [rbp + 0xb0], 8
jb 0x1400185ac
mov rcx, qword [rbp + 0x98]
call fcn.14001a248
inc esi
mov edi, esi
cmp rdi, r12
jb 0x140018480
mov r15, qword [rsp + 0x60]
test r13, r13
je 0x140018600
mov rdi, r13
cmp r13, r14
je 0x1400185f7
xor esi, esi
nop dword [rax]
cmp qword [rdi + 0x18], 8
jb 0x1400185df
mov rcx, qword [rdi]
call fcn.14001a248
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
add rdi, 0x28
cmp rdi, r14
jne 0x1400185d0
mov rcx, r13
call fcn.14001a248
nop
cmp qword [rbp + 0x10], 8
jb 0x140018610
mov rcx, qword [rbp - 8]
call fcn.14001a248
mov esi, dword [rbp - 0x80]
inc esi
mov dword [rbp - 0x80], esi
mov edi, esi
cmp rdi, rbx
mov r12d, 0
jb 0x1400182e0
mov rbx, qword [rsp + 0x68]
mov r14, qword [rbp - 0x78]
mov rax, qword [rbp - 0x58]
mov qword [0x1400416c8], rax
cmp qword [rbp + 0x88], 8
jb 0x140018650
mov rcx, qword [rbp + 0x70]
call fcn.14001a248
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], r12
mov word [rbp + 0x70], r12w
cmp qword [rbp + 0x60], 8
jb 0x140018677
mov rcx, qword [rbp + 0x48]
call fcn.14001a248
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], r12
mov word [rbp + 0x48], r12w
test r15, r15
je 0x1400186c6
mov rdi, r15
cmp r15, rbx
je 0x1400186bd
cmp qword [rdi + 0x18], 8
jb 0x1400186a4
mov rcx, qword [rdi]
call fcn.14001a248
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x140018695
mov rcx, r15
call fcn.14001a248
nop
mov rsi, qword [rbp - 0x50]
test rsi, rsi
je 0x140018711
mov rdi, rsi
mov rbx, qword [rbp - 0x48]
cmp rsi, rbx
je 0x140018708
nop dword [rax + rax]
cmp qword [rdi + 0x18], 8
jb 0x1400186ef
mov rcx, qword [rdi]
call fcn.14001a248
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x1400186e0
mov rcx, rsi
call fcn.14001a248
nop
test r14, r14
je 0x140018752
mov rdi, r14
mov rbx, qword [rbp - 0x70]
cmp r14, rbx
je 0x14001874a
cmp qword [rdi + 0x18], 8
jb 0x140018731
mov rcx, qword [rdi]
call fcn.14001a248
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x140018722
mov rcx, r14
call fcn.14001a248
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.140019650
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret