joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400331ac
Capabilities:
Get logon sessions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
lea rbp, [rax - 0x158]
sub rsp, 0x250
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x140], rax
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
xor r12d, r12d
mov sil, r12b
call sub.Secur32.dll_LsaEnumerateLogonSessions
test eax, eax
je 0x14003320b
lea rcx, str._IsInteractiveUserloggedOn:_LsaEnumerateLogonSessions_failed._status0x_x
mov edx, eax
call fcn.1400300fc
jmp 0x14003333d
mov r8d, dword [rsp + 0x20]
test r8d, r8d
jne 0x140033226
lea rcx, str._IsInteractiveUserloggedOn:_no_sessions
call fcn.1400300fc
jmp 0x14003333d
mov edi, r12d
cmp edi, r8d
jae 0x140033327
lea rcx, str.IsInteractiveUserloggedOn:_calling_LsaGetLogonSessionData..._session__d_of__d
mov edx, edi
call fcn.1400300fc
mov rax, qword [rsp + 0x30]
mov r11d, edi
lea rcx, [rax + r11*8]
lea rdx, [rsp + 0x28]
call sub.Secur32.dll_LsaGetLogonSessionData
test eax, eax
je 0x14003326d
lea rcx, str._IsInteractiveUserloggedOn:_LsaGetLogonSessionData_failed._status0x_x
mov edx, eax
call fcn.1400300fc
jmp 0x140033316
mov rax, qword [rsp + 0x28]
lea rcx, str._IsInteractiveUserloggedOn:_UserName.Length_d_LogonType_d
movzx edx, word [rax + 0x10]
mov r8d, dword [rax + 0x40]
call fcn.1400300fc
mov rcx, qword [rsp + 0x28]
mov word [rsp + 0x40], r12w
movzx eax, word [rcx + 0x10]
shr eax, 1
cmp qword [rcx + 0x18], r12
je 0x1400332d1
test eax, eax
je 0x1400332d1
mov r8, qword [rcx + 0x18]
mov edx, 0xff
cmp eax, 0x100
cmovae eax, edx
lea rcx, [rsp + 0x40]
mov edx, 0x100
mov r9d, eax
mov ebx, eax
call fcn.140060538
mov rcx, qword [rsp + 0x28]
mov word [rsp + rbx*2 + 0x40], r12w
mov edx, dword [rcx + 0x40]
cmp edx, 2
je 0x1400332ec
lea r8, [rsp + 0x40]
lea rcx, str.IsInteractiveUserloggedOn:_ignore_non_interactive__d__user__ls
call fcn.1400300fc
jmp 0x140033300
lea rdx, [rsp + 0x40]
lea rcx, str.IsInteractiveUserloggedOn:_found_interactive_user__ls
call fcn.1400300fc
mov sil, 1
lea rcx, str.IsInteractiveUserloggedOn:_calling_LsaFreeReturnBuffer_sessionData_...
call fcn.1400300fc
mov rcx, qword [rsp + 0x28]
call sub.Secur32.dll_LsaFreeReturnBuffer
inc edi
test sil, sil
jne 0x140033327
mov r8d, dword [rsp + 0x20]
jmp 0x140033229
lea rcx, str.IsInteractiveUserloggedOn:_LsaFreeReturnBuffer_sessions_...
call fcn.1400300fc
mov rcx, qword [rsp + 0x30]
call sub.Secur32.dll_LsaFreeReturnBuffer
lea rcx, str.IsInteractiveUserloggedOn:_exiting...
call fcn.1400300fc
mov al, sil
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14003338c
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
lea rax, [rsp + 0x50]
lea rdx, str.SYSTEMCurrentControlSet_services_bcbtums
lea r9d, [rbx + 3]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400333d4
lea rcx, str._DisableUheFstBoot:_RegOpenKeyEx_failed._err_d
mov edx, eax
call fcn.1400300fc
jmp 0x140033492
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.UheFstBoot
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140033425
mov bl, 1
cmp eax, 2
jne 0x14003341c
lea rcx, str.DisableUheFstBoot:_value_not_found
jmp 0x140033482
lea rcx, str._DisableUheFstBoot:_RegQueryValueEx_failed._err_d
jmp 0x140033470
cmp dword [rsp + 0x40], ebx
jne 0x140033434
lea rcx, str.DisableUheFstBoot:_disabled_already
jmp 0x140033480
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
lea rdx, str.UheFstBoot
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140033479
lea rcx, str._DisableUheFstBoot:_RegSetValueEx_failed._err_d
mov edx, eax
call fcn.1400300fc
jmp 0x140033487
lea rcx, str.DisableUheFstBoot:_disabled_successfully
mov bl, 1
call fcn.1400300fc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
add rsp, 0x30
pop rbx
ret

