Function at 0x140009fc0
Capabilities:
Check os version
Persist via contextmenuhandlers registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x908]
sub rsp, 0xa00
mov qword [rbp - 0x78], 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 + 0x8f0], rax
xor edi, edi
mov word [rbp + 0x6e0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x6e2]
call fcn.14001be30
mov dword [rbp - 0x70], 0x11c
xor edx, edx
mov r8d, 0x118
lea rcx, [rbp - 0x6c]
call fcn.14001be30
mov dword [rsp + 0x54], edi
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000a05a
mov dword [rbp - 0x70], 0x114
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14000a05a
xor eax, eax
jmp 0x14000a37e
cmp dword [rbp - 0x6c], 6
jb 0x14000a066
cmp dword [rbp - 0x68], 1
jae 0x14000a053
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x68], 4
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movaps xmmword [rbp + 0x2c0], xmm0
movups xmm1, xmmword [0x14002ef90]
movaps xmmword [rbp + 0x2d0], xmm1
movups xmm0, xmmword [0x14002efa0]
movaps xmmword [rbp + 0x2e0], xmm0
movsd xmm1, qword [0x14002efb0]
movsd qword [rbp + 0x2f0], xmm1
xor edx, edx
mov r8d, 0x1d0
lea rcx, [rbp + 0x2f8]
call fcn.14001be30
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x2c0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a124
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.NOGUI
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rsp + 0x50]
test eax, eax
cmovne ecx, edi
mov dword [rsp + 0x50], ecx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x50], edi
jne 0x14000a053
lea rcx, [rbp + 0x6e0]
call fcn.140009940
test eax, eax
je 0x14000a053
mov word [rbp + 0x4d0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x4d2]
call fcn.14001be30
mov word [rbp + 0xb0], di
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0xb2]
call fcn.14001be30
mov r8d, 0x104
lea rdx, [rbp + 0xb0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14000a1db
lea rcx, [rbp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea r8, str.Win7UI.exe
mov edx, 0x104
lea rcx, [rbp + 0xb0]
call fcn.140018e24
lea r8, [rbp + 0xb0]
lea rdx, str.__s____1___2
lea rcx, [rbp + 0x4d0]
call fcn.140018800
lea rax, [rsp + 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.FunctionDiscoveryItemBluetooth_shellexContextMenuHandlersB8453BE8_4D2E_4165_B37D_38EE104BAE84
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000a053
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, [rsp + 0x54]
mov qword [rsp + 0x40], rdx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
lea rdx, str.FunctionDiscoveryItemBluetoothShell
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000a379
mov rcx, qword [rsp + 0x58]
call fcn.140009bc0
lea rcx, [0x14003f470]
mov rax, qword [0x14003f470]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea r8, [rbp + 0x6e0]
lea rdx, str.FunctionDiscoveryItemBluetoothShell_sCommand
lea rcx, [rsp + 0x60]
call fcn.14000ad60
mov rbx, qword [rsp + 0x60]
cmp dword [rbx - 8], 1
jle 0x14000a2cd
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x60]
call fcn.14000aac0
mov rbx, qword [rsp + 0x60]
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or rsi, 0xffffffffffffffff
test eax, eax
jne 0x14000a356
xor eax, eax
mov rcx, rsi
lea rdi, [rbp + 0x4d0]
repne scasw ax, word [rdi]
not rcx
dec rcx
add ecx, ecx
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x4d0]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 2]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14000a36e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov rcx, qword [rbp + 0x8f0]
xor rcx, rsp
call fcn.1400187e0
lea r11, [rsp + 0xa00]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret