Function at 0x140018e80
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 [0x140043468]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov rax, qword [0x1400446c8]
mov qword [rbp - 0x58], rax
mov qword [0x1400446c8], 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.140018d20
test eax, eax
jne 0x140018f33
cmp qword [rbp + 0x60], 8
jb 0x140018f2e
mov rcx, qword [rbp + 0x48]
call fcn.14001b480
nop
jmp 0x1400198a2
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.14000d490
nop
mov r8d, 0x18
lea rdx, str.drivers_atheros_bth.inf
lea rcx, [rbp + 0x70]
call fcn.14000d7c0
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.14000d920
nop
lea r8, [rbp + 0x70]
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x78]
call fcn.14000cb00
nop
cmp qword [rbp + 0x10], 8
jb 0x140018fbf
mov rcx, qword [rbp - 8]
call fcn.14001b480
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 0x1400190f9
lea rdi, [r14 + 0x10]
nop word [rax + rax]
mov esi, 1
mov r8, qword [rdi]
cmp r8, rsi
jae 0x140019015
mov rsi, r8
test r8, r8
je 0x140019060
mov rax, qword [rdi + 8]
lea rbx, [rdi - 0x10]
cmp rax, 8
jb 0x140019028
mov rdx, qword [rbx]
jmp 0x14001902b
mov rdx, rbx
cmp rax, 8
jb 0x140019036
mov rcx, qword [rbx]
jmp 0x140019039
mov rcx, rbx
sub r8, rsi
add r8, r8
lea rdx, [rdx + rsi*2]
call fcn.14001ba60
mov r11, qword [rdi]
sub r11, rsi
mov qword [rdi], r11
cmp qword [rdi + 8], 8
jb 0x14001905b
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 0x1400190ec
sub r8, rcx
cmp r8, rsi
jae 0x140019084
mov rsi, r8
test r8, r8
je 0x1400190d7
mov rax, qword [rdi + 8]
lea rbx, [rdi - 0x10]
cmp rax, 8
jb 0x140019097
mov rdx, qword [rbx]
jmp 0x14001909a
mov rdx, rbx
cmp rax, 8
jb 0x1400190a5
mov r9, qword [rbx]
jmp 0x1400190a8
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.14001ba60
mov r11, qword [rdi]
sub r11, rsi
mov qword [rdi], r11
cmp qword [rdi + 8], 8
jb 0x1400190d2
mov rbx, qword [rbx]
mov word [rbx + r11*2], r15w
inc r12d
add rdi, 0x28
mov eax, r12d
cmp rax, r13
jb 0x140019000
jmp 0x1400190f9
lea rcx, str.invalid_string_position
call fcn.14001a5ac
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.14000d920
nop
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 8]
call fcn.14000c6d0
nop
cmp qword [rbp + 0x10], 8
jb 0x140019141
mov rcx, qword [rbp - 8]
call fcn.14001b480
lea r8, [rsp + 0x60]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x78]
call fcn.14000c920
mov r15, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
cmp r15, rbx
je 0x1400191b0
mov r8, r15
mov rdx, rbx
mov rcx, rbx
call fcn.14000ecb0
mov rsi, rax
mov rdi, rax
cmp rax, rbx
je 0x1400191a8
nop dword [rax + rax]
cmp qword [rdi + 0x18], 8
jb 0x14001918f
mov rcx, qword [rdi]
call fcn.14001b480
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x140019180
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.14000d920
nop
lea rax, [rbp - 8]
cmp rax, rbx
jae 0x140019275
lea rax, [rbp - 8]
cmp r15, rax
ja 0x140019275
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 0x14001923d
lea rcx, [rsp + 0x60]
call fcn.14000d5c0
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 0x140019273
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.14000d490
nop
jmp 0x1400192d4
mov rdi, qword [rsp + 0x70]
cmp rbx, rdi
jne 0x140019298
lea rcx, [rsp + 0x60]
call fcn.14000d5c0
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 0x1400192ca
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.14000d490
nop
movabs r13, 0x6666666666666667
add rbx, 0x28
mov qword [rsp + 0x68], rbx
cmp qword [rbp + 0x10], 8
jb 0x1400192ed
mov rcx, qword [rbp - 8]
call fcn.14001b480
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.14000d920
nop
lea rax, [rbp - 8]
cmp rax, rbx
jae 0x140019396
lea rax, [rbp - 8]
cmp r15, rax
ja 0x140019396
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 0x14001935e
lea rcx, [rsp + 0x60]
call fcn.14000d5c0
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 0x140019394
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.14000d490
nop
jmp 0x1400193e1
cmp rbx, rdi
jne 0x1400193af
lea rcx, [rsp + 0x60]
call fcn.14000d5c0
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x80], rbx
test rbx, rbx
je 0x1400193e1
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.14000d490
nop
add rbx, 0x28
mov qword [rsp + 0x68], rbx
cmp qword [rbp + 0x10], 8
jb 0x1400193fa
mov rcx, qword [rbp - 8]
call fcn.14001b480
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 0x140019782
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.14000d920
nop
lea rdx, [rbp - 8]
lea rcx, [rbp + 0x98]
call fcn.140019970
nop
lea rcx, [rdi + rdi*4]
lea r8, [r15 + rcx*8]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140019a20
mov rdi, rax
lea rax, [rbp - 8]
cmp rax, rdi
je 0x1400194f3
cmp qword [rbp + 0x10], 8
jb 0x140019499
mov rcx, qword [rbp - 8]
call fcn.14001b480
mov qword [rbp + 0x10], 7
mov qword [rbp + 8], r12
mov word [rbp - 8], r12w
cmp qword [rdi + 0x18], 8
jae 0x1400194c9
mov r8, qword [rdi + 0x10]
inc r8
add r8, r8
mov rdx, rdi
lea rcx, [rbp - 8]
call fcn.14001ba60
jmp 0x1400194d3
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 0x140019503
mov rcx, qword [rbp + 0x20]
call fcn.14001b480
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r12
mov word [rbp + 0x20], r12w
cmp qword [rbp + 0xb0], 8
jb 0x14001952a
mov rcx, qword [rbp + 0x98]
call fcn.14001b480
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.14000d920
nop
lea rdx, [rbp - 0x30]
lea rcx, [rbp + 0x20]
call fcn.14000c6d0
nop
cmp qword [rbp + 0x38], 8
jb 0x140019590
mov rcx, qword [rbp + 0x20]
call fcn.14001b480
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 0x14001970e
xor r15d, r15d
mov edi, r15d
nop dword [rax + rax]
lea rdx, [rbp - 8]
lea rcx, [rbp + 0xc0]
call fcn.140019970
nop
lea rcx, [rdi + rdi*4]
lea r8, [r13 + rcx*8]
mov rdx, rax
lea rcx, [rbp + 0x20]
call fcn.140019a20
nop
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.140019a80
nop
cmp qword [rbp + 0x38], 8
jb 0x140019617
mov rcx, qword [rbp + 0x20]
call fcn.14001b480
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r15
mov word [rbp + 0x20], r15w
cmp qword [rbp + 0xd8], 8
jb 0x14001963e
mov rcx, qword [rbp + 0xc0]
call fcn.14001b480
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 [0x1400446d0]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [0x1400446c8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400196e6
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 0x1400196fc
mov rcx, qword [rbp + 0x98]
call fcn.14001b480
inc esi
mov edi, esi
cmp rdi, r12
jb 0x1400195d0
mov r15, qword [rsp + 0x60]
test r13, r13
je 0x140019750
mov rdi, r13
cmp r13, r14
je 0x140019747
xor esi, esi
nop dword [rax]
cmp qword [rdi + 0x18], 8
jb 0x14001972f
mov rcx, qword [rdi]
call fcn.14001b480
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rsi
mov word [rdi], si
add rdi, 0x28
cmp rdi, r14
jne 0x140019720
mov rcx, r13
call fcn.14001b480
nop
cmp qword [rbp + 0x10], 8
jb 0x140019760
mov rcx, qword [rbp - 8]
call fcn.14001b480
mov esi, dword [rbp - 0x80]
inc esi
mov dword [rbp - 0x80], esi
mov edi, esi
cmp rdi, rbx
mov r12d, 0
jb 0x140019430
mov rbx, qword [rsp + 0x68]
mov r14, qword [rbp - 0x78]
mov rax, qword [rbp - 0x58]
mov qword [0x1400446c8], rax
cmp qword [rbp + 0x88], 8
jb 0x1400197a0
mov rcx, qword [rbp + 0x70]
call fcn.14001b480
mov qword [rbp + 0x88], 7
mov qword [rbp + 0x80], r12
mov word [rbp + 0x70], r12w
cmp qword [rbp + 0x60], 8
jb 0x1400197c7
mov rcx, qword [rbp + 0x48]
call fcn.14001b480
mov qword [rbp + 0x60], 7
mov qword [rbp + 0x58], r12
mov word [rbp + 0x48], r12w
test r15, r15
je 0x140019816
mov rdi, r15
cmp r15, rbx
je 0x14001980d
cmp qword [rdi + 0x18], 8
jb 0x1400197f4
mov rcx, qword [rdi]
call fcn.14001b480
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x1400197e5
mov rcx, r15
call fcn.14001b480
nop
mov rsi, qword [rbp - 0x50]
test rsi, rsi
je 0x140019861
mov rdi, rsi
mov rbx, qword [rbp - 0x48]
cmp rsi, rbx
je 0x140019858
nop dword [rax + rax]
cmp qword [rdi + 0x18], 8
jb 0x14001983f
mov rcx, qword [rdi]
call fcn.14001b480
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x140019830
mov rcx, rsi
call fcn.14001b480
nop
test r14, r14
je 0x1400198a2
mov rdi, r14
mov rbx, qword [rbp - 0x70]
cmp r14, rbx
je 0x14001989a
cmp qword [rdi + 0x18], 8
jb 0x140019881
mov rcx, qword [rdi]
call fcn.14001b480
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], r12
mov word [rdi], r12w
add rdi, 0x28
cmp rdi, rbx
jne 0x140019872
mov rcx, r14
call fcn.14001b480
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.14001a650
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