joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f180
Capabilities:
Query or enumerate registry value
Query service status
Start service
Stop service

Disassembly:
push rsi
sub rsp, 0x290
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x280], rax
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movups xmm1, xmmword [0x140031e58]
mov esi, ecx
lea rcx, [rsp + 0xa8]
xor edx, edx
mov r8d, 0x1d0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x80], xmm1
movups xmm0, xmmword [0x140031e68]
movsd xmm1, qword [0x140031e78]
movaps xmmword [rsp + 0x90], xmm0
movsd qword [rsp + 0xa0], xmm1
call fcn.14001dd20
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x70]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000f3ab
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
lea rdx, str.ControlBthServ
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x14000f26a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000f3ab
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 1
jne 0x14000f3ab
lea rdx, str.StartBthService___d___n
mov r8d, esi
mov ecx, 1
mov qword [rsp + 0x2b0], rdi
call fcn.14001a330
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000f2c3
lea rdx, str.Open_Service_manager_error__n
lea ecx, [rax + 1]
call fcn.14001a330
jmp 0x14000f3a3
lea rdx, str.BthServ
mov r8d, 0x34
mov rcx, rax
mov qword [rsp + 0x2a8], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14000f306
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Open_BthServ_Service_error:__d___n
lea ecx, [rbx + 1]
mov r8d, eax
call fcn.14001a330
jmp 0x14000f392
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000f327
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Get_Service_state_error:__d___n
jmp 0x14000f37c
test esi, esi
jne 0x14000f356
cmp dword [rsp + 0x4c], 4
jne 0x14000f389
lea r8, [rsp + 0x48]
lea edx, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000f389
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.stop_service_error:__d___n
jmp 0x14000f37c
cmp dword [rsp + 0x4c], 1
jne 0x14000f389
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000f389
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.start_service_error:__d___n
mov r8d, eax
mov ecx, 1
call fcn.14001a330
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x2a8]
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x290
pop rsi
ret
Function at 0x14000f3d0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [0x1400460fc]
mov ebx, ecx
lea rcx, str.The_wakeup_time_is__d_n
call fcn.14000f070
lea rcx, str.The_current_time_is__d_n
mov edx, ebx
call fcn.14000f070
mov eax, dword [0x1400460fc]
mov r11d, ebx
sub r11d, eax
cmp r11d, 0x2710
jbe 0x14000f425
lea rcx, str.In_Function_IsResetRadioS3S4TimeOut____dwCurrent___g_dwTimeS3S4___RESETRADIOS3S4TIMEOUT__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
add rsp, 0x20
pop rbx
ret
cmp ebx, eax
jae 0x14000f441
lea rcx, str.In_Function_IsResetRadioS3S4TimeOut___gettickcount_is_out_of_date__so_return_TRUE__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x14000f450
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
lea rcx, str.Enter_Function_QueryRadioStatus____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor ebx, ebx
lea r8, [rsp + 0x30]
lea edx, [rbx + 1]
mov ecx, 0xfc72
mov dword [0x140046100], ebx
mov dword [0x140046128], ebx
mov byte [rsp + 0x30], 8
call fcn.140019f40
lea rcx, str.The_nexe_step_is_check_the_status_of_g_bisReceiveEvent__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x140046100], 0
jne 0x14000f4b0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x14000f495
lea rcx, str.Leave_Function_QueryRadioStatus____n
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
Function at 0x14000f810
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14000f450
mov r11d, dword [0x140046128]
cmp r11d, 1
jne 0x14000f935
xor ebx, ebx
cmp dword [0x140045d08], ebx
mov dword [0x1400460f8], ebx
je case.default.0x14000f848
lea rcx, str.radio_off_operator_on_progress__abort____r_n
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rcx, str.begin_trun_radio_off_r_n
mov dword [0x140045d08], 1
mov qword [0x140045f18], rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r8, [rsp + 0x30]
mov ecx, 0xfc72
mov edx, 1
mov byte [rsp + 0x30], 3
call fcn.140019f40
lea r8, [rsp + 0x30]
mov ecx, 0xfc72
mov edx, 1
mov byte [rsp + 0x30], 5
call fcn.140019f40
lea r8, [rsp + 0x30]
mov ecx, 0xfc72
mov edx, 1
mov byte [rsp + 0x30], 7
call fcn.140019f40
lea r8, [rsp + 0x30]
mov ecx, 0xfc72
mov edx, 1
mov byte [rsp + 0x30], bl
call fcn.140019f40
lea rcx, str.trun_radio_off_End_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x140045f18]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000f91b
lea rcx, str.WaitForSingleObject_g_hRadioLockEvent__5000__is_timeout____r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x140045d08], ebx
mov rcx, qword [0x140045f18]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140045f18], rbx
add rsp, 0x20
pop rbx
ret
cmp r11d, 2
jne case.default.0x14000f94f
xor ebx, ebx
lea rcx, str.In_condition__g_RadioStatus__RadioStatus_OFF__radio_on_off_status_updated_r_n
mov dword [0x1400460f8], ebx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r11d, r11d
jne 0x14000f9a5
mov edx, dword [0x1400460f8]
lea rcx, str.Enter_else_if_g_RadioStatus__RadioStatus_NULL___the_value_of_g_isRecoverfromS3S4_is__d_n
call fcn.14000f070
cmp dword [0x1400460f8], 0
je 0x14000f9ad
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.14000f3d0
test eax, eax
je 0x14000f99b
xor ebx, ebx
mov dword [0x1400460fc], ebx
mov dword [0x1400460f8], ebx
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140002a40
xor ebx, ebx
mov dword [0x1400460f8], ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14000f9c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rax, qword [str..ATHAMPFL]
xor edi, edi
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], rax
mov rax, qword [0x140037a68]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x58], rax
mov rax, qword [0x140037a70]
xor r9d, r9d
mov qword [rsp + 0x60], rax
movzx eax, word [0x140037a78]
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov word [rsp + 0x68], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000fa57
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_l2cap_disconnect_all__INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000fab1
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r9d, 8
mov edx, 0x2a0508
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x48], edi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000faa8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_l2cap_disconnect_all__error__x_n
mov edx, eax
call fcn.14000f070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14001a650
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14000fad0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [str..ATHAMPFL]
xor edi, edi
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov rax, qword [0x140037a68]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x50], rax
mov rax, qword [0x140037a70]
xor r9d, r9d
mov qword [rsp + 0x58], rax
movzx eax, word [0x140037a78]
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x40], edi
mov word [rsp + 0x60], ax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000fb68
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_fake_disconnect_event__INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14000fbc3
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x2a0518
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14000fbae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_fake_disconnect_event__error__x_n
mov edx, eax
call fcn.14000f070
jmp 0x14000fbba
lea rcx, str.ath_fake_disconnect_event_success__n
call fcn.14000f070
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14001a650
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x140010e30
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x60
movzx ebp, cl
lea rcx, str.DisableBTENUMDevice_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rax, str.remove
lea rbx, str.USB_
mov qword [rsp + 0x30], rax
lea rax, str.BTHMS_BTHBRB
lea r12, str.enable
mov qword [rsp + 0x38], rax
lea rax, str.BTHMS_BTHLE
lea rsi, str.disable
lea rcx, str.Device_instance_PVID__s_n
mov rdx, rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x28], rsi
call fcn.14000f070
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
lea rax, str.USBClass_E0
not rcx
dec rcx
lea rcx, str.argv2_5_:__s_n
cmove rbx, rax
mov rdx, rbx
mov qword [rsp + 0x48], rbx
call fcn.14000f070
lea rdx, str.BTHENUM
lea rax, str.rescan
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
test bpl, bpl
je 0x140010f30
lea rcx, str.__BT_Radio___n
call fcn.14000f070
lea rcx, str.cmdDisableEnable_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
lea r9, [rsp + 0x48]
cmovne rsi, r12
mov r8d, 1
movzx ecx, bpl
mov rdx, rsi
call fcn.1400085d0
mov ecx, 0x7d0
jmp 0x140010f86
lea rcx, str.radio_on_off_status_updated_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.__BT_BTHENUM_DEVICES__e_n
call fcn.14000f070
lea rcx, str.cmdDisableEnable_Start_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r9, [rsp + 0x48]
mov r8d, 1
mov rdx, rsi
xor ecx, ecx
call fcn.1400085d0
lea rcx, str.cmdDisableEnable_____r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x140046124], 0
jne 0x140010f8c
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, str.radio_Rescan_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, str.DisableBTENUMDevice_End_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea r11, [rsp + 0x60]
mov al, 1
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x1400110a0
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14001112e
lea r8, [rsp + 0x38]
lea rdx, str.SeShutdownPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x30]
test eax, eax
je 0x140011128
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x44], rax
xor eax, eax
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x80010002
mov dword [rsp + 0x20], 1
call qword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x68
ret
Function at 0x140011670
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbp, rcx
mov ecx, 0x1002
mov rsi, rdx
mov eax, 2
mov r12, 0xffffffffffffffff
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.14001c224
mov rdi, rax
test rax, rax
jne 0x1400116b9
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x60], 0x2000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140011761
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140011781
cmp dword [rsp + 0x68], 7
jne 0x140011781
mov ebx, dword [rsp + 0x60]
mov rcx, rdi
call fcn.14001b480
mov r11d, ebx
mov eax, 2
shr r11, 1
add r11, 2
mul r11
cmovo rax, r12
mov rcx, rax
call fcn.14001c224
mov rdi, rax
test rax, rax
je 0x14001178e
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400116f0
mov ecx, dword [rsp + 0x60]
xor edx, edx
shr ecx, 1
lea eax, [rcx + 1]
mov word [rdi + rcx*2], dx
mov rcx, rdi
mov word [rdi + rax*2], dx
call fcn.1400112a0
test rax, rax
jne 0x140011790
test rdi, rdi
je 0x14001178e
mov rcx, rdi
call fcn.14001b480
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400146a0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
push r12
sub rsp, 0x60
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor esi, esi
mov r12, rcx
lea rdx, str.Enter_EnumerateHostController___n
lea ecx, [rsi + 2]
mov dword [rsp + 0x40], esi
mov ebx, esi
call fcn.14001a330
lea rcx, str.Enter_EnumerateHostController___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x220408
mov rcx, r12
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14001472c
lea rcx, str.Enter_if___DeviceIoControl_sizeof_rootHubName___nBytes__NULL___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001484b
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rdi
mov edi, dword [rsp + 0x44]
mov ecx, edi
mov dword [rsp + 0x40], edi
call fcn.14001ab78
mov rbp, rax
test rax, rax
jne 0x140014767
lea rcx, str.Enter_if__rootHubNameW__NULL__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x14001483b
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov edx, 0x220408
mov rcx, r12
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400147a6
lea rcx, str.Enter_if___DeviceIoControl_nBytes__nBytes__NULL___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140014806
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 4]
repne scasw ax, word [rdi]
not rcx
lea rcx, [rcx + rcx + 8]
call fcn.14001ab78
mov rbx, rax
test rax, rax
je 0x140014806
lea r8, str.._
mov edx, 5
mov rcx, rax
call fcn.14001af54
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 4]
lea r8, [rbp + 4]
repne scasw ax, word [rdi]
not rcx
mov rdx, rcx
lea rcx, [rbx + 8]
call fcn.14001af54
mov rcx, rbx
call fcn.140014170
mov esi, eax
mov rcx, rbp
call fcn.14001a988
test rbx, rbx
je 0x14001481b
mov rcx, rbx
call fcn.14001a988
lea rdx, str.Leave_EnumerateHostController___n
mov ecx, 2
call fcn.14001a330
lea rcx, str.Leave_EnumerateHostController___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x60
pop r12
pop rsi
pop rbx
ret
Function at 0x140014d70
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor esi, esi
lea rdx, str.ForceHCResetOnResume
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rsi
mov rbx, rcx
mov dword [rsp + 0x60], 1
mov dword [rsp + 0x68], 4
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, str.Start_to_write_reg_key___2_
cmp eax, 2
mov ecx, 4
sete sil
call fcn.14001a330
lea r11, [rsp + 0x30]
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014ecf
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x68]
lea rdx, str.ResetKeyAddded
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea rdx, str.Start_to_write_reg_key___3_
mov ecx, 4
call fcn.14001a330
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea rdx, str.ResetKeyAddded
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test esi, esi
je 0x140014ea4
mov rcx, qword [rsp + 0x30]
lea rdx, str.ForceResetKey
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rsp + 0x60]
lea rdx, str.ForceHCResetOnResume
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140015960
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov dword [rsp + 0x40], 0xffffffff
mov dword [rsp + 0x48], 4
test rcx, rcx
jne 0x140015987
or eax, 0xffffffff
add rsp, 0x30
pop rbx
ret
lea rax, [rsp + 0x50]
lea rdx, str.SOFTWAREATHEROSVistaAddOn
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015a1d
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015a0a
mov r8d, dword [rsp + 0x40]
lea rdx, str.Read__d_from_reg__s__n
lea ecx, [rax + 2]
mov r9, rbx
call fcn.14001a330
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rsp + 0x50]
mov dword [rsp + 0x40], 0xffffffff
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret

