Function at 0x1400175f0
Capabilities:
Delete registry value
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0x200], rax
xor esi, esi
mov qword [rbp - 0x80], rsi
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], si
lea rcx, [rsp + 0x70]
call fcn.140017b40
test eax, eax
je 0x1400177ce
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
mov rax, rdx
sub rax, rcx
cmp rax, 0x18
jb 0x14001768a
lea rdi, [rcx + 0x18]
mov qword [rbp - 0x80], rdi
lea rbx, [rsp + 0x70]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x70]
lea rcx, [rbx + rcx*2]
lea r8d, [rsi + 0x30]
lea rdx, str.Drivers_atheros_bth.inf
call fcn.14001bf40
mov word [rbx + rdi*2], si
jmp 0x1400176a9
mov qword [rsp + 0x20], 0x18
lea r9, str.Drivers_atheros_bth.inf
mov edx, 0x18
lea rcx, [rsp + 0x70]
call fcn.14000d2d0
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rcx, qword [rsp + 0x70]
lea rdx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x1400177c4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], si
mov r8d, 0xa
lea rdx, str.AddRegKeys
lea rcx, [rbp - 0x70]
call fcn.14000c9b0
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400159d0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x14001774c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017747
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017b33
call fcn.1400198f4
mov qword [rbp - 0x60], rsi
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], si
mov r8d, 0xd
lea rdx, str.DeleteRegKeys
lea rcx, [rbp - 0x70]
call fcn.14000c9b0
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400168e0
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x1400177ce
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400177bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017b39
call fcn.1400198f4
jmp 0x1400177ce
call fcn.140015df0
call fcn.140016cb0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.Software_atherosVistaAddon
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140017864
mov dword [rsp + 0x50], 0xffffffff
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, str.HidePBAP
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x140017853
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017ac8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], 1
jne 0x140017ac8
mov rbx, qword [0x140052d00]
mov dword [rsp + 0x50], 1
mov qword [0x140052d00], 0xffffffff80000002
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x140052cf8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400178c7
lea rdx, str.0000112d_0000_1000_8000_00805f9b34fb
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x140052cf8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, qword [0x140052d00]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017910
lea rdx, str.0000112e_0000_1000_8000_00805f9b34fb
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x140052cf8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, qword [0x140052d00]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017959
lea rdx, str.0000112f_0000_1000_8000_00805f9b34fb
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov eax, dword [0x140052cf8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x140052d00]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1400179d1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.0000112d_0000_1000_8000_00805f9b34fb
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov eax, dword [0x140052cf8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x140052d00]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017a49
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.0000112e_0000_1000_8000_00805f9b34fb
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov eax, dword [0x140052cf8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x140052d00]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017ac1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.0000112f_0000_1000_8000_00805f9b34fb
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [0x140052d00], rbx
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140017b05
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017b00
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017b2d
call fcn.1400198f4
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400198d0
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14002589c
nop
call fcn.14002589c
nop
call fcn.14002589c
int3