joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bbe0
Capabilities:
Query or enumerate registry key

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x428]
sub rsp, 0x500
mov qword [rbp - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
mov r13, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.14000c940
xor r14d, r14d
mov word [rbp - 0x30], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp - 0x2e]
call fcn.14001cc90
mov dword [rsp + 0x64], 0x104
mov dword [rsp + 0x60], r14d
mov qword [rsp + 0x70], r14
cmp qword [rdi + 0x18], 8
jb 0x14000bc5d
mov rdi, qword [rdi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000bdf9
lea rax, [rbp - 0x80]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x74]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x64]
lea rdx, [rbp - 0x30]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edx, dword [rsp + 0x60]
test edx, edx
je 0x14000bdf9
mov r12d, r14d
nop dword [rax]
mov dword [rsp + 0x68], 0x104
lea rax, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x68]
lea r8, [rbp + 0x1e0]
mov edx, r12d
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000bdf9
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r14
mov word [rbp - 0x60], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1e0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp + 0x1e0]
lea rcx, [rbp - 0x60]
call fcn.14000ce60
nop
lea rsi, [rbp - 0x60]
mov r8, qword [rbp - 0x60]
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
cmovae rsi, r8
lea rcx, [rbp - 0x60]
cmovae rcx, r8
mov rax, qword [rbp - 0x50]
lea rdi, [rcx + rax*2]
lea rbx, [rbp - 0x60]
cmovae rbx, r8
cmp rbx, rdi
je 0x14000bdc5
sub rsi, rbx
nop
movzx ecx, word [rbx]
call fcn.14001b18c
mov word [rsi + rbx], ax
add rbx, 2
cmp rbx, rdi
jne 0x14000bdb0
lea rcx, [rbp - 0x60]
call fcn.14000b760
lea rdx, [rbp - 0x60]
mov rcx, r13
call fcn.14000c850
nop
cmp qword [rbp - 0x48], 8
jb 0x14000bdeb
mov rcx, qword [rbp - 0x60]
call fcn.14001a248
inc r12d
cmp r12d, dword [rsp + 0x60]
jb 0x14000bd00
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140019650
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x14000e580
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x830
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x820], rax
mov rbx, rcx
xor eax, eax
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x20], ax
call fcn.14001cc90
lea r8, [rsp + 0x848]
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.14001a3a4
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.140019650
add rsp, 0x830
pop rbx
ret

Function at 0x14000e610
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
test rax, rax
jne 0x14000e661
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WhqlRunning__CreateToolhelp32Snapshot_failed____x
lea ecx, [rbx + 1]
mov r8d, eax
call fcn.140019330
xor eax, eax
jmp 0x14000e6fa
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x14000e6a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str._WhqlRunning__Process32First_failed____x
mov ecx, 1
mov r8d, eax
call fcn.140019330
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x14000e6fa
xor edi, edi
lea rdx, str.Mjolnir.exe
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x14000e6ea
lea rdx, str.Mjolnir_win
lea rcx, [rsp + 0x4c]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
lea rcx, [rsp + 0x4c]
cmp rax, rcx
je 0x14000e6ea
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14000e6a4
jmp 0x14000e6ef
mov edi, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140019650
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x14000e720
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, ebx
jae 0x14000e757
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, ebx
jb 0x14000e740
lea rcx, str.The_waiting_time_is__d_n
mov edx, ebx
call fcn.14000e580
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x14000e780
Capabilities:
Query or enumerate registry value
Query service status
Start service
Stop service

Disassembly:
push rsi
sub rsp, 0x290
mov rax, qword [0x140040468]
xor rax, rsp
mov qword [rsp + 0x280], rax
movups xmm0, xmmword [str.SOFTWAREAtherosVistaAddOn]
movups xmm1, xmmword [0x140030990]
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 [0x1400309a0]
movsd xmm1, qword [0x1400309b0]
movaps xmmword [rsp + 0x90], xmm0
movsd qword [rsp + 0xa0], xmm1
call fcn.14001cc90
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 0x14000e9ab
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 0x14000e86a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000e9ab
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x30], 1
jne 0x14000e9ab
lea rdx, str.StartBthService___d___n
mov r8d, esi
mov ecx, 1
mov qword [rsp + 0x2b0], rdi
call fcn.140019330
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14000e8c3
lea rdx, str.Open_Service_manager_error__n
lea ecx, [rax + 1]
call fcn.140019330
jmp 0x14000e9a3
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 0x14000e906
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.140019330
jmp 0x14000e992
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000e927
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.Get_Service_state_error:__d___n
jmp 0x14000e97c
test esi, esi
jne 0x14000e956
cmp dword [rsp + 0x4c], 4
jne 0x14000e989
lea r8, [rsp + 0x48]
lea edx, [rsi + 1]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x14000e989
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.stop_service_error:__d___n
jmp 0x14000e97c
cmp dword [rsp + 0x4c], 1
jne 0x14000e989
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x14000e989
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.start_service_error:__d___n
mov r8d, eax
mov ecx, 1
call fcn.140019330
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.140019650
add rsp, 0x290
pop rsi
ret
Function at 0x14000e9d0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [0x14004370c]
mov ebx, ecx
lea rcx, str.The_wakeup_time_is__d_n
call fcn.14000e580
lea rcx, str.The_current_time_is__d_n
mov edx, ebx
call fcn.14000e580
mov eax, dword [0x14004370c]
mov r11d, ebx
sub r11d, eax
cmp r11d, 0x2710
jbe 0x14000ea25
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 0x14000ea41
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 0x14000ea50
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 [0x140043710], ebx
mov dword [0x140043740], ebx
mov byte [rsp + 0x30], 8
call fcn.140018ed0
lea rcx, str.The_nexe_step_is_check_the_status_of_g_bisReceiveEvent__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x140043710], 0
jne 0x14000eab0
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0x32
jl 0x14000ea95
lea rcx, str.Leave_Function_QueryRadioStatus____n
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
Function at 0x14000ee10
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14000ea50
mov r11d, dword [0x140043740]
cmp r11d, 1
jne 0x14000ef35
xor ebx, ebx
cmp dword [0x140043328], ebx
mov dword [0x140043708], ebx
je case.default.0x14000ee48
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 [0x140043328], 1
mov qword [0x140043538], 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.140018ed0
lea r8, [rsp + 0x30]
mov ecx, 0xfc72
mov edx, 1
mov byte [rsp + 0x30], 5
call fcn.140018ed0
lea r8, [rsp + 0x30]
mov ecx, 0xfc72
mov edx, 1
mov byte [rsp + 0x30], 7
call fcn.140018ed0
lea r8, [rsp + 0x30]
mov ecx, 0xfc72
mov edx, 1
mov byte [rsp + 0x30], bl
call fcn.140018ed0
lea rcx, str.trun_radio_off_End_r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [0x140043538]
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000ef1b
lea rcx, str.WaitForSingleObject_g_hRadioLockEvent__5000__is_timeout____r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x140043328], ebx
mov rcx, qword [0x140043538]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140043538], rbx
add rsp, 0x20
pop rbx
ret
cmp r11d, 2
jne case.default.0x14000ef4f
xor ebx, ebx
lea rcx, str.In_condition__g_RadioStatus__RadioStatus_OFF__radio_on_off_status_updated_r_n
mov dword [0x140043708], ebx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test r11d, r11d
jne 0x14000efa5
mov edx, dword [0x140043708]
lea rcx, str.Enter_else_if_g_RadioStatus__RadioStatus_NULL___the_value_of_g_isRecoverfromS3S4_is__d_n
call fcn.14000e580
cmp dword [0x140043708], 0
je 0x14000efad
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.14000e9d0
test eax, eax
je 0x14000ef9b
xor ebx, ebx
mov dword [0x14004370c], ebx
mov dword [0x140043708], ebx
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140001b00
xor ebx, ebx
mov dword [0x140043708], ebx
add rsp, 0x20
pop rbx
ret
add al, 0xd2
stosd dword [rdi], eax
Function at 0x14000efc0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140040468]
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 [0x140035848]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x58], rax
mov rax, qword [0x140035850]
xor r9d, r9d
mov qword [rsp + 0x60], rax
movzx eax, word [0x140035858]
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 0x14000f057
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 0x14000f0b1
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 0x14000f0a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_l2cap_disconnect_all__error__x_n
mov edx, eax
call fcn.14000e580
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140019650
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14000f0d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140040468]
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 [0x140035848]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x50], rax
mov rax, qword [0x140035850]
xor r9d, r9d
mov qword [rsp + 0x58], rax
movzx eax, word [0x140035858]
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 0x14000f168
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 0x14000f1c3
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 0x14000f1ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ath_fake_disconnect_event__error__x_n
mov edx, eax
call fcn.14000e580
jmp 0x14000f1ba
lea rcx, str.ath_fake_disconnect_event_success__n
call fcn.14000e580
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140019650
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x1400104f0
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.14000e580
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.14000e580
lea rdx, str.BTHENUM
lea rax, str.rescan
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
test bpl, bpl
je 0x1400105f0
lea rcx, str.__BT_Radio___n
call fcn.14000e580
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.140007af0
mov ecx, 0x7d0
jmp 0x140010646
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.14000e580
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.140007af0
lea rcx, str.cmdDisableEnable_____r_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x14004373c], 0
jne 0x14001064c
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 0x140010760
Capabilities:
Shutdown system

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140040468]
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 0x1400107ee
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 0x1400107e8
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.140019650
add rsp, 0x68
ret
Function at 0x140010d50
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.14001b224
mov rdi, rax
test rax, rax
jne 0x140010d99
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 0x140010e41
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x140010e61
cmp dword [rsp + 0x68], 7
jne 0x140010e61
mov ebx, dword [rsp + 0x60]
mov rcx, rdi
call fcn.14001a248
mov r11d, ebx
mov eax, 2
shr r11, 1
add r11, 2
mul r11
cmovo rax, r12
mov rcx, rax
call fcn.14001b224
mov rdi, rax
test rax, rax
je 0x140010e6e
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 0x140010dd0
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.140010960
test rax, rax
jne 0x140010e70
test rdi, rdi
je 0x140010e6e
mov rcx, rdi
call fcn.14001a248
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 0x140013920
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
push r12
sub rsp, 0x60
mov rax, qword [0x140040468]
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.140019330
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 0x1400139ac
lea rcx, str.Enter_if___DeviceIoControl_sizeof_rootHubName___nBytes__NULL___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140013acb
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.1400199c8
mov rbp, rax
test rax, rax
jne 0x1400139e7
lea rcx, str.Enter_if__rootHubNameW__NULL__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140013abb
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 0x140013a26
lea rcx, str.Enter_if___DeviceIoControl_nBytes__nBytes__NULL___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140013a86
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 4]
repne scasw ax, word [rdi]
not rcx
lea rcx, [rcx + rcx + 8]
call fcn.1400199c8
mov rbx, rax
test rax, rax
je 0x140013a86
lea r8, str.._
mov edx, 5
mov rcx, rax
call fcn.140019d1c
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.140019d1c
mov rcx, rbx
call fcn.140013390
mov esi, eax
mov rcx, rbp
call fcn.140019988
test rbx, rbx
je 0x140013a9b
mov rcx, rbx
call fcn.140019988
lea rdx, str.Leave_EnumerateHostController___n
mov ecx, 2
call fcn.140019330
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.140019650
add rsp, 0x60
pop r12
pop rsi
pop rbx
ret