joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d9a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov ebp, r8d
movzx r8d, byte [rdx]
mov rsi, rdx
mov edx, ecx
mov ebx, ecx
lea rcx, str.SendProxAppMsg_called_pid___d__msg___d
call fcn.14000d630
lea r8, str..mailslotProxClientMs_d
lea rcx, [rsp + 0x50]
mov r9d, ebx
mov edx, 0x104
xor edi, edi
call fcn.14005ce1c
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 1]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000da45
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SendProxAppMsg_failed_to_create_file_err:_d
mov edx, eax
mov ebx, eax
call fcn.14000d630
mov eax, ebx
jmp 0x14000da83
lea r9, [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14000da78
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.SendProxAppMsg_failed_to_write_err:_d
mov edx, eax
mov edi, eax
call fcn.14000d630
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005ba20
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x270
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000db20
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov rdi, rax
call fcn.14005bab0
mov dword [rsp + 0x20], 0x238
cmp rdi, 0xffffffffffffffff
je 0x14000dbac
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000dbac
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14005d144
test eax, eax
je 0x14000dba7
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
jmp 0x14000db83
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, str.BTTray.exe
jmp 0x14000db20
Function at 0x14000dc00
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor ebx, ebx
xor edx, edx
lea ecx, [rbx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x234
mov rdi, rax
call fcn.14005bab0
mov dword [rsp + 0x20], 0x238
cmp rdi, 0xffffffffffffffff
je 0x14000dbac
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000dbac
lea rcx, [rsp + 0x4c]
mov rdx, rsi
call fcn.14005d144
test eax, eax
je 0x14000dba7
lea rdx, [rsp + 0x20]
mov rcx, rdi
call sub.KERNEL32.dll_Process32NextW
jmp 0x14000db83
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, str.BTTray.exe
jmp 0x14000db20
Function at 0x14000e2e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
lea rbp, [rsp - 0x31f0]
mov eax, 0x32f0
call fcn.14005ba50
sub rsp, rax
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rbp + 0x31e8], rax
and dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.1400261f4
lea rcx, [rsp + 0x40]
mov qword [rbp + 0x358], 0xffffffff80000002
call fcn.140022d94
test eax, eax
jne 0x14000e34b
cmp dword [rbp + 0x3194], eax
jne 0x14000e34b
lea rcx, str.Proximity_disallowed_thru_customization
call fcn.14000d630
xor eax, eax
jmp 0x14000e3f3
lea rax, [rsp + 0x38]
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
jne 0x14000e3b5
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, str.ProxModeAll
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rbp + 0x31e0], 0
mov word [rbp + 0x31e4], 0
call fcn.14000e070
test eax, eax
jne 0x14000e3e8
lea rcx, [rbp + 0x31e0]
call fcn.140050fd4
test eax, eax
jne 0x14000e3e8
mov eax, 2
jmp 0x14000e3f3
mov eax, dword [rsp + 0x30]
neg eax
sbb eax, eax
and eax, 2
mov rcx, qword [rbp + 0x31e8]
xor rcx, rsp
call fcn.14005ba20
add rsp, 0x32f0
pop rbp
ret
Function at 0x14000ec80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x48]
mov rbx, rcx
mov dword [rcx + 2], 0
mov word [rcx], 0
lea rdx, str.SOFTWAREWidcommBTConfigProximity
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 0x14000ecfa
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
lea rdx, str.device
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x40], 6
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x30
pop rbx
ret
Function at 0x14000ee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor ebx, ebx
mov rsi, rdx
mov rdi, rcx
test rcx, rcx
je 0x14000ee9e
movzx eax, byte [rcx + 1]
movzx r9d, byte [rcx]
shl r9, 8
add r9, rax
movzx eax, byte [rcx + 2]
shl r9, 8
add r9, rax
movzx eax, byte [rcx + 3]
shl r9, 8
add r9, rax
movzx eax, byte [rcx + 4]
shl r9, 8
add r9, rax
movzx eax, byte [rcx + 5]
shl r9, 8
add r9, rax
jmp 0x14000eea1
mov r9, rbx
lea r8, str.SYSTEMCurrentControlSet_servicesBTHPORTParametersDevices_012I64x
lea rcx, [rsp + 0x40]
mov edx, 0x100
call fcn.14005d88c
test eax, eax
jg 0x14000ef0e
test rdi, rdi
je 0x14000eefa
movzx eax, byte [rdi + 1]
movzx ebx, byte [rdi]
shl rbx, 8
add rbx, rax
movzx eax, byte [rdi + 2]
shl rbx, 8
add rbx, rax
movzx eax, byte [rdi + 3]
shl rbx, 8
add rbx, rax
movzx eax, byte [rdi + 4]
shl rbx, 8
add rbx, rax
movzx eax, byte [rdi + 5]
shl rbx, 8
add rbx, rax
lea rcx, str.Proximity:_ProximityGetInitialRssi__:_sprintf_s_failed._bda_012I64x
mov rdx, rbx
call fcn.14000d630
jmp 0x14000f006
lea rax, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov r8d, eax
test eax, eax
je 0x14000ef8a
test rdi, rdi
je 0x14000ef79
movzx ecx, byte [rdi + 1]
movzx eax, byte [rdi + 3]
movzx ebx, byte [rdi]
shl rbx, 8
add rbx, rcx
movzx ecx, byte [rdi + 2]
shl rbx, 8
add rbx, rcx
shl rbx, 8
add rbx, rax
movzx eax, byte [rdi + 4]
shl rbx, 8
add rbx, rax
movzx eax, byte [rdi + 5]
shl rbx, 8
add rbx, rax
lea rcx, str.Proximity:_ProximityGetInitialRssi__:_RegOpenKeyExA_failed._bda_012I64x_err_d
mov rdx, rbx
call fcn.14000d630
jmp 0x14000f006
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea rdx, str.InitialRSSI
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000efef
mov cl, byte [rsp + 0x30]
neg cl
mov byte [rsi], cl
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movsx edx, byte [rsi]
lea rcx, str.Proximity:_ProximityGetInitialRssi_____d
call fcn.14000d630
mov eax, 1
jmp 0x14000f008
lea rcx, str.Proximity:_ProximityGetInitialRssi___InitialRSSI_not_found_in_registry
call fcn.14000d630
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14005ba20
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000f890
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov esi, ecx
mov ecx, ntohl
mov ebx, r8d
mov edi, edx
call fcn.14005c274
test rax, rax
jne 0x14000f8c0
mov edx, ebx
mov ecx, edi
call fcn.14000ed40
jmp 0x14000f8f0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x14000f850]
mov r9, rax
xor edx, edx
xor ecx, ecx
mov dword [rax + 8], ebx
mov dword [rax + 4], edi
mov dword [rax], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140010750
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
cmp dword [0x1400db1d0], eax
je 0x14001078a
mov qword [rsp + 0x28], rax
lea r8, [0x140010510]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [0x1400db1e8], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret

