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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x228]
sub rsp, 0x320
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rbp + 0x210], rax
movdqa xmm0, xmmword [0x140046520]
movdqu xmmword [rbp - 0x78], xmm0
xor esi, esi
mov word [rsp + 0x78], si
lea rcx, [rsp + 0x78]
call fcn.140017c90
test eax, eax
je 0x140017919
mov rcx, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 0x18
jb 0x1400177d3
lea rdi, [rcx + 0x18]
mov qword [rbp - 0x78], rdi
lea rbx, [rsp + 0x78]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x78]
lea rcx, [rbx + rcx*2]
lea r8d, [rsi + 0x30]
lea rdx, str.Drivers_atheros_bth.inf
call fcn.14001bb50
mov word [rbx + rdi*2], si
jmp 0x1400177f2
mov qword [rsp + 0x20], 0x18
lea r9, str.Drivers_atheros_bth.inf
mov edx, 0x18
lea rcx, [rsp + 0x78]
call fcn.14000d150
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rcx, qword [rsp + 0x78]
lea rdx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp rax, 0xffffffffffffffff
je 0x14001790f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
movdqa xmm0, xmmword [0x140046520]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], si
mov r8d, 0xa
lea rdx, str.AddRegKeys
lea rcx, [rbp - 0x68]
call fcn.14000c900
nop
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.140015a20
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140017896
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017891
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017c7e
call fcn.140019b64
movdqa xmm0, xmmword [0x140046520]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], si
mov r8d, 0xd
lea rdx, str.DeleteRegKeys
lea rcx, [rbp - 0x68]
call fcn.14000c900
nop
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x78]
call fcn.1400169b0
nop
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x140017919
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017908
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017c84
call fcn.140019b64
jmp 0x140017919
call fcn.140015e70
call fcn.140016da0
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 0x1400179af
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 0x14001799e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017c13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], 1
jne 0x140017c13
mov rbx, qword [0x14004dcf0]
mov dword [rsp + 0x50], 1
mov qword [0x14004dcf0], 0xffffffff80000002
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14004dce8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017a12
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 [0x14004dce8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, qword [0x14004dcf0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017a5b
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 [0x14004dce8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, qword [0x14004dcf0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017aa4
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 [0x14004dce8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x14004dcf0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017b1c
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 [0x14004dce8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x14004dcf0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017b94
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 [0x14004dce8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x14004dcf0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017c0c
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 [0x14004dcf0], rbx
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x140017c50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140017c4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140017c78
call fcn.140019b64
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.140019b40
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1400219a8
nop
call fcn.1400219a8
nop
call fcn.1400219a8
int3