Function at 0x1400334ec
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [rcx + 0xb0]
mov rdx, qword [rcx + 0xa8]
mov rbx, rcx
lea rcx, str.CServiceModule::UnRegisterDeviceHandleNot:_hNotify_p_hBtDev_p_n
call fcn.1400300fc
mov rdx, qword [rbx + 0xa8]
test rdx, rdx
je 0x14003353b
mov r8, qword [rbx + 0xb0]
lea rcx, str.CServiceModule::UnRegisterDeviceHandleNot:_calling_UnregisterDeviceNotification..._hNotify_p_hBtDev_p_n
call fcn.1400300fc
mov rcx, qword [rbx + 0xa8]
call qword [sym.imp.USER32.dll_UnregisterDeviceNotification]
mov r8, qword [rbx + 0xb0]
and qword [rbx + 0xa8], 0
test r8, r8
je 0x14003356a
lea rcx, str.CServiceModule::UnRegisterDeviceHandleNot:_calling_CloseHandle..._hNotify_p_hBtDev_p_n
xor edx, edx
call fcn.1400300fc
mov rcx, qword [rbx + 0xb0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0xa8]
and qword [rbx + 0xb0], 0
lea rcx, str.CServiceModule::UnRegisterDeviceHandleNot:_exits..._hNotify_p_hBtDev_p_n
xor r8d, r8d
add rsp, 0x20
pop rbx
jmp fcn.1400300fc
Function at 0x14003398c
Capabilities:
Create process on windows
Get common file path
Get program files directory
Get startup folder

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor ebx, ebx
mov r12, rdx
mov rdi, rcx
mov esi, 1
test rcx, rcx
je 0x1400339ce
mov dword [rcx], esi
mov eax, 0x5c
lea rcx, [rbp - 0x1e]
xor edx, edx
mov r8d, 0x40e
mov word [rbp - 0x20], ax
call fcn.14005bab0
xor r9d, r9d
lea rdx, [rbp - 0x20]
lea r8d, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea rdx, str.WIDCOMMBluetooth_SoftwareBtwTracePktWpp.exe
lea rcx, [rbp - 0x20]
call fcn.14005ea78
lea rdx, [rbp - 0x20]
lea rcx, str.ExecuteTraceLogCmd____cmd:__s__s_n
mov r8, r12
call fcn.1400300fc
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x18]
call fcn.14005bab0
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call fcn.14005bab0
lea rax, [rsp + 0x50]
lea rcx, [rbp - 0x20]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x70], WSAGetLastError
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140033a9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ExecuteTraceLogCmd____CreateProcess___failed:__d_n
mov edx, eax
call fcn.1400300fc
xor eax, eax
jmp 0x140033b0a
test rdi, rdi
je 0x140033af2
mov rcx, qword [rsp + 0x50]
mov edx, 0xbb8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, ebx
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x140033aeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x140033af0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
add r12d, esi
cmp r12d, 0xbb8
jl 0x140033ab3
jmp 0x140033af0
cmp dword [rdi], ebx
sete bl
mov esi, ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1400345bc
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x50
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edi, edi
mov ebp, r9d
mov r12d, r8d
xor ebx, ebx
mov rsi, rdx
mov r13, rcx
jmp 0x140034612
mov eax, dword [rsp + 0x24]
cmp eax, 1
je 0x14003466f
cmp eax, 4
je 0x14003466f
cmp eax, 7
je 0x14003466f
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, ebp
cmp ebx, r12d
jae 0x140034660
mov rcx, r13
lea rdx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1400345ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.QueryServiceStatus_failed
mov r8d, eax
lea rcx, str.Bluetooth_Service::_s__d_n
call fcn.1400300fc
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14005ba20
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, 0x102
lea rdx, str.wait_service_pending_is_elapsed
jmp 0x140034631
mov edi, 1
test rsi, rsi
je 0x14003463d
mov dword [rsi], eax
jmp 0x14003463d
Function at 0x14003468c
Capabilities:
Start service
Stop service

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov edi, edx
lea rax, str.stop
mov r12d, r8d
mov rbx, rcx
mov r8, rcx
lea rdx, str.start
xor esi, esi
test edi, edi
lea rcx, str.Bluetooth_Service::BtControlService__s__s_n
cmovne rdx, rax
call fcn.1400300fc
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
jne 0x140034713
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenSCManager_failed
lea rcx, str.Bluetooth_Service::_s__d_n
mov r8d, eax
call fcn.1400300fc
jmp 0x14003485f
mov eax, edi
mov rdx, rbx
mov rcx, rbp
neg eax
sbb r8d, r8d
and r8d, 0x10
add r8d, 0x10
or r8d, 4
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14003475b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.OpenService_failed
lea rcx, str.Bluetooth_Service::_s__d_n
mov r8d, eax
call fcn.1400300fc
jmp 0x140034856
lea rdx, [rsp + 0x20]
mov r9d, 0x3e8
mov r8d, r12d
mov rcx, rax
call fcn.1400345bc
test eax, eax
jne 0x140034796
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.ServWaitPending_failed
mov r8d, eax
lea rcx, str.Bluetooth_Service::_s__d_n
call fcn.1400300fc
jmp 0x14003484d
test edi, edi
je 0x1400347e2
cmp dword [rsp + 0x20], 1
jne 0x1400347bc
lea rdx, str.service_is_already_stopped
lea rcx, str.Bluetooth_Service::_s__d_n
xor r8d, r8d
call fcn.1400300fc
jmp 0x14003484d
lea r8, [rsp + 0x28]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14003481a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.ControlService_failed
jmp 0x140034782
mov r8d, dword [rsp + 0x20]
cmp r8d, 1
je 0x1400347f6
lea rdx, str.service_is_already_started._State
jmp 0x140034785
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14003481a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.StartService_failed
jmp 0x140034782
lea rdx, [rsp + 0x20]
mov r9d, 0x3e8
mov r8d, r12d
mov rcx, rbx
mov esi, 1
call fcn.1400345bc
test eax, eax
je 0x140034775
mov edx, dword [rsp + 0x20]
lea rcx, str.Bluetooth_Service::BtControlService_succeeded._State_d__n
call fcn.1400300fc
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x14003556c
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
lea rbp, [rax - 0x1d58]
mov eax, 0x1e50
call fcn.14005ba50
sub rsp, rax
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x1d40], rax
lea rcx, str.Bluetooth_Service::Control_Install_USB_Filter
call fcn.1400300fc
xor esi, esi
lea rcx, str..BTUSBFLT
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 2]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140035600
lea rcx, str.Bluetooth_Service::already_installed_n
call fcn.1400300fc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140035791
mov r12d, 0x104
lea rcx, [rbp + 0x1b30]
mov edx, r12d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rdx, str.drivers_btusbflt.sys
lea rcx, [rbp + 0x1b30]
call fcn.14005ea78
mov rax, qword [str.BT2K_INS.dll]
lea rcx, [rbp + 0x1812]
mov qword [rbp + 0x17f0], rax
mov rax, qword [0x14009df60]
xor edx, edx
mov qword [rbp + 0x17f8], rax
mov rax, qword [0x14009df68]
mov r8d, 0x208
mov qword [rbp + 0x1800], rax
movzx eax, word [0x14009df70]
mov word [rbp + 0x1810], si
mov word [rbp + 0x1808], ax
call fcn.14005bab0
lea rcx, [rsp + 0x40]
call fcn.140026df4
lea rcx, [rsp + 0x40]
call fcn.140022d94
mov edx, r12d
lea rcx, [rbp + 0x1810]
test eax, eax
jne 0x1400356bf
lea rax, [rbp + 0x17f0]
lea r9, [rbp + 0x360]
lea r8, [0x14009a050]
mov qword [rsp + 0x20], rax
call fcn.14005ce1c
jmp 0x1400356d2
lea r9, [rbp + 0x17f0]
lea r8, [0x14009df50]
call fcn.14005ce1c
lea rcx, [rbp + 0x1810]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
jne 0x1400356f3
lea rcx, str.Bluetooth_Service::BT2K_INS_does_not_exist_n
jmp 0x14003578c
lea rdx, str.BT2K_InstallBTUSBFLT
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
jne 0x140035722
lea rcx, str.Bluetooth_Service::BT2K_INS_bad_n
call fcn.1400300fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140035791
mov qword [rsp + 0x38], rsi
lea rax, [rbp + 0x1a20]
mov qword [rsp + 0x30], rsi
lea r8, [rbp + 0x1b30]
or r9d, 0xffffffff
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 0x1a20]
mov edx, 1
call rbx
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x140035785
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Bluetooth_Service::installation_failed_0x_x_n
mov edx, eax
call fcn.1400300fc
jmp 0x140035791
lea rcx, str.Bluetooth_Service::installation_done_n
call fcn.1400300fc
mov rcx, qword [rbp + 0x1d40]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x1e50]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r12, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140035c3c
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rsi, [rcx + 8]
mov rdi, rcx
cmp dword [rsi], 0
je 0x140035d80
and qword [rbp - 0x48], 0
and dword [rbp - 0x40], 0
and qword [rbp - 0x38], 0
lea r8, str.SYSTEMCurrentControlSetControlCOM_Name_Arbiter
lea rcx, [rbp - 0x48]
mov r9d, 0x2001f
mov rdx, 0xffffffff80000002
call fcn.14003a60c
test eax, eax
je 0x140035cbf
lea rcx, str.Bluetooth_Service::could_not_open_COM_Name_Arbiter_n
call fcn.1400300fc
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140035d80
jmp 0x140035d7a
mov rbx, qword [rbp - 0x48]
and dword [rbp - 0x4c], 0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
lea r9, [rbp - 0x4c]
lea rdx, str.ComDB
mov r12d, 0x20
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x50], r12d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140035d0c
lea rcx, str.Bluetooth_Service::could_not_read_COM_Name_Arbiter_n
call fcn.1400300fc
jmp 0x140035d72
lea rax, [rbp - 0x30]
lea rcx, [rbp - 0x30]
sub rdi, rax
mov al, byte [rdi + rcx + 0xc]
not al
and byte [rcx], al
inc rcx
dec r12
jne 0x140035d17
mov eax, dword [rbp - 0x50]
lea r9d, [r12 + 3]
lea rdx, str.ComDB
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x30]
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140035d5f
lea rcx, str.Bluetooth_Service::could_not_write_COM_Name_Arbiter_n
call fcn.1400300fc
test rbx, rbx
je 0x140035d6f
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
and dword [rsi], 0
test rbx, rbx
je 0x140035d80
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret

