joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007c710
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x68
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r9
mov r14, r8
mov rbp, qword [rsp + 0xb0]
test rdx, rdx
jne 0x14007c765
mov r8d, 0xda
lea rdx, str.CRegClient::GetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005c7e0
xor eax, eax
jmp 0x14007c812
test rbp, rbp
jne 0x14007c772
mov r8d, 0xdc
jmp 0x14007c74b
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rax
mov edi, 1
mov r9d, edi
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140026e20
test eax, eax
je 0x14007c7ab
mov r8d, 0xe5
jmp 0x14007c7e8
test rsi, rsi
je 0x14007c7b5
mov rax, qword [rsi]
jmp 0x14007c7b7
xor eax, eax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14007c7e2
cmp dword [rsp + 0x38], 3
je 0x14007c7fd
mov r8d, 0xe9
lea rdx, str.CRegClient::GetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005c7e0
xor edi, edi
cmp qword [rsp + 0x40], 0
je 0x14007c810
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400ba610
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14007cad0
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12d, r9d
mov r15, r8
mov r14, rdx
mov rbp, rcx
xor eax, eax
mov qword [rsp + 0x50], rax
xor edi, edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rdi
or r9d, 0x20006
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140026e20
mov esi, eax
mov rbx, qword [rsp + 0x48]
test eax, eax
jne 0x14007cb66
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
mov esi, eax
test eax, eax
je 0x14007cb90
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r15
mov r8d, 0x147
lea rcx, str._s__d_DeleteValue__x_s_s__nRet_d
jmp 0x14007cb7c
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], eax
mov r8d, 0x14c
lea rcx, str._s__d_Open__x_s__nRet_d_AccMask_x
mov qword [rsp + 0x20], r14
mov r9, rbp
lea rdx, str.CRegClient::DeleteRegValue
call fcn.14005c7e0
test rbx, rbx
je 0x14007cba1
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbx, rdi
test esi, esi
sete dil
test rbx, rbx
je 0x14007cbb5
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ba610
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007d410
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
xor eax, eax
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov ebp, ebx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x48], rbx
call fcn.14007d560
test eax, eax
jne 0x14007d493
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call fcn.14007c830
test eax, eax
jne 0x14007d493
mov r8d, 0x1e8
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005c7e0
jmp 0x14007d534
mov r9d, 2
mov r8, r14
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140026e20
mov esi, eax
mov r9d, eax
mov r8d, 0x1ee
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_nRet_d
call fcn.14005c7e0
mov rbp, qword [rsp + 0x38]
test esi, esi
jne 0x14007d531
test rdi, rdi
jne 0x14007d4da
lea esi, [rdi + 0xd]
jmp 0x14007d513
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x14007d4e1
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov esi, eax
mov r9d, esi
mov r8d, 0x1f5
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_nRet_d
call fcn.14005c7e0
test esi, esi
sete bl
test rbp, rbp
je 0x14007d542
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ba610
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007e950
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov qword [rsp + 0x40], rbp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], rbp
lea rcx, [rsp + 0x40]
call fcn.140026e20
mov ebx, eax
test eax, eax
jne 0x14007ea67
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
jne 0x14007ea41
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14007e950
mov ebx, eax
test eax, eax
jne 0x14007ea67
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumKeyExW]
test eax, eax
je 0x14007e9f0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007ea56
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.140026cf0
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14007ea77
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400ba610
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14007eaa0
Capabilities:
Persist via run registry key

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [r11 - 0x20], 0
lea rax, [r11 - 0x48]
mov qword [r11 - 0x30], rax
lea rax, [r11 - 0x40]
mov qword [r11 - 0x28], rax
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x14007ec4b
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rbx, str.RtkAudUService
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400046a0
mov rdi, 0xffffffffffffffff
test al, al
jne 0x14007eb3b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14007eb20
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140004940
nop
call fcn.140004f00
mov rcx, rax
test rax, rax
je 0x14007ec40
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rbx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400046a0
test al, al
jne 0x14007eb91
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x14007eb76
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140004940
nop
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.14007d100
nop
mov r9, qword [rsp + 0x48]
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopy
lea rdx, str.CRegKeyMgr::CheckRtkAudUServiceRunKey
lea rcx, str._s__d__s
call fcn.14005c7e0
call fcn.1400065e0
mov rdx, rax
test rax, rax
mov rax, qword [rsp + 0x48]
jne 0x14007ebe1
mov ebx, edi
jmp 0x14007ec0a
cmp dword [rax - 0x10], 0
jge 0x14007ebeb
mov ebx, edi
jmp 0x14007ec0a
mov rcx, rax
call fcn.1400c08b0
mov rbx, rax
test rax, rax
mov rax, qword [rsp + 0x48]
jne 0x14007ec04
mov ebx, edi
jmp 0x14007ec0a
sub rbx, rax
sar rbx, 1
not ebx
shr ebx, 0x1f
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14007ec26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ba610
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.140005030
nop
mov ecx, 0x80004005
call fcn.140005030
int3
Function at 0x14007fc80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14007fcb8
mov r8d, 0x16a
lea rdx, str.CRegPKeyReWriter::OnRemoveDevice
lea rcx, str._s__d_RETURN_ON_FALSE
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14005c7e0
mov ecx, dword [rdx + 0x1ac]
mov qword [rsp + 0x30], rbx
lea eax, [rcx - 1]
test eax, 0xfffffffd
je 0x14007fd3f
cmp ecx, 4
jne 0x14007fd31
mov rbx, qword [rdx + 0x158]
call fcn.140006a80
mov rcx, rax
mov r8, rbx
mov rdx, 0xffffffff80000002
call fcn.14008e750
test rax, rax
je 0x14007fd02
lea rcx, [rax + 0x20]
lea rdx, [rsi - 8]
call fcn.14000b590
call fcn.14000b1e0
test dword [rax + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], 0x100
jne 0x14007fd28
call fcn.14000b1e0
test dword [rax + 0x128], 0x20000
je 0x14007fdb0
mov rbx, qword [rdi + 0x130]
jmp 0x14007fd87
cmp ecx, 5
jne 0x14007fdb0
mov rbx, qword [rdx + 0x130]
jmp 0x14007fd87
mov rbx, qword [rdx + 0x130]
call fcn.140006a80
mov rcx, rax
mov r8, rbx
mov rdx, 0xffffffff80000002
call fcn.14008e750
test rax, rax
je 0x14007fd6f
lea rcx, [rax + 0x20]
lea rdx, [rsi - 8]
call fcn.14000b590
call fcn.14000b1e0
test dword [rax + 0x1fc], 0x10000000
je 0x14007fdb0
mov rbx, qword [rdi + 0x158]
call fcn.140006a80
mov r8, rbx
mov rdx, 0xffffffff80000002
mov rcx, rax
call fcn.14008e750
test rax, rax
je 0x14007fdb0
lea rdx, [rsi - 8]
lea rcx, [rax + 0x20]
call fcn.14000b590
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140081580
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rdx, rdx
jne 0x1400815ac
mov r8d, 0xa5
lea rdx, str.CRtkAudioDriverHelper::OnStateChangedDevice
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rbx
jmp fcn.14005c7e0
cmp dword [0x140158e50], 0
je 0x140081627
cmp dword [rdx + 0x170], 0
je 0x140081627
cmp r8d, 1
jne 0x140081627
mov r8d, 0xa8
lea rdx, str.CRtkAudioDriverHelper::OnStateChangedDevice
lea rcx, [0x1400deb00]
call fcn.14005c7e0
lea rcx, [rbx + 0x10]
mov dword [rsp + 0x38], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rdx, [0x1400dc620]
call fcn.1400031c0
test eax, eax
jne 0x140081627
mov r8d, 0xab
lea rdx, str.CRtkAudioDriverHelper::OnStateChangedDevice
lea rcx, [0x1400deb00]
call fcn.14005c7e0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1400819b0
add rsp, 0x20
pop rbx
ret
Function at 0x140081640
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14000b4c0
mov rcx, rax
call fcn.14008b0b0
call fcn.14000b4c0
cmp dword [rax + 0x140], 0
jne 0x140081699
cmp dword [0x140157cb8], 0
je 0x140081699
cmp dword [0x140157cb4], 0
jne 0x140081680
mov rax, qword [0x140151150]
test byte [rax + 0x1c], 1
je 0x140081699
mov r8d, 0x3e
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.14005c7e0
call fcn.14000b4c0
mov rbx, qword [rax + 0xe0]
test rbx, rbx
je 0x1400816d5
nop word [rax + rax]
call fcn.14000b4c0
call fcn.14000b4c0
test rbx, rbx
je 0x140081725
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x1400816d0
call fcn.1400819b0
test rbx, rbx
jne 0x1400816b0
call fcn.14000b4c0
sub dword [rax + 0x140], 1
mov ecx, dword [rax + 0x140]
jne 0x1400816fc
mov rcx, qword [rax + 0x150]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp ecx, 0x32
jle 0x14008171f
mov r8d, 0x80
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, 0x20
pop rbx
jmp fcn.14005c7e0
add rsp, 0x20
pop rbx
ret
mov ecx, 0x80004005
call fcn.140005030
int3

