joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ae00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x44af77
movzx edx, byte [rax]
test edx, edx
jne 0x44ae34
nop dword [rax]
test r8b, r8b
jne 0x44ae34
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x44ae47
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x44af37
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x44af25
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x44af17
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x44ae9d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x44aee0
mov eax, 1
cmp rax, rbx
ja 0x44aecb
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.0045cf00
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x44af0f
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x44aed3
mov rcx, r11
mov eax, r12d
jmp 0x44aea2
mov rcx, rbx
call fcn.0045ce40
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045ce40
mov eax, r8d
mov rcx, rbx
call fcn.0045cf00
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x44af6d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x44af30
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x44ae4d
mov eax, edx
mov rcx, rbx
call fcn.0045ce40
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.0045ce40
nop
int3

Function at 0x450ca0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x450d55
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rdi
test byte [rax], al
lea rdx, [rax + 0x10]
mov rsi, qword [rsp + 0x68]
mov rcx, rdi
mov rax, rdx
mov rbx, rsi
call fcn.0044e920
nop
test bl, bl
je 0x450d4f
mov qword [rsp + 0x18], rax
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
lea rcx, [0x00450da0]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x20]
mov qword [rsp], rcx
call fcn.0045aaa0
xorps xmm15, xmm15
mov r14, qword [0x005719c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x18]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045abc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.00450ca0
Function at 0x453ca0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x453d4f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x00453da0]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0045aaa0
xorps xmm15, xmm15
mov r14, qword [0x005719c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.0045abc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.00453ca0
Function at 0x45e780
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x45e7b4
mov rcx, 0x28
jmp 0x45e7bf
shl rcx, 3
add rcx, 0x1480
mov qword [0x005719c8], rcx
pop rbp
ret

Function at 0x465700
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4657ca
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.00402a20
xorps xmm15, xmm15
mov r14, qword [0x005719c8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x4657af
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x0046c4c0]
xor ebx, ebx
mov rcx, rdx
call fcn.00444ca0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.00465a60
inc rbx
cmp rcx, rbx
jae 0x46579e
mov edi, 1
lea rsi, [0x0046c4c0]
call fcn.00444d80
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00494fd8]
lea rsi, [0x00494d40]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0045abc0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00465700
Function at 0x140a32058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140a321df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140a32089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a3206f
add dl, dl
jne 0x140a32096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a320f6
xor eax, eax
add dl, dl
jne 0x140a320a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140a321ad
add dl, dl
jne 0x140a320b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a320c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a320d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a320dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140a320ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140a3207e
mov eax, 1
add dl, dl
jne 0x140a32106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140a32113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a320fb
sub eax, ebx
mov ebx, 1
jne 0x140a3214c
mov ecx, 1
add dl, dl
jne 0x140a3212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a3213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a32123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140a32168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140a32175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140a3215d
cmp eax, 0x7d00
jae 0x140a3219b
cmp eax, 0x500
jb 0x140a32196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3207e
cmp eax, 0x7f
ja 0x140a3219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140a3207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140a321d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140a3207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005940
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
lea rcx, str.SetNotNeedReEnableBtReg
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x382
lea rdx, str.SetNoNeedReEnableBtReg
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
lea rax, [rsp + 0x48]
mov r9d, 0x2001f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARERealtekBluetooth_service
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005a11
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.NotNeedReEnableBt
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x1400059fc
lea rcx, str.RegSetValueEx__NotNeedReEnableBt_success
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x38d
lea rdx, str.SetNoNeedReEnableBtReg
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
add rsp, 0x38
ret
lea rcx, str.SetNotNeedReEnableBtReg_error
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x393
lea rdx, str.SetNoNeedReEnableBtReg
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
xor eax, eax
add rsp, 0x38
ret

Function at 0x140005bd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test rax, rax
je 0x140005c45
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005c45
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005c35
nop
cmp rbx, rcx
jae 0x140005c45
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140005c20
cmp rbx, rcx
jae 0x140005c45
cmp word [rbx], 0
je 0x140005c45
mov rax, rbx
jmp 0x140005c47
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400077a0
Capabilities:
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1400ae088]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, str.Stop_service_entry
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x124
lea rdx, str.StopService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
je 0x1400078ea
mov rdx, qword [str.RtkBtManServ]
mov r8d, 0x10024
mov rcx, rax
mov qword [rsp + 0x60], rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x140007895
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
jne 0x14000786b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.Control_Stop_failed:_GetLastError__0x_x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x134
lea rdx, str.StopService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140023950
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed:_GetLastError__0x_x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x13a
lea rdx, str.StopService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140023950
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed:_GetLastError__0x_x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x140
lea rdx, str.StopService
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140023950
add rsp, 0x50
pop rdi
ret
Function at 0x14000b340
Capabilities:
Enumerate processes

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x280
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400ae088]
xor rax, rsp
mov qword [rsp + 0x270], rax
xor r14d, r14d
mov ebp, r14d
mov dword [rsp + 0x30], 0x238
xor edx, edx
lea ecx, [rdx + 2]
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_CreateToolhelp32Snapshot
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000b3d1
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateToolhelp32Snapshot__error_d
call fcn.140018760
lea r9, [0x1400af290]
lea r8d, [r14 + 0xd]
lea rdx, str.GetWinloginProcess
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
xor eax, eax
jmp 0x14000b53b
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32FirstW
test eax, eax
je 0x14000b52f
call fcn.1400030f0
mov rcx, rax
test rax, rax
je 0x14000b574
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x5c]
cmp rax, 0x10000
jae 0x14000b427
lea rax, [rsp + 0x5c]
movzx edx, ax
lea rcx, [rsp + 0x20]
call fcn.140003290
jmp 0x14000b450
lea rcx, [rsp + 0x5c]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000b433
mov r8d, eax
lea rdx, [rsp + 0x5c]
lea rcx, [rsp + 0x20]
call fcn.140005a50
nop
mov rbx, qword [rsp + 0x20]
movsxd rdi, dword [rbx - 0x10]
test edi, edi
js 0x14000b569
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14000b483
mov edx, edi
lea rcx, [rsp + 0x20]
call fcn.140004030
mov rbx, qword [rsp + 0x20]
lea eax, [rdi + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.14004a9a8
cmp edi, dword [rbx - 0xc]
jg 0x14000b57f
mov dword [rbx - 0x10], edi
mov word [rbx + rdi*2], r14w
lea rdx, [rsp + 0x5c]
lea rcx, str.winlogon.exe
call fcn.14004a588
test eax, eax
jne 0x14000b4fb
mov r8d, dword [rsp + 0x38]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_1.dll_OpenProcess]
mov rbp, rax
mov rdx, rax
lea rcx, str.Open_winlogon:0x_x
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x18
lea rdx, str.GetWinloginProcess
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
lea rdx, [rsp + 0x30]
mov rcx, rsi
call sub.api_ms_win_core_toolhelp_l1_1_0.dll_Process32NextW
mov edi, eax
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000b527
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
test edi, edi
jne 0x14000b3e6
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rax, rbp
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140023950
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
mov ecx, 0x80070057
call fcn.140002850
nop
mov ecx, 0x80004005
call fcn.140002850
nop
mov ecx, 0x80070057
call fcn.140002850
int3
Function at 0x140014740
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
xor ebx, ebx
mov r9d, 0x20019
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWARERealtekBluetooth_service
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400147cc
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.BTSleepOption
mov dword [rsp + 0x48], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400147c1
cmp dword [rsp + 0x40], 1
sete bl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140014a00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, [0x14008ac34]
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x140
lea rdx, str.IsMonitorBTAbnormal
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
lea rax, [rsp + 0x58]
mov ebx, 1
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x40], ebx
lea rdx, str.SOFTWARERealtekBluetooth_service
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014af0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x50], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MonitorBTAbnormal
mov dword [rsp + 0x48], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140014ae5
mov edx, dword [rsp + 0x40]
lea rcx, str.MonitorBTAbnormal_d
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x14b
lea rdx, str.IsMonitorBTAbnormal
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
xor ebx, ebx
cmp dword [rsp + 0x40], ebx
setne bl
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edx, ebx
lea rcx, [0x14008e81c]
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x151
lea rdx, str.IsMonitorBTAbnormal
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140014e80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov dword [rsp + 0x58], 0xf
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWARERealtekBluetooth_service
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014f28
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x68], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.BTCheckOption
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov ecx, dword [rsp + 0x58]
mov dword [rdi], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, ebx
mov dword [rdi], 0xf
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400154b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov dword [rsp + 0x58], 0xa
lea rax, [rsp + 0x30]
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SOFTWARERealtekBluetooth_service
xor ebx, ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015558
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x68], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.BTCheckCount
mov dword [rsp + 0x60], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov ecx, dword [rsp + 0x58]
mov dword [rdi], ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov eax, ebx
mov dword [rdi], 0xa
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140017340
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rsi, rcx
xor ebp, ebp
mov qword [rax - 0x20], rbp
mov dword [rax - 0x18], ebp
mov qword [rax - 0x10], rbp
lea r9d, [rbp + 2]
lea r8, str.SOFTWARERealtekBluetoothLanguage
mov rdx, 0xffffffff80000002
lea rcx, [rax - 0x20]
call fcn.140008860
test eax, eax
je 0x1400173d7
lea rcx, str.ModifyLanguageReg_Open_reg_failed
call fcn.140018760
lea r9, [0x1400af290]
lea r8d, [rbp + 0x15]
lea rdx, str.ModifyLanguageReg
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
nop
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400173cb
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rbx, 0xffffffffffffffff
jmp 0x1400174fa
mov rcx, qword [rsi]
mov rbx, 0xffffffffffffffff
mov rdi, qword [rsp + 0x38]
test rcx, rcx
je 0x1400174a9
mov rax, rbx
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x1400173f2
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.language
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x1400174a9
test rdi, rdi
je 0x140017444
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, rbp
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x40], ebp
mov rdx, qword [rsi]
lea rcx, str.Set_Lang_to__s
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x22
lea rdx, str.ModifyLanguageReg
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
nop
test rdi, rdi
je 0x140017487
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400174a2
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, 1
jmp 0x140017516
lea rcx, str.ModifyLanguageReg_set_reg_value_failed
call fcn.140018760
lea r9, [0x1400af290]
mov r8d, 0x1c
lea rdx, str.ModifyLanguageReg
lea rcx, str.__hs_____d_:_____s
call fcn.140018f50
test rdi, rdi
je 0x1400174eb
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rdi, rbp
mov qword [rsp + 0x38], rbp
test rdi, rdi
je 0x1400174fa
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140017514
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret