Function at 0x140016ec0
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 [0x14003e468]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov rax, qword [0x14003f6c8]
mov qword [rbp - 0x58], rax
mov qword [0x14003f6c8], 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.140016d60
test eax, eax
jne 0x140016f73
cmp qword [rbp + 0x60], 8
jb 0x140016f6e
mov rcx, qword [rbp + 0x48]
call fcn.1400193d8
nop
jmp 0x1400178e2
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.14000c0f0
nop
mov r8d, 0x18
lea rdx, str.drivers_atheros_bth.inf
lea rcx, [rbp + 0x70]
call fcn.14000c420
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.14000c580
nop
lea r8, [rbp + 0x70]
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x78]
call fcn.14000b760
nop
cmp qword [rbp + 0x10], 8
jb 0x140016fff
mov rcx, qword [rbp - 8]
call fcn.1400193d8
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 0x140017139
lea rdi, [r14 + 0x10]
nop word [rax + rax]
mov esi, 1
mov r8, qword [rdi]
cmp r8, rsi
jae 0x140017055
mov rsi, r8
test r8, r8
je 0x1400170a0
mov rax, qword [rdi + 8]
lea rbx, [rdi - 0x10]
cmp rax, 8
jb 0x140017068
mov rdx, qword [rbx]
jmp 0x14001706b
mov rdx, rbx
cmp rax, 8
jb 0x140017076
mov rcx, qword [rbx]
jmp 0x140017079
mov rcx, rbx
sub r8, rsi
add r8, r8
lea rdx, [rdx + rsi*2]
call fcn.140019bf0
mov r11, qword [rdi]
sub r11, rsi
mov qword [rdi], r11
cmp qword [rdi + 8], 8
jb 0x14001709b
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 0x14001712c
sub r8, rcx
cmp r8, rsi
jae 0x1400170c4
mov rsi, r8
test r8, r8
je 0x140017117
mov rax, qword [rdi + 8]
lea rbx, [rdi - 0x10]
cmp rax, 8
jb 0x1400170d7
mov rdx, qword [rbx]
jmp 0x1400170da
mov rdx, rbx
cmp rax, 8
jb 0x1400170e5
mov r9, qword [rbx]
jmp 0x1400170e8
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.140019bf0
mov r11, qword [rdi]
sub r11, rsi
mov qword [rdi], r11
cmp qword [rdi + 8], 8
jb 0x140017112
mov rbx, qword [rbx]
mov word [rbx + r11*2], r15w
inc r12d
add rdi, 0x28
mov eax, r12d
cmp rax, r13
jb 0x140017040
jmp 0x140017139
lea rcx, str.invalid_string_position
call fcn.14001873c
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.14000c580
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 8]
call fcn.14000b330
nop
cmp qword [rbp + 0x10], 8
jb 0x140017181
mov rcx, qword [rbp - 8]
call fcn.1400193d8
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.14000b580
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
cmp r15, rbx
je 0x1400171f0
mov r8, r15
mov rdx, rbx
mov rcx, rbx
call fcn.14000d910
mov rsi, rax
mov rdi, rax
cmp rax, rbx
je 0x1400171e8
nop dword [rax + rax]
cmp qword [rdi + 0x18], 8
jb 0x1400171cf
mov rcx, qword [rdi]
call fcn.1400193d8
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x1400171c0
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.14000c580
nop
lea rax, [rbp - 8]
cmp rax, rbx
jae 0x1400172b5
lea rax, [rbp - 8]
cmp r15, rax
ja 0x1400172b5
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 0x14001727d
lea rcx, [rsp + 0x60]
call fcn.14000c220
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 0x1400172b3
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.14000c0f0
nop
jmp 0x140017314
mov rdi, qword [rsp + 0x70]
cmp rbx, rdi
jne 0x1400172d8
lea rcx, [rsp + 0x60]
call fcn.14000c220
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 0x14001730a
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.14000c0f0
nop
movabs r13, 0x6666666666666667
add rbx, 0x28
mov qword [rsp + 0x68], rbx
cmp qword [rbp + 0x10], 8
jb 0x14001732d
mov rcx, qword [rbp - 8]
call fcn.1400193d8
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.14000c580
nop
lea rax, [rbp - 8]
cmp rax, rbx
jae 0x1400173d6
lea rax, [rbp - 8]
cmp r15, rax
ja 0x1400173d6
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 0x14001739e
lea rcx, [rsp + 0x60]
call fcn.14000c220
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 0x1400173d4
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.14000c0f0
nop
jmp 0x140017421
cmp rbx, rdi
jne 0x1400173ef
lea rcx, [rsp + 0x60]
call fcn.14000c220
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x80], rbx
test rbx, rbx
je 0x140017421
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.14000c0f0
nop
add rbx, 0x28
mov qword [rsp + 0x68], rbx
cmp qword [rbp + 0x10], 8
jb 0x14001743a
mov rcx, qword [rbp - 8]
call fcn.1400193d8
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 0x1400177c2
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.14000c580
nop
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x98]
call fcn.1400179b0
nop
lea rcx, [rdi + rdi*4]
lea r8, [r15 + rcx*8]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140017a60
mov rdi, rax
lea rax, [rbp - 8]
cmp rax, rdi
je 0x140017533
cmp qword [rbp + 0x10], 8
jb 0x1400174d9
mov rcx, qword [rbp - 8]
call fcn.1400193d8
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r12
mov word [rbp - 8], r12w
cmp qword [rdi + 0x18], 8
jae 0x140017509
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 8]
call fcn.140019bf0
jmp 0x140017513
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 0x140017543
mov rcx, qword [rbp + 0x20]
call fcn.1400193d8
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r12
mov word [rbp + 0x20], r12w
cmp qword [rbp + 0xb0], 8
jb 0x14001756a
mov rcx, qword [rbp + 0x98]
call fcn.1400193d8
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.14000c580
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x20]
call fcn.14000b330
nop
cmp qword [rbp + 0x38], 8
jb 0x1400175d0
mov rcx, qword [rbp + 0x20]
call fcn.1400193d8
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 0x14001774e
xor r15d, r15d
mov edi, r15d
nop dword [rax + rax]
lea rdx, [rbp - 8]
lea rcx, [rbp + 0xc0]
call fcn.1400179b0
nop
lea rcx, [rdi + rdi*4]
lea r8, [r13 + rcx*8]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140017a60
nop
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.140017ac0
nop
cmp qword [rbp + 0x38], 8
jb 0x140017657
mov rcx, qword [rbp + 0x20]
call fcn.1400193d8
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r15
mov word [rbp + 0x20], r15w
cmp qword [rbp + 0xd8], 8
jb 0x14001767e
mov rcx, qword [rbp + 0xc0]
call fcn.1400193d8
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 [0x14003f8d8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [0x14003f6c8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017726
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 0x14001773c
mov rcx, qword [rbp + 0x98]
call fcn.1400193d8
inc esi
mov edi, esi
cmp rdi, r12
jb 0x140017610
mov r15, qword [rsp + 0x60]
test r13, r13
je 0x140017790
mov rdi, r13
cmp r13, r14
je 0x140017787
xor esi, esi
nop dword [rax]
cmp qword [rdi + 0x18], 8
jb 0x14001776f
mov rcx, qword [rdi]
call fcn.1400193d8
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
add rdi, 0x28
cmp rdi, r14
jne 0x140017760
mov rcx, r13
call fcn.1400193d8
nop
cmp qword [rbp + 0x10], 8
jb 0x1400177a0
mov rcx, qword [rbp - 8]
call fcn.1400193d8
mov esi, dword [rbp - 0x80]
inc esi
mov dword [rbp - 0x80], esi
mov edi, esi
cmp rdi, rbx
mov r12d, 0
jb 0x140017470
mov rbx, qword [rsp + 0x68]
mov r14, qword [rbp - 0x78]
mov rax, qword [rbp - 0x58]
mov qword [0x14003f6c8], rax
cmp qword [rbp + 0x88], 8
jb 0x1400177e0
mov rcx, qword [rbp + 0x70]
call fcn.1400193d8
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], r12
mov word [rbp + 0x70], r12w
cmp qword [rbp + 0x60], 8
jb 0x140017807
mov rcx, qword [rbp + 0x48]
call fcn.1400193d8
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], r12
mov word [rbp + 0x48], r12w
test r15, r15
je 0x140017856
mov rdi, r15
cmp r15, rbx
je 0x14001784d
cmp qword [rdi + 0x18], 8
jb 0x140017834
mov rcx, qword [rdi]
call fcn.1400193d8
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x140017825
mov rcx, r15
call fcn.1400193d8
nop
mov rsi, qword [rbp - 0x50]
test rsi, rsi
je 0x1400178a1
mov rdi, rsi
mov rbx, qword [rbp - 0x48]
cmp rsi, rbx
je 0x140017898
nop dword [rax + rax]
cmp qword [rdi + 0x18], 8
jb 0x14001787f
mov rcx, qword [rdi]
call fcn.1400193d8
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x140017870
mov rcx, rsi
call fcn.1400193d8
nop
test r14, r14
je 0x1400178e2
mov rdi, r14
mov rbx, qword [rbp - 0x70]
cmp r14, rbx
je 0x1400178da
cmp qword [rdi + 0x18], 8
jb 0x1400178c1
mov rcx, qword [rdi]
call fcn.1400193d8
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x1400178b2
mov rcx, r14
call fcn.1400193d8
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.1400187e0
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