Function at 0x1400820d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
test rdx, rdx
jne 0x140082108
mov r8d, 0x1c1
lea rdx, str.CRtkAudioDriverHelper::OnEndpointVolumeChanged
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14005c7e0
test rbx, rbx
jne 0x140082115
mov r8d, 0x1c2
jmp 0x1400820eb
call fcn.14000b1e0
test byte [rax + 0xc8], 0x10
je 0x14008215b
call fcn.14000b4c0
mov rdx, rdi
call fcn.14008cc20
test rax, rax
je 0x14008215b
cmp dword [rax + 0x170], 0
je 0x14008215b
cmp dword [rax + 0x178], 0
jne 0x14008215b
cmp dword [rax + 0x174], 0
jne 0x14008215b
mov edx, dword [rbx + 0x10]
mov rcx, rax
call fcn.140081f40
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140082170
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [r11 - 0x30], rcx
add rcx, 0x18
call fcn.140085b10
nop
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.2.0
mov qword [rbx], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.1.0
mov qword [rbx + 8], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.0
mov qword [rbx + 0x10], rax
xor ebp, ebp
mov dword [rbx + 0x20], ebp
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x38], rbp
mov dword [rbx + 0x40], ebp
call fcn.14000b1e0
movzx ecx, byte [rax + 0x12f]
and ecx, 1
mov dword [rbx + 0x20], ecx
call fcn.14000b1e0
test dword [rax + 0x1a4], 0x400
je 0x14008223e
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetSystemPowerStatus]
mov r8d, ebp
cmp byte [rsp + 0x40], bpl
setne r8b
mov dword [rbx + 0x40], r8d
lea rdx, str.CRtkAudioDriverHelperForNormalUser::CRtkAudioDriverHelperForNormalUser
lea rcx, str._s_PowerState_d
call fcn.14005c7e0
call fcn.140014060
lea rcx, [rax + 0x20]
mov rdx, rbx
call fcn.140006b40
cmp dword [rbx + 0x20], ebp
je 0x14008226c
call fcn.140082a40
call fcn.14000b630
lea rcx, [rax + 0x28]
lea rdx, [rbx + 0x10]
call fcn.140006b40
call fcn.14000b4c0
lea rcx, [rax + 0x10]
lea rdx, [rbx + 8]
call fcn.140006b40
mov qword [rbx + 0x30], rbp
call fcn.14000b1e0
test byte [rax + 0x1c0], 4
je 0x14008229f
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x140082880]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x50], rax
call fcn.14000b1e0
test byte [rax + 0xb8], 1
jne 0x1400822cc
call fcn.14000b1e0
test byte [rax + 0xb8], 8
jne 0x1400822cc
call fcn.14000b1e0
test dword [rax + 0x1f4], 0x1000
je 0x1400822f9
mov ecx, 0x20
call fcn.1400bac44
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov rcx, rax
call fcn.1400ad670
nop
mov qword [rbx + 0x28], rax
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ba610
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140082320
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, r8d
mov rsi, rcx
call fcn.14000b1e0
cmp ebx, 0x2c
jne 0x14008242b
cmp dword [0x140159850], 0
movups xmm0, xmmword [str._alsC]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x40], 0
movaps xmmword [rsp + 0x30], xmm0
jle 0x14008238e
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
xor r8d, r8d
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x30]
call fcn.140087d20
jmp 0x1400823b3
xor r9d, r9d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
xor ecx, ecx
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x38]
call fcn.140087c60
mov ebx, dword [rsi + 0x40]
lea rdx, str.CRtkAudioDriverHelperForNormalUser::IsACPowerStateChanged
xor edi, edi
lea rcx, str._s_PowerStateChange_d_SysPowerState_d_DrvAcPowerState_d
cmp dword [rsp + 0x40], edi
mov r9d, ebx
sete dil
xor r8d, r8d
cmp ebx, edi
mov dword [rsp + 0x20], edi
setne r8b
call fcn.14005c7e0
cmp ebx, edi
mov dword [rsi + 0x40], edi
mov rdi, qword [rsp + 0x68]
je 0x14008242b
call fcn.14000b4c0
mov edx, 1
call fcn.14008d150
mov r9, rsi
mov qword [rsp + 0x28], 0
lea r8, [0x140082450]
mov qword [rsi + 0x38], rax
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rsi + 0x48], rax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ba610
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret
Function at 0x14008b130
Capabilities:
Print debug messages