Function at 0x1400109b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x20], 1
mov rbx, rcx
jne 0x140010a1f
neg edx
sbb eax, eax
not eax
and eax, 2
mov dword [rcx + 0x20], eax
mov edx, dword [0x1400db1c0]
lea rcx, str.Proximity:_AV_connection_established__prox_enabled_d
call fcn.14000d630
lea rcx, [rbx + 8]
lea rdx, [0x1400db1c8]
call fcn.14000e500
xor ecx, ecx
test eax, eax
je 0x1400109fb
cmp dword [0x1400db1c0], ecx
jne 0x140010a1f
mov qword [rsp + 0x28], rcx
lea r8, [0x140010950]
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
pop rbx
ret
Function at 0x140010a70
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x70], rbp
mov rsi, rcx
mov r13d, 1
mov dword [0x1400db1d8], r13d
cmp dword [0x1400db1c0], 0
jne 0x140010ae0
lea rcx, str.Proximity:_connected_but_no_longer_enabled
call fcn.14000d630
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x140010a30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140010ce2
cmp dword [0x1400db1e0], 4
jne 0x140010b64
cmp dword [0x1400db748], 0
jne 0x140010b64
xor edi, edi
mov r9, qword [0x1400db278]
mov rax, r9
mov r8, qword [0x1400db270]
sub rax, r8
sar rax, 4
test rax, rax
je 0x140010cdf
xor ebx, ebx
cmp dword [rbx + r8 + 8], 0
jne 0x140010b47
mov dword [rbx + r8 + 8], r13d
mov edx, 5
mov rax, qword [0x1400db270]
mov ecx, dword [rbx + rax + 4]
call fcn.14000ed40
mov r9, qword [0x1400db278]
mov r8, qword [0x1400db270]
add edi, r13d
add rbx, 0x10
mov rdx, r9
sub rdx, r8
sar rdx, 4
mov ecx, edi
cmp rcx, rdx
jb 0x140010b17
jmp 0x140010cdf
xor edi, edi
lea rax, [0x1400d8068]
mov qword [rsp + 0x68], rax
cmp dword [0x1400d8070], edi
je 0x140010b88
mov rcx, qword [0x1400d8068]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
call fcn.14000f7d0
test eax, eax
jne 0x140010be8
lea rcx, str.Proximity:_Connected____no_triggers_set__disabling
call fcn.14000d630
and dword [0x1400db1c0], 0
mov rax, qword [0x1400db278]
sub rax, qword [0x1400db270]
test rax, 0xfffffffffffffff0
jne 0x140010bc9
xor edx, edx
lea rcx, [0x1400db1c8]
call fcn.1400108d0
nop
cmp dword [0x1400d8070], 0
je 0x140010ad9
mov rcx, qword [0x1400d8068]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140010ad9
xor ebp, ebp
mov r8, qword [0x1400db278]
mov rax, r8
mov rdx, qword [0x1400db270]
sub rax, rdx
sar rax, 4
test rax, rax
je 0x140010c5e
xor ebx, ebx
cmp dword [rbx + rdx], edi
jle 0x140010c17
cmp dword [rbx + rdx + 0xc], 0
cmovne edi, dword [rbx + rdx]
cmp dword [rbx + rdx + 8], 0
jne 0x140010c46
mov dword [rbx + rdx + 8], r13d
mov edx, 5
mov rax, qword [0x1400db270]
mov ecx, dword [rbx + rax + 4]
call fcn.14000ed40
mov r8, qword [0x1400db278]
mov rdx, qword [0x1400db270]
add ebp, r13d
add rbx, 0x10
mov rcx, r8
sub rcx, rdx
sar rcx, 4
mov eax, ebp
cmp rax, rcx
jb 0x140010c09
mov byte [0x1400d8042], dil
movzx eax, dil
lea rcx, [0x1400d803c]
mov cl, byte [rax + rcx]
mov byte [0x1400d803b], cl
cmp dword [0x1400d8070], 0
je 0x140010c95
mov rcx, qword [0x1400d8068]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov cl, byte [0x1400d803b]
movsx r8d, byte [0x1400d803a]
movsx edx, cl
lea rcx, str.Proximity:_lock_threshold___d_RSSI___d_for_lower_pwr_levels
call fcn.14000d630
cmp dword [0x1400db1e0], 4
je 0x140010cc2
mov rdx, rsi
mov ecx, 5
call fcn.14000ddd0
lea rcx, [0x1400db290]
call fcn.14000f790
mov r9d, eax
mov r8d, r13d
mov edx, r13d
mov rcx, rsi
call fcn.1400107a0
mov eax, r13d
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret
Function at 0x140011050
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ecx, 6
call fcn.14005c274
mov rbx, rax
test rax, rax
je 0x1400110a8
mov r8d, 6
mov rdx, rdi
mov rcx, rax
call fcn.14005bdf0
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140011020]
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140011620
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov ecx, 0x18
mov ebx, r8d
mov rdi, rdx
call fcn.14005c274
test rax, rax
je 0x14001167c
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov qword [rax], rsi
mov rcx, qword [rdi]
lea r8, [0x140011470]
mov r9, rax
mov qword [rax + 8], rcx
xor edx, edx
xor ecx, ecx
mov dword [rax + 0x10], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140012d90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
lea rcx, str.CHFConnection::ConnState___lStatus___d
mov edi, edx
call fcn.14000d630
cmp dword [rbx + 0x1c], 1
jne 0x140012e89
lea rdx, [0x1400db1c8]
lea rcx, [rbx + 8]
call fcn.14000e500
test eax, eax
je 0x140012e5d
test edi, edi
jne 0x140012e24
mov rcx, rbx
mov dword [rbx + 0x1c], 2
mov dword [0x1400db1dc], 1
call fcn.14000e9c0
cmp dword [0x1400db1c0], edi
je 0x140012e16
lea rdx, [0x1400db1c8]
lea rcx, [rbx + 8]
call fcn.14000e500
test eax, eax
je 0x140012e16
lea rcx, [rbx + 8]
call fcn.140010a70
jmp 0x140012e89
lea rcx, str.CHFConnection::ConnState__Proximity:_HF_connected_but_proximity_not_enabled_for_this_device
call fcn.14000d630
jmp 0x140012e61
lea rcx, str.CHFConnection::ConnState___Proximity:_HFP_connection_attempt_failed
call fcn.14000d630
and dword [rbx + 0x1c], 0
lea rdx, [0x1400db1c8]
lea rcx, [rbx + 8]
call fcn.14000e500
test eax, eax
je 0x140012e56
cmp dword [0x1400db1c0], 0
je 0x140012e56
call fcn.140011a40
mov eax, 1
jmp 0x140012e8b
test edi, edi
jne 0x140012e89
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
lea r8, [0x140010020]
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x1400141e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [rcx + 0x20], 1
je 0x140014219
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov dword [rcx + 0x20], 1
mov r9, rcx
lea r8, [0x1400141a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140014630
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rbx, rcx
mov r8d, dword [0x1400db1e0]
mov edx, dword [0x1400db1fc]
lea rcx, str.Proximity:_CheckDeviceNear____paging_d._conn_type_d
call fcn.14000d630
mov edi, dword [rbx]
movzx ebx, byte [rbx + 4]
cmp ebx, 5
ja 0x140014899
cmp dword [0x1400db1e0], 4
jne 0x14001469d
cmp dword [0x1400db748], 0
jne 0x14001469d
lea rcx, [0x1400db1c8]
call fcn.14000fdd0
xor r8d, r8d
mov ecx, edi
test eax, eax
je 0x1400146dc
mov edx, 0xa
jmp 0x1400146e1
lea rcx, [0x1400db1c8]
call fcn.14000eb90
test eax, eax
jne 0x140014828
cmp dword [0x1400db1e0], 4
jne 0x1400146eb
lea rcx, [0x1400db1c8]
call fcn.14000fdd0
test eax, eax
jne 0x140014828
cmp dword [0x1400db1e0], 4
jne 0x1400146eb
xor r8d, r8d
mov ecx, edi
mov edx, ntohl
call fcn.14000ed10
jmp 0x140014899
mov dword [0x1400db214], 1
lea rax, [0x1400d8098]
mov qword [rsp + 0x68], rax
cmp dword [0x1400d80a0], 0
je 0x140014718
mov rcx, qword [0x1400d8098]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
xor edx, edx
mov rcx, qword [0x1400db760]
mov r8, qword [0x1400db758]
sub rcx, r8
sar rcx, 3
test rcx, rcx
je 0x14001476f
mov r9, r8
cmp dword [r9], edi
je 0x14001474b
inc edx
add r9, 8
mov eax, edx
cmp rax, rcx
jb 0x140014737
jmp 0x14001476f
mov dword [r8 + rdx*8 + 4], ebx
cmp dword [0x1400d80a0], 0
je 0x140014899
mov rcx, qword [0x1400d8098]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x140014899
mov eax, edx
cmp rax, rcx
jne 0x140014790
mov dword [rsp + 0x60], edi
mov dword [rsp + 0x64], ebx
lea rdx, [rsp + 0x60]
lea rcx, [0x1400db758]
call fcn.140016e68
nop
cmp dword [0x1400d80a0], 0
je 0x1400147a6
mov rcx, qword [0x1400d8098]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [0x1400db1fc], 0
je 0x1400147fe
mov rdx, qword [0x1400db220]
test rdx, rdx
je 0x1400147c6
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
and qword [0x1400db220], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x64
xor r9d, r9d
lea r8, [0x140013070]
xor edx, edx
lea rcx, [0x1400db220]
call qword [sym.imp.KERNEL32.dll_CreateTimerQueueTimer]
jmp 0x140014899
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [0x1400135c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140014899
mov byte [rsp + 0x60], 0
mov r9d, 7
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [0x1400db1c8]
call fcn.140050c34
test eax, eax
jne 0x14001488d
movsx edx, byte [rsp + 0x60]
lea rcx, str.Proximity:_CheckDeviceNear___device_connected_RSSI_d
call fcn.14000d630
lea rax, [0x1400d803c]
movsx ecx, byte [rbx + rax]
call fcn.14005e370
mov ebx, eax
movsx ecx, byte [rsp + 0x60]
call fcn.14005e370
mov ecx, edi
cmp eax, ebx
jg 0x140014886
xor r8d, r8d
jmp 0x140014696
call fcn.14000ed70
jmp 0x140014899
lea rcx, str.Proximity:_CheckDeviceNear___failed_to_read_RSSI
call fcn.14000d630
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x1400170a4
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x140
mov rax, qword [0x1400d9180]
xor rax, rsp
mov qword [rsp + 0x130], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rsp + 0x150]
lea rcx, [rsp + 0x30]
mov ebx, eax
lea rax, [rsp + 0x158]
or r8, 0xffffffffffffffff
mov edx, 0x100
mov qword [rsp + 0x20], rax
call fcn.1400672b8
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.14005ba20
add rsp, 0x140
pop rbx
ret

Function at 0x140017214
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x60
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rdx, str.Widcomm_Bluetooth_Key_Container_Name
lea rcx, [rsp + 0x70]
mov r9d, 1
mov dword [rsp + 0x20], 0x28
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
xor ebx, ebx
test eax, eax
jne 0x14001726e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.BtInitializeMachineKeyContainer:_CryptAcquireContext_failed.Error_d__0x_x__n
mov edx, eax
mov r8d, ebx
call fcn.1400170a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400172d7
lea rcx, [rsp + 0x30]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x140017291
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.BtInitializeMachineKeyContainer:_InitializeSecurityDescriptor_failed.Error_d__0x_x__n
jmp 0x1400172bc
mov rcx, qword [rsp + 0x70]
mov r9d, 4
lea r8, [rsp + 0x30]
lea edx, [r9 + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetProvParam]
test eax, eax
jne 0x1400172c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.BtInitializeMachineKeyContainer:_CryptSetProvParam_failed.Error_d__0x_x__n
mov r8d, eax
mov edx, eax
mov ebx, eax
call fcn.1400170a4
mov rcx, qword [rsp + 0x70]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
add rsp, 0x60
pop rbx
ret

Function at 0x1400172e4
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push rbx
sub rsp, 0x30
lea r8, str.Microsoft_Base_Cryptographic_Provider_v1.0
lea rdx, str.Widcomm_Bluetooth_Key_Container_Name
lea rcx, [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x20], 8
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14001733c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.BtInitializeUserKeyContainer:_CryptAcquireContext_failed.Error_d__0x_x__n
mov edx, eax
mov r8d, ebx
call fcn.1400170a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14001734b
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
add rsp, 0x30
pop rbx
ret