joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000b700
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000710c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000b78a
cmp byte [rbp - 0x21], r15b
je 0x14000b785
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000b7c0
call fcn.140009808
test eax, eax
jne 0x14000b7ac
cmp byte [rbp - 0x21], r15b
je 0x14000b7a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000b7c0
cmp byte [rbp - 0x21], r15b
je 0x14000b7bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400066ec
test eax, eax
jne 0x14000b860
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000710c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000b7ff
cmp byte [rbp - 0x21], r15b
je 0x14000b834
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000b834
call fcn.140009808
test eax, eax
jne 0x14000b820
cmp byte [rbp - 0x21], r15b
je 0x14000b819
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000b834
cmp byte [rbp - 0x21], r15b
je 0x14000b831
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400066ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000b860
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000b863
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000b871
mov rcx, rdi
call fcn.14000669c
cmp byte [rbp + 0x3f], r15b
je 0x14000b880
mov rcx, qword [rbp + 0x27]
call fcn.14000669c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000e6b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000e6d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000e6d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001eda4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001edee
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001edee
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001edee
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001edee
cmp dword [rcx + 0x84], 0xe
jbe 0x14001edee
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001edf0
xor al, al
add rsp, 0x28
ret

Function at 0x1400280f8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140028167
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140028167
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140028167
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140028167
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140028167
cmp dword [rcx + 0x84], 0xe
jbe 0x140028167
cmp dword [rcx + 0xf8], 0
je 0x140028167
mov ecx, ebx
call fcn.140028218
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140027ff4
nop
cmp dword [rbp + 0x20], 0
je 0x1400281b5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400281c0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400280f8

Function at 0x1400282fc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400280f8
Function at 0x14003136c
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14003139c
xor eax, eax
jmp 0x14003145f
mov rbp, rbx
cmp word [rax], si
je 0x1400313c1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400313a8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400313a4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002fa54
movsxd r14, eax
test eax, eax
jne 0x1400313ff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140031395
mov rcx, r14
call fcn.14002ba10
mov rdi, rax
test rax, rax
jne 0x140031418
xor ecx, ecx
call fcn.14002b9d4
jmp 0x1400313f4
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002fa54
test eax, eax
jne 0x140031449
mov rcx, rdi
call fcn.14002b9d4
jmp 0x140031453
xor ecx, ecx
call fcn.14002b9d4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x140033f8c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002b674
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14003402d
cmp ebx, dword [rsp + 0x30]
je 0x140034026
test esi, esi
je 0x140034026
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140034001
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003400e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140033feb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140034012
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003402f
mov eax, 1
jmp 0x14003402f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140036bcc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140036be2
mov al, 1
jmp 0x140036c42
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140036bf3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140036c40
mov ecx, dword [rcx + 0x18]
nop
call fcn.140031a38
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140036c40
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140036c40
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140036c40
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140036c42
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x140039990
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400399b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400399b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140005bb0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
lea rcx, str.SetNotNeedReEnableBtReg
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0x418
lea rdx, str.SetNoNeedReEnableBtReg
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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 0x140005c81
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 0x140005c6c
lea rcx, str.RegSetValueEx__NotNeedReEnableBt_success
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0x423
lea rdx, str.SetNoNeedReEnableBtReg
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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.140010f80
lea r9, [0x140090270]
mov r8d, 0x429
lea rdx, str.SetNoNeedReEnableBtReg
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
xor eax, eax
add rsp, 0x38
ret

