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

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov rdi, rcx
mov r8d, 4
lea rdx, str.CppWindowsService_in_OnStop
call fcn.140068d70
lea rbp, [rdi - 0x168]
lea rsi, [rdi + 0x40]
xor r14d, r14d
test rbp, rbp
cmove rsi, r14
mov rax, qword [0x1400dab08]
test rax, rax
jne 0x140067644
mov ecx, BSTR_UserMarshal
call fcn.140076964
mov rbx, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, BSTR_UserFree
mov rcx, rax
call fcn.14007eaa0
mov rcx, rbx
call fcn.14005e430
nop
mov qword [0x1400dab08], rax
lea rcx, [rax + 0x20]
mov rdx, rsi
call fcn.140009990
lea rsi, [rdi + 0x38]
test rbp, rbp
cmove rsi, r14
mov rax, qword [0x1400dab30]
test rax, rax
jne 0x140067699
mov ecx, 0x248
call fcn.140076964
mov rbx, rax
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x248
mov rcx, rax
call fcn.14007eaa0
mov rcx, rbx
call fcn.14006e230
nop
mov qword [0x1400dab30], rax
lea rcx, [rax + 0x28]
mov rdx, rsi
call fcn.140009990
mov r8d, 0xfc
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_Start
call fcn.14002f950
mov rbx, qword [rdi + 0x50]
test rbx, rbx
je 0x1400676e0
mov rcx, rbx
call fcn.14000e800
mov edx, 0x58
mov rcx, rbx
call fcn.140076db4
mov qword [rdi + 0x50], r14
mov rcx, qword [rdi + 0x58]
test rcx, rcx
je 0x1400676f8
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x20]
mov qword [rdi + 0x58], r14
mov rbx, qword [rdi + 0x60]
test rbx, rbx
je 0x140067753
mov eax, dword [0x1400d967c]
cmp eax, 1
jne 0x14006771c
call fcn.140051e00
call fcn.140053ba0
mov eax, dword [0x1400d967c]
dec eax
mov dword [0x1400d967c], eax
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140067742
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov edx, 0x10
mov rcx, rbx
call fcn.140076db4
mov qword [rdi + 0x60], r14
mov rbx, qword [rdi + 0x68]
test rbx, rbx
je 0x140067775
mov rcx, rbx
call fcn.140075500
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.140076db4
mov qword [rdi + 0x68], r14
mov rbx, qword [rdi + 0x70]
test rbx, rbx
je 0x140067797
mov rcx, rbx
call fcn.14004f090
mov edx, 0x20
mov rcx, rbx
call fcn.140076db4
mov qword [rdi + 0x70], r14
mov rbx, qword [rdi + 0xa8]
test rbx, rbx
je 0x1400677bf
mov rcx, rbx
call fcn.14006d8a0
mov edx, 0x28
mov rcx, rbx
call fcn.140076db4
mov qword [rdi + 0xa8], r14
mov r8d, 0x105
lea rdx, str.CServiceMain::OnStop
lea rcx, str._s__d_End
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
jmp fcn.14002f950
Function at 0x140068d70
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d5010]
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 0x140068dff
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.140076320
mov rbx, qword [rsp + 0x98]
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret

Function at 0x140068e20
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x1400d5010]
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.140013c20
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 0x140068ed2
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.140076320
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x140068f00
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 [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x240], rax
call fcn.140004150
mov rcx, rax
test rax, rax
jne 0x140068f46
mov ecx, 0x80004005
call fcn.140003ec0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rdx, [0x140094658]
or rdi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140068f8a
movzx ebx, dx
mov ecx, ebx
call fcn.1400055d0
test rax, rax
je 0x140068fa8
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140005290
jmp 0x140068fa8
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140068f90
mov r8d, eax
lea rcx, [rsp + 0x28]
call fcn.140003c30
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.1400053a0
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 0x140069011
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 0x140069007
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 0x140069028
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.140076320
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140069050
Capabilities:
Create service
Persist via windows service

Disassembly:
sub rsp, 0x298
mov rax, qword [0x1400d5010]
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 0x1400690ac
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.140058c60
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140076320
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 0x1400690e3
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.140058c60
jmp 0x1400691a1
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, [0x140094658]
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 0x14006916f
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.140058c60
jmp 0x140069182
lea rdx, str.RtkAudioUniversalService
lea rcx, str._s_is_installed._n
call fcn.140058c60
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test rdi, rdi
je 0x140069199
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.140076320
add rsp, 0x298
ret
Function at 0x1400691d0
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x1400d5010]
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 0x140069237
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.140058c60
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140076320
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 0x140069273
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.140058c60
jmp 0x14006934b
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 0x140069315
lea rdx, str.RtkAudioUniversalService
lea rcx, str.Stopping__s.
call fcn.140058c60
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 0x1400692f2
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x1400692f6
lea rcx, [0x1400a4ad4]
call fcn.140058c60
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 0x1400692c0
mov eax, dword [rsp + 0x24]
lea rdx, str.RtkAudioUniversalService
lea rcx, str._n_s_is_stopped._n
cmp eax, 1
je 0x140069310
lea rcx, str._n_s_failed_to_stop._n
call fcn.140058c60
mov rcx, rbx
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_DeleteService]
test eax, eax
jne 0x140069338
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.140058c60
jmp 0x14006934b
lea rdx, str.RtkAudioUniversalService
lea rcx, str._s_is_removed._n
call fcn.140058c60
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test rbx, rbx
je 0x140069362
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.140076320
add rsp, 0x50
pop rdi
ret
Function at 0x140069380
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 0x140069406
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 0x1400693f8
mov rdx, rax
call fcn.1400694a0
test eax, eax
jne 0x1400693ef
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 0x140069487
lea rax, [rsp + 0x50]
mov qword [rsp + 0x60], rax
lea rdx, str.stop_RtkAudioService
lea rcx, [rsp + 0x50]
call fcn.140005160
mov rbx, rax
lea rdx, str.sc.exe
lea rcx, [rsp + 0x58]
call fcn.140005160
nop
mov rdx, rbx
mov rcx, rax
call fcn.140073010
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.140005160
mov rbx, rax
lea rdx, str.sc.exe
lea rcx, [rsp + 0x58]
call fcn.140005160
nop
mov rdx, rbx
mov rcx, rax
call fcn.140073010
mov eax, esi
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400694a0
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 [0x1400d5010]
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 0x1400694f3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x1400695d0
mov eax, dword [rsp + 0x3c]
cmp eax, 1
je 0x1400695ce
cmp eax, 3
jne 0x140069554
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 0x1400694e8
cmp dword [rsp + 0x3c], 1
je 0x1400695ce
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x2710
ja 0x1400695c7
cmp dword [rsp + 0x3c], 3
je 0x140069505
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 0x1400694e8
cmp dword [rsp + 0x3c], 1
je 0x1400695ce
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 0x1400694e8
cmp dword [rsp + 0x3c], 1
je 0x1400695ce
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x2710
ja 0x1400695c7
cmp dword [rsp + 0x3c], 1
jne 0x140069576
jmp 0x1400695ce
mov eax, 0x5b4
jmp 0x1400695d0
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140076320
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x14006a1e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400d5010]
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 0x14006a278
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 0x14006a26d
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.140076320
add rsp, 0x50
pop rbx
ret
Function at 0x14006a290
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400d5010]
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 0x14006a31b
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.140076320
add rsp, 0x58
ret

Function at 0x14006a340
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1400d5010]
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 0x14006a3ff
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.140076320
add rsp, 0x50
pop rbx
ret
Function at 0x14006a420
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, qword [0x1400d5010]
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 0x14006a4cc
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.140076320
add rsp, 0x58
ret
Function at 0x14006c42c
Capabilities:
Create thread

Disassembly:
cmp edx, 0x3fc
jne 0x14006c698
mov rax, rsp
push rdi
sub rsp, 0x80
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
mov rax, qword [0x1400dab30]
test rax, rax
jne 0x14006c497
mov ecx, 0x248
call fcn.140076964
mov rbx, rax
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, 0x248
mov rcx, rax
call fcn.14007eaa0
mov rcx, rbx
call fcn.14006e230
nop
mov qword [0x1400dab30], rax
mov edx, 0x3fc
mov rcx, rax
call fcn.14006e660
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14006c4b7
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov ecx, BSTR_UserMarshal
call fcn.140076964
mov rbx, rax
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, BSTR_UserFree
mov rcx, rax
call fcn.14007eaa0
lea rax, vtable.CWasapiPlayback.0
mov qword [rbx], rax
xor esi, esi
mov qword [rbx + 0x28], rsi
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0xe8], rsi
mov dword [rbx + 0x60], esi
mov dword [rbx + 0xcc], esi
mov qword [rbx + 8], rsi
mov dword [rbx + 0xf8], 1
mov dword [rbx + 0x110], esi
mov qword [rdi + 0x18], rbx
cmp qword [0x1400daaf0], rsi
jne 0x14006c550
mov ecx, 0x150
call fcn.140076964
mov rbx, rax
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, 0x150
mov rcx, rax
call fcn.14007eaa0
mov rcx, rbx
call fcn.1400555d0
nop
mov qword [0x1400daaf0], rax
mov edx, 1
call fcn.140057270
test rax, rax
je 0x14006c677
mov dword [rsp + 0x20], 1
mov rdx, qword [rax + 0x1d8]
mov rcx, qword [rdi + 0x18]
call fcn.14006f6b0
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, qword [rdi + 0x18]
lea r8, [0x14006f980]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
call fcn.140009810
test dword [rax + 0x1c], 0x10000000
je 0x14006c5e7
mov dword [rsp + 0x60], esi
lea r9, [rsp + 0x60]
lea r8, str.RSA0_R0_L
lea rdx, str.SOFTWARERealtekSpkProtection
mov rcx, 0xffffffff80000002
call fcn.14004bdd0
mov eax, esi
cmp dword [rsp + 0x60], eax
setne al
test eax, eax
je 0x14006c677
call fcn.14004d2e0
mov dword [rsp + 0x68], 0x10ec0001
mov dword [rsp + 0x60], esi
mov eax, dword [0x1400da860]
test eax, eax
jg 0x14006c61d
mov r8d, 0x2bc
lea rdx, str.CDriverPropertyClient::KsProperty
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14002f950
jmp 0x14006c677
movups xmm0, xmmword [0x1400928b0]
movaps xmmword [rsp + 0x50], xmm0
test eax, eax
jg 0x14006c63d
mov edx, 1
mov ecx, 0xc000008c
call fcn.140034a10
int3
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8d, [r9 + 0x47]
lea rdx, [rsp + 0x50]
mov rcx, qword [0x1400da858]
mov rcx, qword [rcx]
call fcn.1400538c0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140076320
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret