joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140044a50
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, str.hid.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400dd4f0], rax
test rax, rax
je 0x140044b65
lea rdx, str.HidD_GetFeature
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400dd4f0]
lea rdx, str.HidP_GetCaps
mov qword [0x1400dd4f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400dd4f0]
lea rdx, str.HidD_FreePreparsedData
mov qword [0x1400dd500], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400dd4f0]
lea rdx, str.HidD_SetFeature
mov qword [0x1400dd508], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400dd4f0]
lea rdx, str.HidD_GetAttributes
mov qword [0x1400dd510], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400dd4f0]
lea rdx, str.HidP_GetSpecificButtonCaps
mov qword [0x1400dd518], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400dd4f0]
lea rdx, str.HidD_GetHidGuid
mov qword [0x1400dd520], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400dd4f0]
lea rdx, str.HidD_GetPreparsedData
mov qword [0x1400dd528], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400dd4f0]
lea rdx, str.HidP_GetSpecificValueCaps
mov qword [0x1400dd530], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400dd538], rax
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140044e84
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x48]
lea rdx, str.SoftwareWidcommBtConfigDebug
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140044ef4
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.BtwCPTraceFlag
mov qword [rsp + 0x28], rax
lea rax, [0x1400dd4e8]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret

Function at 0x140044ff4
Capabilities:
Print debug messages

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
sub rsp, 0x818
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x800], rax
cmp dword [0x1400dd4e8], 0
je 0x14004507a
lea rax, [r11 + 0x10]
mov r9, rcx
lea rcx, [rsp + 0x30]
or r8, 0xffffffffffffffff
mov edx, 0x3e7
mov qword [rsp + 0x20], rax
call fcn.14005ffbc
lea r8, [0x1400ad0f0]
lea rcx, [rsp + 0x30]
mov edx, 0x3e8
call fcn.1400600ac
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdx, [rsp + 0x30]
lea rcx, [0x1400dd568]
call fcn.140044d44
mov rcx, qword [rsp + 0x800]
xor rcx, rsp
call fcn.14005ba20
add rsp, 0x818
ret
Function at 0x1400458b4
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor edx, edx
lea r8, str.GlobalBTW_BUTTON_PRESS_EVENT_NAME
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_OpenEventW]
mov rbx, rax
test rax, rax
jne 0x1400458ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.Btwdins:_button_press_events_not_found:__d_n
mov edx, eax
add rsp, 0x20
pop rbx
jmp fcn.140044ff4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]

Function at 0x140045914
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x260], rax
movzx eax, byte [rcx + 5]
movzx r10d, byte [rcx + 4]
movzx r11d, byte [rcx + 3]
and qword [rsp + 0x40], 0
mov dword [rsp + 0x38], eax
mov rdi, rdx
mov rdx, rcx
movzx ecx, byte [rcx + 2]
mov dword [rsp + 0x30], r10d
movzx r9d, byte [rdx + 1]
mov dword [rsp + 0x28], r11d
mov esi, r8d
movzx r8d, byte [rdx]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x50]
lea rdx, str.SoftwareWIDCOMMBTConfigDevices_02x:_02x:_02x:_02x:_02x:_02x
call fcn.14003aa44
mov byte [rdi], 0
mov ebx, 0x20019
call fcn.140044f44
mov ecx, 0x20119
lea rdx, [rsp + 0x50]
test eax, eax
lea rax, [rsp + 0x40]
cmovne ebx, ecx
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov r9d, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400459cb
lea rcx, str.Btwdins:_Error_getting_HID_device_name_from_registry:__x_n
mov edx, eax
call fcn.140044ff4
jmp 0x140045a01
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
lea rdx, [0x1400981a8]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x48], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005ba20
add rsp, 0x270
pop rdi
pop rsi
pop rbx
ret
Function at 0x140045e84
Capabilities:
Create thread