Function at 0x140005e40
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 0x140005eb5
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005eb5
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 0x140005ea5
nop
cmp rbx, rcx
jae 0x140005eb5
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140005e90
cmp rbx, rcx
jae 0x140005eb5
cmp word [rbx], 0
je 0x140005eb5
mov rax, rbx
jmp 0x140005eb7
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 0x140007960
Capabilities:
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14008f088]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, str.Stop_service_entry
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0x124
lea rdx, str.StopService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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 0x140007aaa
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 0x140007a55
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 0x140007a2b
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.140010f80
lea r9, [0x140090270]
mov r8d, 0x134
lea rdx, str.StopService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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.14001c180
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.140010f80
lea r9, [0x140090270]
mov r8d, 0x13a
lea rdx, str.StopService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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.14001c180
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.140010f80
lea r9, [0x140090270]
mov r8d, 0x140
lea rdx, str.StopService
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14001c180
add rsp, 0x50
pop rdi
ret
Function at 0x14000d830
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 0x14000d8bc
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 0x14000d8b1
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 0x14000daf0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rcx, [0x14007288c]
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0x140
lea rdx, str.IsMonitorBTAbnormal
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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 0x14000dbe0
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 0x14000dbd5
mov edx, dword [rsp + 0x40]
lea rcx, str.MonitorBTAbnormal_d
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0x14b
lea rdx, str.IsMonitorBTAbnormal
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
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, [0x140072904]
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0x151
lea rdx, str.IsMonitorBTAbnormal
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x14000df70
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 0x14000e018
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 0x14000e6a0
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 0x14000e748
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 0x140010640
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x14008f088]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
xor r14d, r14d
mov edi, r14d
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], rax
mov rbp, rdx
mov qword [rsp + 0x40], rax
mov esi, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [r14 + 0x28]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenProcessToken]
test eax, eax
je 0x1400107cb
lea r8, [rsp + 0x3c]
xor ecx, ecx
lea rdx, str.SeDebugPrivilege
call qword [sym.imp.api_ms_win_security_lsalookup_l2_1_0.dll_LookupPrivilegeValueW]
test eax, eax
je 0x1400107cb
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x28], r14
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x44], 2
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_AdjustTokenPrivileges]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jne 0x1400107cb
lea rcx, str.ntdll.dll
mov qword [rsp + 0x80], rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140010733
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [0x140090260], rax
test rax, rax
jne 0x14001076e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea rcx, str.sm_LoadNTDLLFunctions_fail
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0x152
lea rdx, str.GetNtProcessInfoViaPid
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
mov rbx, qword [rsp + 0x80]
mov eax, edi
jmp 0x1400107f9
mov rdx, rbp
mov ecx, esi
call fcn.1400109b0
test eax, eax
je 0x140010783
mov edi, 1
jmp 0x1400107af
lea rcx, str.sm_GetNtProcessInfo_fail
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0x14b
lea rdx, str.GetNtProcessInfoViaPid
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rbx, qword [rsp + 0x80]
mov eax, edi
mov qword [0x140090260], r14
jmp 0x1400107f9
lea rcx, str.sm_EnableTokenPrivilege_fail
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0x13b
lea rdx, str.GetNtProcessInfoViaPid
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14001c180
mov rbp, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x140014380
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareRealtekBluetooth_service
mov rcx, 0xffffffff80000002
mov ebx, 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001440e
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.WifiOption
mov dword [rsp + 0x48], 4
mov dword [rsp + 0x40], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140014403
cmp dword [rsp + 0x40], eax
cmove ebx, eax
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 0x140014c30
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov ebx, ecx
lea rax, [rsp + 0x50]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
lea rdx, str.SoftwareRealtekBluetooth_service
xor r8d, r8d
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140014cda
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov dword [rsp + 0x28], 4
lea rdx, str.BTLoadOption
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x48], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x140014cc4
lea rcx, str.RegSetValueEx_success
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0xd6
lea rdx, str.SetRegistryForSystemHLK
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, 1
add rsp, 0x30
pop rbx
ret
lea rcx, str.RegSetValueEx_fail
call fcn.140010f80
lea r9, [0x140090270]
mov r8d, 0xdd
lea rdx, str.SetRegistryForSystemHLK
lea rcx, str.__hs_____d_:_____s
call fcn.140011770
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x14004701c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140046d9c
Function at 0x14000bf80
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae 0x14000bfa5
cmp rax, rcx
je 0x14000bfab
cmp rdx, 4
jae 0x14000bfb2
xor eax, eax
xor r8d, r8d
jmp 0x14000c050
pop rbp
jmp fcn.140004f80
xor eax, eax
jmp 0x14000c067
mov r8d, edx
and r8d, 0x1c
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x140022470]
movdqa xmm3, xmmword [0x140022480]
pxor xmm1, xmm1
nop word cs:[rax + rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14000bfe0
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14000c067
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14000c050
pop rbp
ret