Function at 0x140016e80
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x218]
sub rsp, 0x310
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov qword [rbp - 0x78], 7
xor edi, edi
mov qword [rbp - 0x80], rdi
mov word [rsp + 0x70], di
lea rcx, [rsp + 0x70]
call fcn.1400172b0
test eax, eax
je 0x140016fa1
lea r8d, [rdi + 0x18]
lea rdx, str.Drivers_atheros_bth.inf
lea rcx, [rsp + 0x70]
call fcn.14000cb70
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 0x140016f97
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x70], di
lea r8d, [rdi + 0xa]
lea rdx, str.AddRegKeys
lea rcx, [rbp - 0x70]
call fcn.14000c490
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140015380
nop
lea rcx, [rbp - 0x70]
call fcn.14000c290
mov qword [rbp - 0x58], 7
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x70], di
lea r8d, [rdi + 0xd]
lea rdx, str.DeleteRegKeys
lea rcx, [rbp - 0x70]
call fcn.14000c490
nop
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.1400161f0
nop
lea rcx, [rbp - 0x70]
call fcn.14000c290
jmp 0x140016fa1
call fcn.140015770
call fcn.140016580
call fcn.1400152d0
test al, al
jne 0x140017212
mov rbx, qword [0x14004bbd0]
mov dword [rsp + 0x60], 1
mov qword [0x14004bbd0], 0xffffffff80000002
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14004bbc8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017011
lea rdx, str.0000112d_0000_1000_8000_00805f9b34fb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14004bbc8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, qword [0x14004bbd0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001705a
lea rdx, str.0000112e_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 + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x14004bbc8]
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersSupportedServices
mov rcx, qword [0x14004bbd0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400170a3
lea rdx, str.0000112f_0000_1000_8000_00805f9b34fb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov eax, dword [0x14004bbc8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x14004bbd0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001711b
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.0000112d_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], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov eax, dword [0x14004bbc8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x14004bbd0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140017193
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.0000112e_0000_1000_8000_00805f9b34fb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov eax, dword [0x14004bbc8]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesBTHPORTParametersUnsupportedServices
mov rcx, qword [0x14004bbd0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001720b
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.0000112f_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 [0x14004bbd0], rbx
mov rax, qword [rbp - 0x78]
cmp rax, 8
jb 0x140017283
inc rax
mov rcx, qword [rsp + 0x70]
movabs rdx, 0x7fffffffffffffff
cmp rax, rdx
jbe 0x140017239
call fcn.140022518
int3
add rax, rax
cmp rax, 0x1000
jb 0x14001727e
test byte [rsp + 0x70], 0x1f
je 0x140017251
call fcn.140022518
int3
mov rax, qword [rcx - 8]
cmp rax, rcx
jb 0x140017260
call fcn.140022518
int3
sub rcx, rax
cmp rcx, 8
jae 0x14001726f
call fcn.140022518
int3
cmp rcx, 0x27
jbe 0x14001727b
call fcn.140022518
int3
mov rcx, rax
call fcn.140019294
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140019260
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret