joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085f60
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 [0x14019b010]
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.1400860b0
test eax, eax
jne 0x140085fe3
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call fcn.140085380
test eax, eax
jne 0x140085fe3
mov r8d, 0x1e8
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
jmp 0x140086084
mov r9d, 2
mov r8, r14
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.1400298b0
mov esi, eax
mov r9d, eax
mov r8d, 0x1ee
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_nRet_d
call fcn.140064950
mov rbp, qword [rsp + 0x38]
test esi, esi
jne 0x140086081
test rdi, rdi
jne 0x14008602a
lea esi, [rdi + 0xd]
jmp 0x140086063
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x140086031
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.140064950
test esi, esi
sete bl
test rbp, rbp
je 0x140086092
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.1400ce210
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400874a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14019b010]
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.1400298b0
mov ebx, eax
test eax, eax
jne 0x1400875b7
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 0x140087591
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400874a0
mov ebx, eax
test eax, eax
jne 0x1400875b7
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 0x140087540
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400875a6
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.140029780
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400875c7
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.1400ce210
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400875f0
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 [0x14019b010]
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.140005430
mov rcx, rax
test rax, rax
je 0x14008779b
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.140004bf0
mov rdi, 0xffffffffffffffff
test al, al
jne 0x14008768b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140087670
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.140004e70
nop
call fcn.140005430
mov rcx, rax
test rax, rax
je 0x140087790
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.140004bf0
test al, al
jne 0x1400876e1
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400876c6
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140004e70
nop
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.140085c50
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.140064950
call fcn.140006b10
mov rdx, rax
test rax, rax
mov rax, qword [rsp + 0x48]
jne 0x140087731
mov ebx, edi
jmp 0x14008775a
cmp dword [rax - 0x10], 0
jge 0x14008773b
mov ebx, edi
jmp 0x14008775a
mov rcx, rax
call fcn.1400d4e88
mov rbx, rax
test rax, rax
mov rax, qword [rsp + 0x48]
jne 0x140087754
mov ebx, edi
jmp 0x14008775a
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 0x140087776
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.1400ce210
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.140005560
nop
mov ecx, 0x80004005
call fcn.140005560
int3
Function at 0x140088850
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 0x140088888
mov r8d, 0x175
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.140064950
mov ecx, dword [rdx + 0x1ac]
mov qword [rsp + 0x30], rbx
lea eax, [rcx - 1]
test eax, 0xfffffffd
je 0x14008890f
cmp ecx, 4
jne 0x140088901
mov rbx, qword [rdx + 0x158]
call fcn.140006fb0
mov rcx, rax
mov r8, rbx
mov rdx, 0xffffffff80000002
call fcn.1400989d0
test rax, rax
je 0x1400888d2
lea rcx, [rax + 0x20]
lea rdx, [rsi - 8]
call fcn.14000bac0
call fcn.14000b810
test dword [rax + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], 0x100
jne 0x1400888f8
call fcn.14000b810
test dword [rax + 0x128], 0x20000
je 0x140088980
mov rbx, qword [rdi + 0x130]
jmp 0x140088957
cmp ecx, 5
jne 0x140088980
mov rbx, qword [rdx + 0x130]
jmp 0x140088957
mov rbx, qword [rdx + 0x130]
call fcn.140006fb0
mov rcx, rax
mov r8, rbx
mov rdx, 0xffffffff80000002
call fcn.1400989d0
test rax, rax
je 0x14008893f
lea rcx, [rax + 0x20]
lea rdx, [rsi - 8]
call fcn.14000bac0
call fcn.14000b810
test dword [rax + 0x1fc], 0x10000000
je 0x140088980
mov rbx, qword [rdi + 0x158]
call fcn.140006fb0
mov r8, rbx
mov rdx, 0xffffffff80000002
mov rcx, rax
call fcn.1400989d0
test rax, rax
je 0x140088980
lea rdx, [rsi - 8]
lea rcx, [rax + 0x20]
call fcn.14000bac0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400895b0
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x68]
mov rdi, rdx
test rax, rax
je 0x1400895d0
cmp qword [rax + 0x10], rdi
je 0x1400895f4
mov rax, qword [rax]
test rax, rax
jne 0x1400895c2
mov r8d, 0x9e
lea rdx, str.CRpcServerHelper::StopRpcEventTunnel
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rdi
jmp fcn.140064950
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x1400895ee
mov qword [rsp + 0x30], rbx
mov rbx, qword [rcx + 0x78]
mov qword [rsp + 0x40], rsi
call fcn.140089890
cmp rbx, 1
mov rsi, rax
mov rbx, qword [rsp + 0x30]
jne 0x14008963b
mov r8d, 0x27
lea rdx, str.CRpcClientEventHelper::StopRpcEventTunnelPreHandle
lea rcx, [0x140114db0]
call fcn.140064950
mov edx, 1
xchg byte [rsi + 8], dl
mov rcx, qword [rdi]
call fcn.14009a790
mov rcx, qword [rdi]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14009ae50
Function at 0x14008a480
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rdx, rdx
jne 0x14008a4ac
mov r8d, SystemTimeToVariantTime
lea rdx, str.CRtkAudioDriverHelper::OnStateChangedDevice
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rbx
jmp fcn.140064950
cmp dword [0x1401a5f40], 0
je 0x14008a527
cmp dword [rdx + 0x170], 0
je 0x14008a527
cmp r8d, 1
jne 0x14008a527
mov r8d, SystemTimeToVariantTime
lea rdx, str.CRtkAudioDriverHelper::OnStateChangedDevice
lea rcx, [0x140114db0]
call fcn.140064950
lea rcx, [rbx + 0x10]
mov dword [rsp + 0x38], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rdx, [0x140113710]
call fcn.1400034c0
test eax, eax
jne 0x14008a527
mov r8d, 0xb8
lea rdx, str.CRtkAudioDriverHelper::OnStateChangedDevice
lea rcx, [0x140114db0]
call fcn.140064950
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14008a8b0
add rsp, 0x20
pop rbx
ret

Function at 0x14008a540
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14000b9e0
mov rcx, rax
call fcn.140094f30
call fcn.14000b9e0
cmp dword [rax + 0x140], 0
jne 0x14008a599
cmp dword [0x1401a48a0], 0
je 0x14008a599
cmp dword [0x1401a48a4], 0
jne 0x14008a580
mov rax, qword [0x14019c308]
test byte [rax + 0x1c], 1
je 0x14008a599
mov r8d, 0x3e
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.140064950
call fcn.14000b9e0
mov rbx, qword [rax + 0xe0]
test rbx, rbx
je 0x14008a5d5
nop word [rax + rax]
call fcn.14000b9e0
call fcn.14000b9e0
test rbx, rbx
je 0x14008a625
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x14008a5d0
call fcn.14008a8b0
test rbx, rbx
jne 0x14008a5b0
call fcn.14000b9e0
sub dword [rax + 0x140], 1
mov ecx, dword [rax + 0x140]
jne 0x14008a5fc
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 0x14008a61f
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.140064950
add rsp, 0x20
pop rbx
ret
mov ecx, 0x80004005
call fcn.140005560
int3
Function at 0x14008b280
Capabilities:
Print debug messages

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x20
mov rbx, r8
mov rbp, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14008b2b6
mov r8d, 0x223
lea rdx, str.CRtkAudioDriverHelper::OnEndpointVolumeChanged
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rsi
pop rbp
pop rbx
jmp fcn.140064950
test rbx, rbx
jne 0x14008b2c3
mov r8d, 0x224
jmp 0x14008b29c
call fcn.14000b810
test byte [rax + 0xc8], 0x10
je 0x14008b309
call fcn.14000b9e0
mov rdx, rbp
call fcn.140096ac0
test rax, rax
je 0x14008b309
cmp dword [rax + 0x170], 0
je 0x14008b309
cmp dword [rax + 0x178], 0
jne 0x14008b309
cmp dword [rax + 0x174], 0
jne 0x14008b309
mov edx, dword [rbx + 0x10]
mov rcx, rax
call fcn.14008ae40
cmp dword [rsi + 0x14], 0
jne 0x14008b319
cmp dword [rsi + 0x18], 0
je 0x14008b3c9
mov ebx, dword [rsi + 0x18]
call fcn.14000b9e0
test ebx, ebx
je 0x14008b32c
call fcn.1400978d0
jmp 0x14008b336
xor r8d, r8d
xor edx, edx
call fcn.140096fa0
test rax, rax
je 0x14008b3c9
mov rdx, qword [rax + 0x168]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], r14
call fcn.140004ab0
mov r14, rax
mov edi, 0xffffffff
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 0
jge 0x14008b36f
mov ebx, edi
jmp 0x14008b389
mov rdx, rbp
call fcn.1400d4e88
mov rbx, rax
test rax, rax
jne 0x14008b383
mov ebx, edi
jmp 0x14008b389
sub rbx, qword [r14]
sar rbx, 1
mov rdx, qword [rsp + 0x48]
shr ebx, 0x1f
xor bl, 1
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
mov r14, qword [rsp + 0x50]
sub edi, 1
mov rdi, qword [rsp + 0x40]
jg 0x14008b3b5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x14008b3c9
lea rcx, [rsi - 0x10]
add rsp, 0x20
pop rsi
pop rbp
pop rbx
jmp fcn.14008afd0
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret
Function at 0x14008b3e0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov qword [r11 - 0x40], rcx
add rcx, 0x20
call fcn.14008f720
nop
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.0
mov qword [rbx], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.1.0
mov qword [rbx + 8], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.2.0
mov qword [rbx + 0x10], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.3.0
mov qword [rbx + 0x18], rax
xor ebp, ebp
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rbp
mov qword [rbx + 0x40], rbp
mov dword [rbx + 0x48], ebp
call fcn.14000b810
movzx ecx, byte [rax + 0x12f]
and ecx, 1
mov dword [rbx + 0x28], ecx
call fcn.14000b810
test dword [rax + 0x2ec], 0x100000
je 0x14008b4ba
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 + 0x2c], r8d
lea rdx, str.CRtkAudioDriverHelperForNormalUser::CRtkAudioDriverHelperForNormalUser
lea rcx, str._s_PowerState_d
call fcn.140064950
call fcn.140034400
lea rcx, [rax + 8]
lea rdx, [rbx + 0x10]
call fcn.140007090
call fcn.14000b810
test dword [rax + 0x1a4], 0x400
je 0x14008b50a
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 + 0x48], r8d
lea rdx, str.CRtkAudioDriverHelperForNormalUser::CRtkAudioDriverHelperForNormalUser
lea rcx, str._s_PowerState_d
call fcn.140064950
call fcn.140014660
lea rcx, [rax + 0x20]
mov rdx, rbx
call fcn.140007090
cmp dword [rbx + 0x28], ebp
je 0x14008b538
call fcn.14008bd20
call fcn.14000bb60
lea rcx, [rax + 0x28]
lea rdx, [rbx + 0x18]
call fcn.140007090
call fcn.14000b9e0
lea rcx, [rax + 0x10]
lea rdx, [rbx + 8]
call fcn.140007090
mov qword [rbx + 0x38], rbp
call fcn.14000b810
test byte [rax + 0x1c0], 4
je 0x14008b56b
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rbx
lea r8, [0x14008bb60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x58], rax
call fcn.14000b810
test byte [rax + 0xb8], 1
jne 0x14008b598
call fcn.14000b810
test byte [rax + 0xb8], 8
jne 0x14008b598
call fcn.14000b810
test dword [rax + 0x1f4], 0x1000
je 0x14008b5c5
mov ecx, 0x20
call fcn.1400ce83c
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.1400c0190
nop
mov qword [rbx + 0x30], rax
mov rax, rbx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400ce210
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14008b5f0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
sub rsp, 0x50
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebx, r8d
mov rsi, rcx
call fcn.14000b810
cmp ebx, 0x2c
jne 0x14008b6fb
cmp dword [0x1401a6948], 0
movups xmm0, xmmword [str._alsC]
mov qword [rsp + 0x68], rdi
mov dword [rsp + 0x40], 0
movaps xmmword [rsp + 0x30], xmm0
jle 0x14008b65e
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
xor r8d, r8d
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x30]
call fcn.140091930
jmp 0x14008b683
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.140091870
mov ebx, dword [rsi + 0x48]
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.140064950
cmp ebx, edi
mov dword [rsi + 0x48], edi
mov rdi, qword [rsp + 0x68]
je 0x14008b6fb
call fcn.14000b9e0
mov edx, 1
call fcn.1400972d0
mov r9, rsi
mov qword [rsp + 0x28], 0
lea r8, [0x14008b720]
mov qword [rsi + 0x40], 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 + 0x50], rax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ce210
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rsi
ret