Disassembly:
push rbx
mov eax, 0x32e0
call fcn.14005ba50
sub rsp, rax
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x32d0], rax
mov rbx, rcx
lea rcx, str.Btwdins:_CDongleButton::ListenForButtonPress__
call fcn.140044ff4
lea rcx, [rsp + 0x30]
call fcn.1400261f4
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x448], 0xffffffff80000002
call fcn.140022d94
cmp dword [rsp + 0x2c48], 0
jne 0x140045ee5
xor eax, eax
jmp 0x140045f68
mov rcx, qword [0x1400dd548]
test rcx, rcx
je 0x140045f12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140045f63
mov rcx, qword [0x1400dd548]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x1400dd548], 0
mov rcx, qword [0x1400dd540]
test rcx, rcx
je 0x140045f26
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x140045f3d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x1400dd540], rax
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140045be4]
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400dd548], rax
mov eax, 1
mov rcx, qword [rsp + 0x32d0]
xor rcx, rsp
call fcn.14005ba20
add rsp, 0x32e0
pop rbx
ret
Function at 0x140049310
Capabilities:
Create thread

Disassembly:
mov eax, 0x32e8
call fcn.14005ba50
sub rsp, rax
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x32d0], rax
cmp byte [0x1400dbeb8], 0
je 0x140036b02
lea rcx, str.DelayedRestartBtDevOnErr43:_thread_is_running_already_n
call fcn.1400300fc
jmp 0x140036b7a
lea rcx, [rsp + 0x30]
call fcn.1400261f4
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x448], 0xffffffff80000002
call fcn.140022d94
mov edx, dword [rsp + 0x2e58]
lea rcx, str.DelayedRestartBtDevOnErr43:_m_dwRestartBtDevOnErr43DelayMs:_d_n
call fcn.1400300fc
mov r11d, dword [rsp + 0x2e58]
mov eax, 0xea60
test r11d, r11d
cmove r11d, eax
cmp r11d, 0x493e0
jae 0x140036b7a
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x1400369bc]
mov r9d, r11d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x32d0]
xor rcx, rsp
call fcn.14005ba20
add rsp, 0x32e8
ret
sub rsp, 0x28
lea rcx, [0x1400dbeb9]
call fcn.140045e84
xor ecx, ecx
call fcn.140003fe0
lea rcx, [0x1400dfff0]
call fcn.1400485a0
add rsp, 0x28
jmp 0x140036acc
Function at 0x140049600
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x40
mov sil, r8b
mov bpl, dl
mov r8b, dl
mov rdx, rcx
mov rdi, rcx
lea rax, [r11 + 0x20]
lea rcx, [0x1400e0000]
lea r9, [r11 - 0x18]
mov qword [r11 - 0x28], rax
call fcn.140047a80
mov rbx, rax
test rax, rax
jne 0x14004965f
lea rcx, str.UpdateInstalledHidDevs:_ignore_notification_bMouse_d_bArrival_d_strName_s_n
movzx r8d, bpl
movzx edx, sil
mov r9, rdi
call fcn.1400300fc
jmp 0x1400497c6
mov rdx, rax
mov cl, bpl
call fcn.140047180
mov rdx, rbx
test bpl, bpl
jne 0x14004969b
movzx eax, byte [rsp + 0x68]
movzx r9d, byte [rsp + 0x30]
lea rcx, str.UpdateInstalledHidDevs:_ignore_removal_notification_iAddr_012I64x_bMouse_d_bMouseCod_d_bHidCod_d_strName_s_n
movzx r8d, sil
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
call fcn.1400300fc
jmp 0x1400497c6
cmp byte [rsp + 0x68], 0
jne 0x1400496ba
lea rcx, str.UpdateInstalledHidDevs:_do_not_add_non_HID_COD_to_the_dongle_iAddr_012I64x_bMouse_d_strName_s_n
movzx r8d, sil
mov r9, rdi
call fcn.1400300fc
jmp 0x1400497c6
cmp qword [0x1400dffe0], 0
je 0x1400496d6
movzx r9d, byte [rsp + 0x30]
lea rcx, str._UpdateInstalledHidDevs:_Thread_is_running_already._iAddr_012I64x_bMouse_d_bMouseCod_d_strName_s_n
jmp 0x1400497b8
mov rcx, qword [0x1400e0000]
lea r8, [rsp + 0x68]
mov byte [rsp + 0x68], 0
call fcn.14005a3d4
test al, al
jne 0x1400496f9
lea rcx, str._UpdateInstalledHidDevs:_BtwProvisionedHidDevsGetHidBootModeAttr_failed_n
jmp 0x140049707
cmp byte [rsp + 0x68], 0
jne 0x140049740
lea rcx, str.UpdateInstalledHidDevs:_HidBootMode_attr__0._Do_not_save_HID_to_dongle._n
call fcn.1400300fc
cmp byte [rsp + 0x68], 0
jne 0x140049740
mov rcx, rbx
call fcn.140046fe0
test eax, eax
jne 0x140049737
lea rcx, str.UpdateInstalledHidDevs:_HID_is_not_connected_n
mov dword [0x1400dd570], 1
call fcn.1400300fc
jmp 0x14004974a
and dword [0x1400dd570], 0
jmp 0x14004974a
mov dword [0x1400dd570], 1
mov rax, qword [0x1400e0000]
movzx ebp, byte [rsp + 0x30]
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140046e50]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [0x1400dd580], rax
mov dword [0x1400dd574], ebp
mov qword [0x1400dd578], rbx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x1400dffe0], rax
test rax, rax
jne 0x1400497ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._UpdateInstalledHidDevs:_CreateThread_failed._err_d_n
mov edx, eax
call fcn.1400300fc
jmp 0x1400497c6
mov r9d, ebp
mov rdx, rbx
lea rcx, str.UpdateInstalledHidDevs:_created_thread_for_iAddr_012I64x_bMouse_d_bMouseCod_d_strName_s_n
movzx r8d, sil
mov qword [rsp + 0x20], rdi
call fcn.1400300fc
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14004a010
Capabilities:
Create thread

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x140
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, rdx
mov r9, rdx
mov edx, dword [rcx + 0xc]
movzx esi, r8b
mov rbx, rcx
lea rcx, str.CWaitWakeEnabledHidDevs::OnHidArrived:_m_dwResumeTimeSec_d_bKeyboard_d_strName_ls_n
mov r8d, esi
call fcn.1400300fc
cmp dword [rbx + 0xc], 0
je 0x14004a16c
call fcn.140048510
sub eax, dword [rbx + 0xc]
cmp eax, 0x3c
jb 0x14004a080
lea rcx, str.CWaitWakeEnabledHidDevs::OnHidArrived:_more_then_60_second_passed_since_resume._Reset_everything_n
call fcn.1400300fc
and dword [rbx + 0xc], 0
mov rcx, rbx
call fcn.140047d60
jmp 0x14004a16c
lea rdx, [rsp + 0x30]
mov r8d, 0x100
mov rcx, rdi
call fcn.140048650
test al, al
jne 0x14004a0a3
lea rcx, str._CWaitWakeEnabledHidDevs::OnHidArrived:_SymbolicNameToInstanceId_failed_n
jmp 0x14004a167
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140047e30
test al, al
jne 0x14004a0c0
lea rcx, str.CWaitWakeEnabledHidDevs::OnHidArrived:_no_such_HID_n
jmp 0x14004a167
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140047e90
mov ecx, sendto
call fcn.14005da2c
mov rbx, rax
test rax, rax
je 0x14004a0f2
lea rcx, [rsp + 0x30]
call fcn.140061a2c
mov byte [rbx + 8], sil
mov qword [rbx], rax
jmp 0x14004a0f4
xor ebx, ebx
test rbx, rbx
je 0x14004a160
cmp qword [rbx], 0
je 0x14004a160
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140049cc0]
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x14004a14e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str._CWaitWakeEnabledHidDevs::OnHidArrived:_CreateThread_failed._err_d_n
mov edx, eax
call fcn.1400300fc
mov rcx, qword [rbx]
test rcx, rcx
je 0x14004a144
call fcn.14005c1e4
mov rcx, rbx
call fcn.14005c32c
jmp 0x14004a16c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.CWaitWakeEnabledHidDevs::OnHidArrived:_started_thread_n
jmp 0x14004a167
lea rcx, str._CWaitWakeEnabledHidDevs::OnHidArrived:_no_memory_n
call fcn.1400300fc
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14005ba20
add rsp, 0x140
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004af70
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
lea rcx, str.DoFirstConnInThread_n
call fcn.1400300fc
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [fcn.14004ad40]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
Function at 0x14004b360
Capabilities:
Create thread