Function at 0x140015a30
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov r8d, ecx
lea r9, str.ControllerIndex
lea rdx, str.Set_value__d_into_reg__s__n
mov ecx, 2
call fcn.14001a330
lea r11, [rsp + 0x48]
lea rdx, str.SOFTWAREAtherosVistaAddOn
mov r9d, 2
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015ab6
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.ControllerIndex
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x140015ac0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov ebx, ecx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x20c
mov dword [rsp + 0x20], 0
call fcn.14001dd20
lea rcx, str.Enter_USBRootHubAndHCReset____n_n
call fcn.14000f070
lea rcx, [rsp + 0x20]
call fcn.1400155d0
test eax, eax
jne 0x140015b24
lea rcx, str.USBRootHubAndHCReset__GetBTAdapterStatus_failed____n
call fcn.14000f070
xor eax, eax
jmp 0x140015c4f
mov edx, dword [rsp + 0x20]
lea rcx, str.USBRootHubAndHCReset__dongle_status_is__d____n
call fcn.14000f070
lea rcx, str.Enter_Function_DisableRadioHandler__n_n
mov dword [0x140046130], 1
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x140045ce0]
xor r9d, r9d
lea r8d, [r9 + 1]
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
lea rcx, str.Enter_Function_DisableRadioHandler__n_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [0x140045ce0]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x5e5d
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call fcn.1400155d0
test eax, eax
je 0x140015b11
mov edx, dword [rsp + 0x20]
lea rcx, str.USBRootHubAndHCReset__after_off_on_radio__dongle_status_is__d_n
call fcn.14000f070
cmp dword [rsp + 0x20], 1
je 0x140015c4a
lea rcx, str.USBRootHubAndHCReset__USBRootHubReset__index_is__d____n
mov edx, ebx
call fcn.14000f070
mov ecx, ebx
call fcn.1400153c0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call fcn.1400155d0
test eax, eax
je 0x140015b11
mov edx, dword [rsp + 0x20]
lea rcx, str.USBRootHubAndHCReset__after_USBRootHubReset__dongle_status_is__d____n
call fcn.14000f070
cmp dword [rsp + 0x20], 1
je 0x140015c4a
lea rcx, str.USBRootHubAndHCReset__USBControllerReset__index_is__d____n
mov edx, ebx
call fcn.14000f070
mov ecx, ebx
call fcn.140014a00
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call fcn.1400155d0
test eax, eax
je 0x140015b11
mov edx, dword [rsp + 0x20]
lea rcx, str.USBRootHubAndHCReset__after_USBControllerReset__dongle_status_is__d___n
call fcn.14000f070
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x240
pop rbx
ret
Function at 0x1400160e0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x140043468]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rcx, str.Enter_function_BOOL_CheckAndRecoverDevice___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x24]
xor ebx, ebx
xor edx, edx
mov r8d, 0x20c
mov dword [rsp + 0x20], ebx
call fcn.14001dd20
lea rcx, [rsp + 0x20]
call fcn.1400155d0
cmp dword [rsp + 0x20], 2
jne 0x140016143
lea rcx, str.Status.configStatus__DeviceNotConfigurate_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, 1
lea rcx, [rsp + 0x20]
call fcn.140015c70
mov eax, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14001a650
add rsp, 0x240
pop rbx
ret