joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006c060
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
lea r8, str.TVModeRun
mov rcx, 0xffffffff80000002
lea rdx, str.SOFTWARERealtekAudioGUI_INFORMATION
call fcn.14004e540
mov r9d, dword [rsp + 0x40]
lea rdx, str.CServiceMain::CheckLastTimeTVMode
mov r8d, 0x29e
lea rcx, str._s__d_hadRun_d
call fcn.140033040
cmp dword [rsp + 0x40], 1
jne 0x14006c260
mov r9d, 1
lea rdx, str.CServiceMain::CheckLastTimeTVMode
mov r8d, 0x2a1
lea rcx, str._s__d_hadRun_d
call fcn.140033040
call fcn.140009a60
or edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax + 0x140]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
inc dword [rbx + 0x138]
call fcn.140009a60
cmp dword [rax + 0x138], 0
jne 0x14006c13d
cmp dword [0x1400dc724], 0
je 0x14006c13d
cmp dword [0x1400dc758], 0
jne 0x14006c124
mov rax, qword [0x1400d83b8]
test byte [rax + 0x1c], 1
je 0x14006c13d
mov r8d, 0x39
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.140033040
call fcn.140009a60
mov rbx, qword [rax + 0xd8]
nop dword [rax]
test rbx, rbx
je 0x14006c201
call fcn.140009a60
call fcn.140009a60
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x14006c150
cmp dword [rcx + 0x180], 1
jne 0x14006c150
add rcx, 0xd0
mov qword [rsp + 0x48], rdi
call fcn.14000d820
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
lea r8, str.TVModeSpkMute
mov rcx, 0xffffffff80000002
lea rdx, str.SOFTWARERealtekAudioGUI_INFORMATION
mov rdi, rax
call fcn.14004e540
mov r9d, dword [rsp + 0x40]
lea rdx, str.CServiceMain::CheckLastTimeTVMode
mov r8d, 0x2ae
lea rcx, str._s__d_bMuted_d
call fcn.140033040
mov r9, qword [rdi]
mov rcx, rdi
mov edx, dword [rsp + 0x40]
call qword [r9 + 0x10]
xor r9d, r9d
lea r8, str.TVModeRun
lea rdx, str.SOFTWARERealtekAudioGUI_INFORMATION
mov rcx, 0xffffffff80000002
call fcn.14004e670
mov rdi, qword [rsp + 0x48]
call fcn.140009a60
sub dword [rax + 0x138], 1
mov ecx, dword [rax + 0x138]
jne 0x14006c23d
cmp dword [rax + 0x13c], 0
mov rcx, qword [rax + 0x148]
je case.default.0x14006c22a
add rsp, 0x30
pop rbx
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
cmp ecx, 0x32
jle 0x14006c260
mov r8d, 0x6f
lea rdx, str.CMMPlatform::AudioDevList_Release
lea rcx, str._s__d_calling_AudioDevList_Release_isnt_matched_AudioDevList_AddRef_or_directly_return_in_EnumAudioDeviceStart_loop
add rsp, 0x30
pop rbx
jmp fcn.140033040
add rsp, 0x30
pop rbx
ret
Function at 0x14006c8f0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, qword [rcx + 0x10]
xorps xmm0, xmm0
xor ecx, ecx
movzx ebp, r8w
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14006c97f
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
movzx edx, bp
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079e30
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006c9a0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140015960
mov rdx, qword [rdi + 0x10]
xorps xmm0, xmm0
xor ecx, ecx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14006ca52
mov rcx, qword [rdi + 0x10]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140079e30
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x14006ca80
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x240], rax
call fcn.140004250
mov rcx, rax
test rax, rax
jne 0x14006cac6
mov ecx, 0x80004005
call fcn.140003fc0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rdx, [0x1400949f8]
or rdi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x14006cb0a
movzx ebx, dx
mov ecx, ebx
call fcn.140005710
test rax, rax
je 0x14006cb28
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400053d0
jmp 0x14006cb28
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x14006cb10
mov r8d, eax
lea rcx, [rsp + 0x28]
call fcn.140003d30
nop
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemDirectoryW]
lea r9, str.Kernel32.dll
lea r8, [rsp + 0x30]
lea rdx, str._s_s
lea rcx, [rsp + 0x28]
call fcn.1400054e0
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14006cb91
lea rdx, str.SetDefaultDllDirectories
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
je 0x14006cb87
mov ecx, 0x800
call rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14006cba8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140079e30
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14006cbd0
Capabilities:
Create service
Persist via windows service

Disassembly:
sub rsp, 0x298
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
jne 0x14006cc2c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
call fcn.14005ca10
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x298
ret
xor edx, edx
mov qword [rsp + 0x2a0], rbx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x14006cc63
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.14005ca10
jmp 0x14006cd21
xor ecx, ecx
mov qword [rsp + 0x290], rdi
mov qword [rsp + 0x60], rcx
lea rax, str.NT_AUTHORITYLocalService
mov qword [rsp + 0x58], rax
lea r8, str.Realtek_Audio_Universal_Service
lea rax, [0x1400949f8]
mov qword [rsp + 0x50], rax
lea r9d, [rcx + 4]
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
lea rdx, str.RtkAudioUniversalService
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], SafeArrayUnaccessData
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14006ccef
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
call fcn.14005ca10
jmp 0x14006cd02
lea rdx, str.RtkAudioUniversalService
lea rcx, str._s_is_installed._n
call fcn.14005ca10
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test rdi, rdi
je 0x14006cd19
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x290]
mov rbx, qword [rsp + 0x2a0]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x298
ret
Function at 0x14006cd50
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea r8d, [rax + 1]
mov dword [rsp + 0x38], eax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14006cdb7
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
call fcn.14005ca10
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x50
pop rdi
ret
mov r8d, 0x10024
mov qword [rsp + 0x60], rbx
lea rdx, str.RtkAudioUniversalService
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14006cdf3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
call fcn.14005ca10
jmp 0x14006cecb
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x14006ce95
lea rdx, str.RtkAudioUniversalService
lea rcx, str.Stopping__s.
call fcn.14005ca10
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
je 0x14006ce72
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x14006ce76
lea rcx, [0x14009bfb4]
call fcn.14005ca10
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_QueryServiceStatus]
test eax, eax
jne 0x14006ce40
mov eax, dword [rsp + 0x24]
lea rdx, str.RtkAudioUniversalService
lea rcx, str._n_s_is_stopped._n
cmp eax, 1
je 0x14006ce90
lea rcx, str._n_s_failed_to_stop._n
call fcn.14005ca10
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x14006ceb8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, eax
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
call fcn.14005ca10
jmp 0x14006cecb
lea rdx, str.RtkAudioUniversalService
lea rcx, str._s_is_removed._n
call fcn.14005ca10
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test rbx, rbx
je 0x14006cee2
mov rcx, rbx
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.140079e30
add rsp, 0x50
pop rdi
ret
Function at 0x14006cf00
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
xor esi, esi
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 0x14006cf86
mov r8d, 0xf01ff
lea rdx, str.RtkAudioService
mov rcx, rax
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenServiceW]
mov rbx, rax
test rax, rax
je 0x14006cf78
mov rdx, rax
call fcn.14006d020
test eax, eax
jne 0x14006cf6f
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
mov esi, eax
mov ecx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
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]
jmp 0x14006d007
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rdx, str.stop_RtkAudioService
lea rcx, [rsp + 0x50]
call fcn.1400052a0
mov rbx, rax
lea rdx, str.sc.exe
lea rcx, [rsp + 0x58]
call fcn.1400052a0
nop
mov rdx, rbx
mov rcx, rax
call fcn.140076bc0
mov ecx, 0x1f4
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rdx, str.delete_RtkAudioService
lea rcx, [rsp + 0x50]
call fcn.1400052a0
mov rbx, rax
lea rdx, str.sc.exe
lea rcx, [rsp + 0x58]
call fcn.1400052a0
nop
mov rdx, rbx
mov rcx, rax
call fcn.140076bc0
mov eax, esi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x14006d020
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ebx, eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
jne 0x14006d073
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x14006d150
mov eax, dword [rsp + 0x3c]
cmp eax, 1
je 0x14006d14e
cmp eax, 3
jne 0x14006d0d4
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x14006d068
cmp dword [rsp + 0x3c], 1
je 0x14006d14e
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x2710
ja 0x14006d147
cmp dword [rsp + 0x3c], 3
je 0x14006d085
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_winsvc_l1_1_0.dll_ControlService]
test eax, eax
je 0x14006d068
cmp dword [rsp + 0x3c], 1
je 0x14006d14e
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x24
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l2_1_0.dll_QueryServiceStatusEx]
test eax, eax
je 0x14006d068
cmp dword [rsp + 0x3c], 1
je 0x14006d14e
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x2710
ja 0x14006d147
cmp dword [rsp + 0x3c], 1
jne 0x14006d0f6
jmp 0x14006d14e
mov eax, 0x5b4
jmp 0x14006d150
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140079e30
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x14006d4d0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, edx
mov rdi, rcx
lea rdx, str.CSilencePlayerMgr::PlayASlienceMS
mov r8d, 0xc7
lea rcx, str._s__d
call fcn.140033040
lea rax, [rsp + 0x30]
mov dword [rdi + 8], ebx
mov qword [rsp + 0x28], rax
lea r8, [0x14006d550]
mov r9, rdi
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140079e30
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14006de80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rax, [rsp + 0x30]
xor r8d, r8d
mov dword [rsp + 0x38], ebx
lea rdx, str.SOFTWARELenovoMultiMode
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0x11]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006df18
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x40], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.CameraAudio
mov dword [rsp + 0x3c], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14006df0d
cmp dword [rsp + 0x38], ebx
sete bl
mov dword [rsp + 0x38], ebx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x50
pop rbx
ret