Disassembly:
sub rsp, 0x28
movzx edx, byte [0x1400dbeb8]
lea rcx, str.AbortDelayedRestartBtDevOnErr43:_s_bDelayedRestartBtDevOnErr43:_d_n
call fcn.1400300fc
mov byte [0x1400dbeb8], 0
add rsp, 0x28
ret
sub rsp, 0x28
lea rcx, [0x1400dfff0]
call fcn.140048470
lea rcx, [0x1400dbeb9]
xor edx, edx
call fcn.140045dc4
mov cl, 1
call fcn.140003fe0
add rsp, 0x28
jmp 0x14003215c
sub rsp, 0x38
cmp ecx, 1
jbe 0x14004b427
cmp ecx, 3
jbe case.default.0x14004b3ec
cmp ecx, 5
jbe 0x14004b3f3
cmp ecx, 6
jbe case.default.0x14004b3ec
cmp ecx, 8
jbe 0x14004b392
cmp ecx, 0x12
jne case.default.0x14004b3ec
cmp dword [0x1400dffd8], 0
jne case.default.0x14004b3ec
lea rcx, str.Responding_to_power_wake_up_event__resuming_n
call fcn.1400300fc
and dword [0x1400dffdc], 0
mov dword [0x1400dffd8], 1
call fcn.140012890
call fcn.140049310
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [fcn.14004ad40]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1400dffdc], 0
jne case.default.0x14004b3ec
lea rcx, str.Request_to_suspend__suspending_n
call fcn.1400300fc
and dword [0x1400dffd8], 0
mov dword [0x1400dffdc], 1
call fcn.140014a80
add rsp, 0x38
jmp 0x1400492d0
call fcn.140048fd0
add rsp, 0x38
ret
leave
add dl, byte [rbx + 0x3e]
pop rbp
cmp ch, 0xc6
mov ebp, 0xcf3564d9
add byte [0x151691d96], bh
test eax, 0x88b1ecb9
invalid
Function at 0x14004b550
Capabilities:
Create thread
Link many functions at runtime
Send data
Send data on socket