Disassembly:
sub dword [rcx + 0x140], 1
mov eax, dword [rcx + 0x140]
jne 0x14008b14d
mov rcx, qword [rcx + 0x150]
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp eax, 0x32
jle 0x14008b16b
mov r8d, 0x80
lea rdx, str.CMMPlatform::AudioDevList_Release
lea rcx, str._s__d_calling_AudioDevList_Release_isnt_matched_AudioDevList_AddRef_or_directly_return_in_EnumAudioDeviceStart_loop
jmp fcn.14005c7e0
ret
Function at 0x14008b170
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x70
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
cmp edx, 0x3f5
jne 0x14008b22d
call fcn.14000b630
mov rcx, rax
mov edx, 0x3f5
call fcn.1400afdc0
lea rsi, [rbx + 0xa0]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea r14, [rbx + 0x108]
mov rbx, qword [r14]
test rbx, rbx
je 0x14008b217
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdi, rdi
je 0x14008b212
mov r9, qword [rdi + 0x10]
mov r8d, 0xaa
lea rdx, str.CMMPlatform::OnTimer
lea rcx, str._s__d_delete_AudDev_sEndPointId_s
call fcn.14005c7e0
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test rbx, rbx
jne 0x14008b1dc
mov rcx, r14
call fcn.14000c270
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x14008b393
cmp edx, 0x441
jne 0x14008b393
mov r8d, 0xb9
lea rdx, str.CMMPlatform::OnTimer
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__weak_up_from_s0i3
call fcn.14005c7e0
xor r9d, r9d
lea r8, str.s0i3
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.14007c5b0
mov esi, 0x63
xor eax, eax
mov qword [rsp + 0x50], rax
xor edi, edi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x38], edi
lea r9d, [rsi - 0x62]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.140026e20
test eax, eax
je 0x14008b2d9
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14005c7e0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14008b344
jmp 0x14008b33e
mov dword [rsp + 0x3c], 4
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.s0i3
mov rbx, qword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14008b336
cmp dword [rsp + 0x40], 4
jne 0x14008b336
mov esi, dword [rsp + 0x38]
test rbx, rbx
je 0x14008b32f
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edi, 1
jmp 0x14008b344
test rbx, rbx
je 0x14008b344
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsp + 0x20], edi
mov r9d, esi
mov r8d, 0xbe
lea rdx, str.CMMPlatform::OnTimer
lea rcx, str._s__d_s0i3_d__bSuccess_d
call fcn.14005c7e0
test esi, esi
jne 0x14008b393
mov r8d, 0xc2
lea rdx, str.CMMPlatform::OnTimer
lea rcx, [0x1400deb00]
call fcn.14005c7e0
call fcn.14000b630
mov rcx, rax
mov edx, 0x441
call fcn.1400afdc0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ba610
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x14008dd30
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140150010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rcx + 0x508]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x14008dd7f
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x14008dd7a
add rcx, 4
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x14008df78
test rbx, rbx
jne 0x14008dd59
mov qword [rsp + 0x70], rbp
mov ecx, BSTR_UserUnmarshal
mov qword [rsp + 0x78], r14
call fcn.1400bac44
xor edx, edx
mov r8d, BSTR_UserUnmarshal
mov rcx, rax
mov rbx, rax
call fcn.1400c0ee0
lea rbp, [rbx + 4]
mov edx, 0x7f
mov rcx, rbp
sub rsi, rbp
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7f]
test rax, rax
je 0x14008dde4
movzx eax, word [rsi + rcx]
test ax, ax
je 0x14008dde4
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14008ddc0
jmp 0x14008dde9
test rdx, rdx
jne 0x14008dded
sub rcx, 2
xor r14d, r14d
mov word [rcx], r14w
cmp dword [rdi + 0x4f8], r14d
je 0x14008de8b
mov rcx, qword [rdi + 0x4e0]
mov r9, rbx
mov qword [rsp + 0x28], r14
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14008de81
mov eax, dword [rbx]
cmp eax, 4
je 0x14008de49
cmp eax, 0xb
jne 0x14008de8b
lea r8, [rbx + 0x108]
mov rdx, rbp
lea rcx, [rdi + 0x4e0]
call fcn.14008ead0
jmp 0x14008de8b
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0x108]
mov rcx, qword [rdi + 0x4e0]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
jmp 0x14008de8b
mov dword [rbx + 0x110], 1
mov rsi, qword [rdi + 0x510]
mov rbp, qword [rsp + 0x70]
cmp qword [rdi + 0x528], r14
jne 0x14008df31
mov ecx, dword [rdi + 0x530]
test rcx, rcx
jne 0x14008deb4
mov rcx, r14
jmp 0x14008ded2
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 0x18
jb 0x14008df8d
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14008df8d
mov rcx, qword [rdi + 0x520]
mov qword [rax], rcx
mov qword [rdi + 0x520], rax
mov r8d, dword [rdi + 0x530]
lea ecx, [r8 - 1]
lea rdx, [rcx*2 + 1]
add rdx, rcx
sub r8d, 1
lea rdx, [rax + rdx*8]
js 0x14008df31
mov rax, qword [rdi + 0x528]
mov qword [rdx], rax
mov qword [rdi + 0x528], rdx
sub rdx, 0x18
sub r8d, 1
jns 0x14008df16
mov rcx, qword [rdi + 0x528]
mov rax, qword [rcx]
mov qword [rcx + 0x10], rbx
mov qword [rdi + 0x528], rax
mov qword [rcx + 8], rsi
mov qword [rcx], r14
inc qword [rdi + 0x518]
mov rax, qword [rdi + 0x510]
test rax, rax
je 0x14008df65
mov qword [rax], rcx
jmp 0x14008df6c
mov qword [rdi + 0x508], rcx
mov r14, qword [rsp + 0x78]
mov qword [rdi + 0x510], rcx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ba610
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x8007000e
call fcn.140005030
int3