Function at 0x14008c3cd
Capabilities:
Create thread

Disassembly:
cmp r8d, 0x218
jne 0x14008c4c6
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, r9
lea rdx, str.CRtkAudioDriverHelperForNormalUser::OnWindowsPowerMessage
mov r9d, r8d
mov qword [rsp + 0x20], rbx
mov rdi, rcx
mov r8d, 0x168
lea rcx, str._s__d___uMsg___d__wParam___d
call fcn.140064950
cmp rbx, 0xa
jne 0x14008c4b3
call fcn.14000b810
test dword [rax + 0x2ec], 0x100000
je 0x14008c4b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x50], rsi
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetSystemPowerStatus]
mov ebx, dword [rdi + 0x1c]
lea rdx, str.CRtkAudioDriverHelperForNormalUser::OnWindowsPowerMessage
xor esi, esi
lea rcx, str._s_PowerStateChange_d_ACLineStatus_d
cmp byte [rsp + 0x30], sil
setne sil
xor r8d, r8d
cmp ebx, esi
mov r9d, esi
setne r8b
call fcn.140064950
cmp ebx, esi
je 0x14008c4ae
mov dword [rdi + 0x1c], esi
call fcn.14000b9e0
mov edx, 1
call fcn.1400971b0
mov qword [rdi + 0x30], rax
test rax, rax
je 0x14008c4ae
lea r9, [rdi - 0x10]
mov qword [rsp + 0x28], 0
lea r8, [0x14008b720]
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 + 0x40], rax
mov rsi, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400ce210
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x140094fb0
Capabilities:
Print debug messages