Function at 0x140035e8c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
and qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov ebx, ecx
lea rdx, str.SOFTWAREWidcommBTConfigGeneralSetState
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140035efe
mov rcx, qword [rsp + 0x50]
lea r9d, [rax + 4]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], r9d
lea rdx, str.RadioSetState
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x48], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140035f0a
lea rcx, str.Failed_to_open_registry
call fcn.1400300fc
add rsp, 0x30
pop rbx
ret
Function at 0x14003608c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
lea rbp, [rsp - 0x270]
sub rsp, 0x370
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x260], rax
mov r12, rdx
mov rsi, rcx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x44]
xor ebx, ebx
mov dword [rsp + 0x44], 4
mov qword [rsp + 0x38], rbx
call sub.bthprops.cpl_BluetoothFindFirstRadio
mov rdi, rax
test rax, rax
jne 0x1400360ed
xor eax, eax
jmp 0x140036223
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x208
call sub.bthprops.cpl_BluetoothGetRadioInfo
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140036114
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call sub.bthprops.cpl_BluetoothFindRadioClose
mov r11, qword [rsp + 0x58]
mov edi, 0x100
lea r9, str.SYSTEMCurrentControlSetServicesBTHPORTParameters
lea r8, str._sKeys_012I64x
lea rcx, [rbp + 0x160]
mov edx, edi
mov qword [rsp + 0x20], r11
call fcn.14005d88c
lea r11, [rsp + 0x48]
lea rdx, [rbp + 0x160]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x140036185
lea rcx, str.FindLinkKey__:_RegOpenKeyEx_failed__d
mov edx, eax
call fcn.1400300fc
jmp 0x1400360e6
mov al, byte [rsi + 5]
mov qword [rsp + 0x30], rbx
lea r8, str._012I64x
mov byte [rsp + 0x30], al
mov al, byte [rsi + 4]
lea rcx, [rbp + 0x160]
mov byte [rsp + 0x31], al
mov al, byte [rsi + 3]
mov rdx, rdi
mov byte [rsp + 0x32], al
mov al, byte [rsi + 2]
mov byte [rsp + 0x33], al
mov al, byte [rsi + 1]
mov byte [rsp + 0x34], al
mov al, byte [rsi]
mov byte [rsp + 0x35], al
mov r9, qword [rsp + 0x30]
call fcn.14005d88c
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 0x160]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r12
mov dword [rsp + 0x40], socket
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test eax, eax
je 0x140036211
lea rcx, str.FindLinkKey__:_RegQueryValueExA_failed__d
mov edx, eax
call fcn.1400300fc
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete bl
mov eax, ebx
mov rcx, qword [rbp + 0x260]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rbp
ret
Function at 0x1400365bc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x20
mov ebx, edx
mov ebp, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, str.cfgmgr32.dll
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
jne 0x14003660c
lea rcx, str.CMP_WaitNoPendingInstallEvents2:_Could_not_load_cfgmgr32.dll
call fcn.1400300fc
jmp 0x140036693
lea rdx, str.CMP_WaitNoPendingInstallEvents
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r12, rax
test rax, rax
jne 0x140036671
lea rcx, str.CMP_WaitNoPendingInstallEvents2:_Could_not_find_function_CMP_WaitNoPendingInstallEvents_in_cfgmgr32.dll
jmp 0x140036685
mov ecx, ebx
sub ecx, eax
call r12
test eax, eax
jne 0x1400366bd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r14d, [rax + rbp]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call r12
test eax, eax
setne sil
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, r14d
jae 0x14003666c
test sil, sil
je 0x140036646
test sil, sil
je 0x1400366b2
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, r13d
cmp eax, ebx
jb 0x14003662d
lea rcx, str.CMP_WaitNoPendingInstallEvents2:_timeout_is_elapsed
call fcn.1400300fc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret
mov edx, ebp
lea rcx, str.CMP_WaitNoPendingInstallEvents2:_no_pending_events_during__d
jmp 0x1400366c6
mov edx, ebx
lea rcx, str.CMP_WaitNoPendingInstallEvents2:_timeout__d__or_failed
call fcn.1400300fc
jmp 0x14003668a

Function at 0x14003826c
Capabilities:
Delete registry value
Link many functions at runtime
Set registry value

Disassembly:
sub rsp, 0x28
xor edx, edx
call fcn.140036f6c
test eax, eax
jne 0x140038280
add rsp, 0x28
ret
xor edx, edx
movzx ecx, ax
add rsp, 0x28
jmp fcn.14002f6dc