Disassembly:
sub rsp, 0x38
cmp dword [0x1400dbc4c], 0
jne 0x14004b6b0
lea rcx, [0x1400b4f80]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1400ddb48], rax
test rax, rax
je 0x14004b781
lea rdx, str.HidD_GetHidGuid
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ddb00], rax
test rax, rax
je 0x14004b775
mov rcx, qword [0x1400ddb48]
lea rdx, str.HidD_GetPreparsedData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ddb08], rax
test rax, rax
je 0x14004b775
mov rcx, qword [0x1400ddb48]
lea rdx, str.HidD_GetAttributes
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ddb10], rax
test rax, rax
je 0x14004b775
mov rcx, qword [0x1400ddb48]
lea rdx, str.HidD_FreePreparsedData
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ddb18], rax
test rax, rax
je 0x14004b775
mov rcx, qword [0x1400ddb48]
lea rdx, str.HidP_GetCaps
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ddb20], rax
test rax, rax
je 0x14004b775
mov rcx, qword [0x1400ddb48]
lea rdx, str.HidP_GetButtonCaps
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ddb28], rax
test rax, rax
je 0x14004b775
mov rcx, qword [0x1400ddb48]
lea rdx, str.HidD_GetFeature
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ddb30], rax
test rax, rax
je 0x14004b775
mov rcx, qword [0x1400ddb48]
lea rdx, str.HidD_SetFeature
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400ddb38], rax
test rax, rax
je 0x14004b775
lea rcx, [0x1400ddac8]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [0x1400dbc4c], 0
je 0x14004b728
cmp qword [0x1400dbf70], 0
je 0x14004b6dc
lea rcx, str.BTWPP_DeleteUnsupportedSvcRegistry
call fcn.14003786c
cmp qword [0x1400dbf70], 0
je 0x14004b6dc
lea rcx, str.BTWPP_SetRoleSwitchConfig
call fcn.14003786c
lea rcx, [0x1400e0000]
call fcn.140049a30
cmp qword [0x1400dbf70], 0
je 0x14004b6f7
call fcn.1400472b0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14004b440]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1400dbc4c], 0
jne 0x14004b770
lea rcx, [0x1400ddac8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x1400ddb40], 0
jne 0x14004b763
lea r9, [0x140048e00]
xor edx, edx
xor ecx, ecx
mov r8d, 0x100f
mov byte [0x1400ddb40], 1
call qword [sym.imp.USER32.dll_SetTimer]
mov qword [0x1400ddb50], rax
lea rcx, [0x1400ddac8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x38
ret
mov rax, qword [0x1400ddb48]
test rax, rax
jne 0x14004b792
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
and qword [0x1400ddb48], 0
lea rcx, str.Bluetooth_Service_HidWatch::Unable_to_open_or_bad_HID.DLL_n
add rsp, 0x38
jmp fcn.1400300fc
Function at 0x14004ba84
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, VarUI4FromDisp
call fcn.14005bab0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 5
mov eax, 1
ja 0x14004bad8
jne 0x14004bad6
cmp dword [rsp + 0x28], eax
jae 0x14004bad8
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14005ba20
add rsp, 0x158
ret

Function at 0x14004bb04
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, VarUI4FromDisp
call fcn.14005bab0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 6
ja 0x14004bb56
jne 0x14004bb52
cmp dword [rsp + 0x28], 2
jae 0x14004bb56
xor eax, eax
jmp 0x14004bb5b
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14005ba20
add rsp, 0x158
ret
Function at 0x14004f3a4
Capabilities:
Get local ipv4 addresses
Get socket information
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp - 0x10], rax
cmp dword [0x1400e0f40], 0
mov rdi, rcx
jne 0x14004f3de
xor eax, eax
jmp 0x14004f4e3
or qword [rbp - 0x58], 0xffffffffffffffff
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x60], 4
call qword [0x1400e0e68]
mov rbx, rax
test rax, rax
je 0x14004f3d7
mov rcx, qword [rbp - 0x58]
cmp rcx, 0xffffffffffffffff
je 0x14004f410
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [0x1400e0e78]
mov edx, 1
lea r13d, [rdx + 0x1f]
lea r8d, [rdx + 2]
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14004f440
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x14004f3d7
mov r12d, 0x1e
lea rcx, [rbp - 0x50]
xor edx, edx
mov r8d, r12d
call fcn.14005bab0
lea rdx, [rbp - 0x50]
mov r8d, r12d
mov rcx, rbx
mov word [rbp - 0x50], r13w
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14004f48e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.MSReadLocalBDA:_bind_failed._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14004f3d7
lea rcx, [rbp - 0x30]
mov r8, r12
xor edx, edx
call fcn.14005bab0
lea r8, [rbp - 0x5c]
lea rdx, [rbp - 0x30]
mov rcx, rbx
mov dword [rbp - 0x5c], r12d
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14004f4c4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.MSReadLocalBDA:_getsockname_failed._n
jmp 0x14004f47a
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
test rdi, rdi
je 0x14004f4de
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14004c094
mov eax, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x14004ffcc
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x58], rax
and dword [rsp + 0x30], 0
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400500d0
mov edi, 0x20
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, edi
call fcn.14005bab0
xor esi, esi
xor edx, edx
mov dword [rsp + 0x38], edi
lea r8, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x1400500c7
xor r9d, r9d
lea rdx, [rsp + 0x38]
mov rcx, rbx
lea r8d, [r9 + 1]
mov dword [rsp + 0x28], 0x20019
mov dword [rsp + 0x20], 1
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400500ae
lea rax, [rsp + 0x34]
lea rdx, str.SecureCapable
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1400500b7
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
mov edx, esi
jmp 0x14005002b
mov edx, dword [rsp + 0x30]
lea rcx, str.RegQueryValueEx_SecureCapable__d
call fcn.1400300fc
mov rcx, rbx
call qword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov edx, dword [rsp + 0x30]
lea rcx, str.IsDeviceSecureCapable__d
call fcn.1400300fc
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005ba20
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x140051518
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x50]
lea rdx, str.SOFTWAREWidcommBTConfigDebug
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005154e
mov eax, 0xa
jmp 0x140051599
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
lea rdx, str.MaxLogFileSize
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x40], 0xa
mov dword [rsp + 0x48], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rsp + 0x40]
add rsp, 0x38
ret