Disassembly:
sub dword [rcx + 0x140], 1
mov eax, dword [rcx + 0x140]
jne 0x140094fcd
mov rcx, qword [rcx + 0x150]
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp eax, 0x32
jle 0x140094feb
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.140064950
ret
Function at 0x140094ff0
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 [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
cmp edx, 0x3f5
jne 0x1400950ad
call fcn.14000bb60
mov rcx, rax
mov edx, 0x3f5
call fcn.1400c3be0
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 0x140095097
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdi, rdi
je 0x140095092
mov r9, qword [rdi + 0x10]
mov r8d, 0xaa
lea rdx, str.CMMPlatform::OnTimer
lea rcx, str._s__d_delete_AudDev_sEndPointId_s
call fcn.140064950
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
test rbx, rbx
jne 0x14009505c
mov rcx, r14
call fcn.14000c7b0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
jmp 0x140095213
cmp edx, 0x441
jne 0x140095213
mov r8d, 0xb9
lea rdx, str.CMMPlatform::OnTimer
lea rcx, str._s__d_GUID_CONSOLE_DISPLAY_STATE__weak_up_from_s0i3
call fcn.140064950
xor r9d, r9d
lea r8, str.s0i3
lea rdx, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rcx, 0xffffffff80000002
call fcn.140085100
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.1400298b0
test eax, eax
je 0x140095159
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.140064950
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x1400951c4
jmp 0x1400951be
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 0x1400951b6
cmp dword [rsp + 0x40], 4
jne 0x1400951b6
mov esi, dword [rsp + 0x38]
test rbx, rbx
je 0x1400951af
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edi, 1
jmp 0x1400951c4
test rbx, rbx
je 0x1400951c4
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.140064950
test esi, esi
jne 0x140095213
mov r8d, 0xc2
lea rdx, str.CMMPlatform::OnTimer
lea rcx, [0x140114db0]
call fcn.140064950
call fcn.14000bb60
mov rcx, rax
mov edx, 0x441
call fcn.1400c3be0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ce210
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