Function at 0x14006df30
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x38], 0
mov r9d, 0x11
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlPriorityControl
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006dfbb
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
lea rdx, str.ConvertibleSlateMode
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x58
ret
Function at 0x14006dfe0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x30]
mov r9d, 0x11
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionAutoRotation
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006e09f
mov rcx, qword [rsp + 0x30]
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], eax
lea rdx, str.Enable
lea rax, [rsp + 0x3c]
mov dword [rsp + 0x3c], 4
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.LastOrientation
mov dword [rbx], 0
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x50
pop rbx
ret

Function at 0x14006e0c0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x38], edx
lea rax, [rsp + 0x30]
mov dword [rsp + 0x40], r8d
lea rdx, str.SOFTWARERealtekRealtekEffectsAP
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006e16c
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov dword [rsp + 0x28], 4
lea rdx, str.AutoRotationState
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]
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], 4
lea rdx, str.SensorIndex
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]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x58
ret
Function at 0x1400721d0
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
sub rsp, 0x28
cmp dword [rcx + 0x130], 0
mov rbp, rcx
mov ebx, edx
je 0x140072381
mov qword [rsp + 0x20], rdi
lea rdi, [rcx + 0xe8]
mov r8, qword [rdi]
test r8, r8
je 0x140072222
xor edx, edx
mov eax, ebx
div dword [rdi + 0x10]
mov rax, qword [r8 + rdx*8]
test rax, rax
je 0x140072222
nop dword [rax]
cmp dword [rax + 0x18], ebx
jne 0x140072219
cmp dword [rax], ebx
je 0x14007222e
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140072210
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rbp
pop rbx
ret
mov qword [rsp + 0x50], rsi
mov rsi, qword [rax + 8]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CancelWaitableTimer]
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x140072258
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rsi + 0x10], 0
movsxd rax, dword [rsi + 0x18]
mov edx, 0x20
mov rcx, rsi
mov qword [rbp + rax*8 + 0x140], 0
call fcn.14007a4b8
mov edx, ebx
mov rcx, rdi
call fcn.14000a790
lea rcx, [rbp + 0xb8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rsi, qword [rsp + 0x50]
mov dword [rbp + 0x138], 1
cmp qword [rdi + 8], 0
je 0x14007233c
mov edx, dword [rdi + 0x10]
xor ecx, ecx
test edx, edx
je 0x1400722bf
mov r9, qword [rdi]
cmp qword [r9 + rcx*8], 0
jne 0x1400722d1
inc ecx
cmp ecx, edx
jb 0x1400722b2
xor r9d, r9d
test r9, r9
je 0x14007233c
mov r11, r9
test r9, r9
jne 0x1400722d7
jmp 0x14007230d
mov r9, qword [r9 + rcx*8]
jmp 0x1400722c2
mov rcx, qword [r9 + 0x10]
test rcx, rcx
jne 0x14007230a
mov eax, dword [r9 + 0x18]
xor edx, edx
mov r10d, dword [rdi + 0x10]
div r10d
inc edx
nop
cmp edx, r10d
jae 0x14007230a
mov rax, qword [rdi]
mov r9, qword [rax + rdx*8]
test r9, r9
cmovne rcx, r9
inc edx
test rcx, rcx
je 0x1400722f0
mov r9, rcx
mov r10, qword [r11 + 8]
test r10, r10
je 0x140072337
movsxd r8, dword [rbp + 0x138]
lea eax, [r8 + 1]
mov dword [rbp + 0x138], eax
mov rax, qword [r10 + 0x10]
mov qword [rbp + r8*8 + 0x140], rax
mov dword [r10 + 0x18], r8d
test r9, r9
jne 0x1400722c7
lea rcx, [rbp + 0xb8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov r9d, dword [rbp + 0x138]
lea rdx, str.CTimerEventNotify::KillTimer
mov r8d, 0x9c
lea rcx, str._s__d_m_nhWaitHandlesCount_d
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
pop rbp
pop rbx
jmp fcn.140033040
mov rcx, qword [0x1400dc868]
mov rdx, rbx
add rsp, 0x28
pop rbp
pop rbx
jmp qword [sym.imp.USER32.dll_KillTimer]
pop rcx
pop rsi
cld
or eax, 0xe2d1d029
invalid