joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098bd0
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12d, r9d
mov r15, r8
mov r14, rdx
mov rbp, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor edi, edi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], rdi
or r9d, 0x20006
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140035040
mov esi, eax
mov rbx, qword [rsp + 0x40]
test eax, eax
jne 0x140098c5e
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 0x140098c88
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 0x140098c74
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.140075db0
test rbx, rbx
je 0x140098c99
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 0x140098cad
mov rcx, rbx
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.1400f4410
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140099050
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r9
mov r12, r8
mov r15, rdx
mov rbp, rcx
mov r14, qword [rsp + 0xd0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x1400991ec
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea r13, [0x14011c160]
mov rdx, r13
lea rcx, [rsp + 0x38]
call fcn.14000c4c0
lea rdi, [rbx - 1]
test al, al
jne 0x1400990ff
mov rax, rdi
inc rax
cmp word [r13 + rax*2], 0
jne 0x1400990e2
mov r8d, eax
mov rdx, r13
lea rcx, [rsp + 0x38]
call fcn.14000c750
nop
mov r9d, 1
mov r8, r15
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.140035040
test eax, eax
jne 0x140099192
mov eax, dword [r14]
add eax, eax
mov dword [rsp + 0x30], eax
mov dword [r14], ebx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r12
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140099192
mov eax, dword [rsp + 0x34]
dec eax
cmp eax, 1
jbe 0x140099160
mov eax, SafeArrayDestroy
jmp 0x140099190
mov ecx, dword [rsp + 0x30]
test rsi, rsi
je 0x140099189
test ecx, ecx
je 0x140099186
test cl, 1
jne 0x14009917f
mov eax, ecx
shr rax, 1
cmp word [rsi + rax*2 - 2], 0
je 0x140099189
mov eax, SafeArrayDestroy
jmp 0x140099190
mov word [rsi], bx
shr ecx, 1
mov dword [r14], ecx
mov eax, ebx
test eax, eax
sete bl
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400991bc
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400991cc
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f4410
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.14000ce90
int3
Function at 0x140099530
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x58
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r9
mov r15, r8
mov r14, rdx
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xor ebx, ebx
mov ebp, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x40], rbx
call fcn.140099680
test eax, eax
jne 0x1400995ab
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call fcn.140098950
test eax, eax
jne 0x1400995ab
mov r8d, 0x1e8
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140075db0
jmp 0x140099653
mov r9d, 2
mov r8, r14
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.140035040
mov esi, eax
mov r9d, eax
mov r8d, 0x1ee
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_nRet_d
call fcn.140075db0
mov rbp, qword [rsp + 0x30]
test esi, esi
jne 0x140099650
test rdi, rdi
jne 0x1400995f2
lea esi, [rdi + 0xd]
jmp 0x140099632
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x140099600
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.140075db0
test esi, esi
sete bl
test rbp, rbp
je 0x140099661
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f4410
add rsp, 0x58
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009aa90
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1401aa010]
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.140035040
mov ebx, eax
test eax, eax
jne 0x14009aba7
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 0x14009ab81
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14009aa90
mov ebx, eax
test eax, eax
jne 0x14009aba7
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 0x14009ab30
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009ab96
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.140034f00
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14009abb7
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.1400f4410
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x14009abe0
Capabilities:
Persist via run registry key

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r11 - 0x18], 0
lea rax, [r11 - 0x38]
mov qword [r11 - 0x28], rax
lea rax, [r11 - 0x30]
mov qword [r11 - 0x20], rax
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x14009add8
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea rbx, str.RtkAudUService
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000c4c0
mov rdi, 0xffffffffffffffff
test al, al
jne 0x14009ac7b
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x14009ac60
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.14000c750
nop
call fcn.14000cd60
mov rcx, rax
test rax, rax
je 0x14009adcd
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
call qword [case.0x14005eeb3.0]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea rbx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14000c4c0
test al, al
jne 0x14009acdb
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14009acc0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.14000c750
nop
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.140099200
nop
mov r9, qword [rsp + 0x40]
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopy
lea rdx, str.CRegKeyMgr::CheckRtkAudUServiceRunKey
lea rcx, str._s__d__s
call fcn.140075db0
lea rsi, [0x1401aa4b8]
cmp word [0x1401aa4b8], 0
jne 0x14009ad57
mov ebx, 0x22
mov word [0x1401aa4b8], bx
mov r8d, 0xfe
lea rdx, [0x1401aa4ba]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrlenW]
movsxd rcx, eax
mov word [rsi + rcx*2], bx
mov rax, qword [rsp + 0x40]
cmp dword [rax - 0x10], 0
jge 0x14009ad66
mov ebx, edi
jmp 0x14009ad88
mov rdx, rsi
mov rcx, rax
call fcn.1400fa604
mov rbx, rax
test rax, rax
mov rax, qword [rsp + 0x40]
jne 0x14009ad82
mov ebx, edi
jmp 0x14009ad88
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 0x14009adae
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14005eeb3.0]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400f4410
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov ecx, 0x80004005
call fcn.14000ce90
nop
mov ecx, 0x80004005
call fcn.14000ce90
int3
Function at 0x14009ced0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14009cf08
mov r8d, reloc.OLEAUT32.dll_SafeArrayCopyData
lea rdx, str.CRegPKeyReWriter::OnRemoveDevice
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140075db0
mov ecx, dword [rdx + 0x1b4]
lea eax, [rcx - 1]
test eax, 0xfffffffd
je 0x14009cf91
cmp ecx, 4
jne 0x14009cf7e
call fcn.14000ea20
mov r8, qword [rbx + 0x160]
mov rcx, rax
mov rdx, 0xffffffff80000002
call fcn.1400ae520
test rax, rax
je 0x14009cf4a
lea rcx, [rax + 0x20]
lea rdx, [rdi - 8]
call fcn.140014720
call fcn.140014310
test dword [rax + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], 0x100
jne 0x14009cf70
call fcn.140014310
test dword [rax + 0x128], 0x20000
je 0x14009cffc
call fcn.14000ea20
mov r8, qword [rbx + 0x138]
jmp 0x14009cfdb
cmp ecx, 5
jne 0x14009cffc
call fcn.14000ea20
mov r8, qword [rbx + 0x138]
jmp 0x14009cfdb
call fcn.14000ea20
mov r8, qword [rbx + 0x138]
mov rcx, rax
mov rdx, 0xffffffff80000002
call fcn.1400ae520
test rax, rax
je 0x14009cfbe
lea rcx, [rax + 0x20]
lea rdx, [rdi - 8]
call fcn.140014720
call fcn.140014310
test dword [rax + 0x1fc], 0x10000000
je 0x14009cffc
call fcn.14000ea20
mov r8, qword [rbx + 0x160]
mov rdx, 0xffffffff80000002
mov rcx, rax
call fcn.1400ae520
test rax, rax
je 0x14009cffc
lea rdx, [rdi - 8]
lea rcx, [rax + 0x20]
call fcn.140014720
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14009dd80
Capabilities:
Print debug messages

Disassembly:
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x68]
mov rdi, rdx
test rax, rax
je 0x14009dda0
cmp qword [rax + 0x10], rdi
je 0x14009ddc4
mov rax, qword [rax]
test rax, rax
jne 0x14009dd92
mov r8d, 0x9e
lea rdx, str.CRpcServerHelper::StopRpcEventTunnel
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rdi
jmp fcn.140075db0
add rsp, 0x20
pop rdi
ret
test rdi, rdi
je 0x14009ddbe
mov qword [rsp + 0x30], rbx
mov rbx, qword [rcx + 0x78]
mov qword [rsp + 0x40], rsi
call fcn.14009e090
cmp rbx, 1
mov rsi, rax
mov rbx, qword [rsp + 0x30]
jne 0x14009de0b
mov r8d, 0x27
lea rdx, str.CRpcClientEventHelper::StopRpcEventTunnelPreHandle
lea rcx, [0x14011bca8]
call fcn.140075db0
mov edx, 1
xchg byte [rsi + 8], dl
mov rcx, qword [rdi]
call fcn.1400b0420
mov rcx, qword [rdi]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.1400b0b00
Function at 0x14009f070
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x30], rbx
call fcn.140014660
mov rcx, rax
call fcn.1400aa410
call fcn.140014660
cmp dword [rax + 0x140], 0
jne 0x14009f0cc
cmp dword [0x1401b2668], 0
je 0x14009f0cc
mov rax, qword [0x1401ab9a8]
test byte [rax + 0x1c], 1
jne 0x14009f0b3
cmp dword [0x1401b266c], 0
je 0x14009f0cc
mov r8d, 0x49
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.140075db0
call fcn.140014660
mov rbx, qword [rax + 0xe0]
test rbx, rbx
je 0x14009f112
mov qword [rsp + 0x20], rdi
call fcn.140014660
call fcn.140014660
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdi, rdi
je 0x14009f108
mov rcx, rdi
call fcn.14009f440
mov rcx, rdi
call fcn.14009fbd0
test rbx, rbx
jne 0x14009f0e2
mov rdi, qword [rsp + 0x20]
call fcn.140014660
mov rbx, qword [rsp + 0x30]
sub dword [rax + 0x140], 1
mov ecx, dword [rax + 0x140]
jne 0x14009f13d
mov rcx, qword [rax + 0x150]
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp ecx, 0x32
jle 0x14009f15f
mov r8d, 0x8b
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, 0x28
jmp fcn.140075db0
add rsp, 0x28
ret
Function at 0x1400a0b80
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x1401aa010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov ebx, r8d
mov rsi, rcx
call fcn.140014310
cmp ebx, 0x2c
jne 0x1400a0cdf
mov qword [rsp + 0x78], rbp
xor ebp, ebp
cmp dword [0x1401baeb0], ebp
mov dword [rsp + 0x50], ebp
jle 0x1400a0beb
movups xmm0, xmmword [0x140119fd8]
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
xor r8d, r8d
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x40]
movaps xmmword [rsp + 0x40], xmm0
call fcn.1400a6d40
jmp 0x1400a0c5f
mov eax, dword [0x1401bae80]
mov dword [rsp + 0x54], ebp
test eax, eax
jg 0x1400a0c14
mov r8d, 0x385
lea rdx, str.CDriverPropertyClient::KsProperty
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140075db0
jmp 0x1400a0c5f
movups xmm0, xmmword [0x140119fd8]
movaps xmmword [rsp + 0x40], xmm0
test eax, eax
jle 0x1400a0cfa
mov rcx, qword [0x1401bae78]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
lea r8d, [r9 + 0x38]
call fcn.1400a7770
cmp dword [rsp + 0x50], ebp
lea rdx, str.CRtkAudioDriverHelperForNormalUser::IsACPowerStateChanged
mov ebx, dword [rsi + 0x48]
lea rcx, str._s_PowerStateChange_d_SysPowerState_d_DrvAcPowerState_d
mov qword [rsp + 0x80], rdi
mov r8d, ebp
mov edi, ebp
mov r9d, ebx
sete dil
cmp ebx, edi
mov dword [rsp + 0x20], edi
setne r8b
call fcn.140075db0
cmp ebx, edi
mov dword [rsi + 0x48], edi
mov rdi, qword [rsp + 0x80]
je 0x1400a0cda
call fcn.140014660
mov edx, 1
call fcn.1400acbc0
mov r9, rsi
mov qword [rsp + 0x28], rbp
lea r8, [0x1400a0d10]
mov qword [rsi + 0x40], rax
xor edx, edx
mov dword [rsp + 0x20], ebp
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rsi + 0x50], rax
mov rbp, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400f4410
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rsi
ret
mov edx, 1
mov ecx, 0xc000008c
call fcn.14001dd60
int3
Function at 0x1400a1b30
Capabilities:
Create thread

Disassembly:
cmp r8d, 0x218
jne 0x1400a1c36
push rbx
push rdi
sub rsp, 0x58
mov rax, qword [0x1401aa010]
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.140075db0
cmp rbx, 0xa
jne 0x1400a1c23
call fcn.140014310
test dword [rax + 0x2ec], 0x100000
je 0x1400a1c23
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.140075db0
cmp ebx, esi
je 0x1400a1c1e
mov dword [rdi + 0x1c], esi
call fcn.140014660
mov edx, 1
call fcn.1400acab0
mov qword [rdi + 0x30], rax
test rax, rax
je 0x1400a1c1e
lea r9, [rdi - 0x10]
mov qword [rsp + 0x28], 0
lea r8, [0x1400a0d10]
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.1400f4410
add rsp, 0x58
pop rdi
pop rbx
ret
Function at 0x1400a21e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xorps xmm0, xmm0
lea rdx, [rcx + 0x2fc]
movups xmmword [rcx + 0x300], xmm0
xor eax, eax
mov rsi, rcx
movups xmmword [rcx + 0x310], xmm0
movups xmmword [rcx + 0x320], xmm0
movups xmmword [rcx + 0x330], xmm0
mov dword [rcx + 0x348], eax
call fcn.1400a3230
mov eax, dword [rsi + 0x1c0]
shr eax, 9
xor eax, dword [rsi + 0x300]
and eax, 0x200
xor dword [rsi + 0x300], eax
cmp dword [rsi + 0x2f8], 0
jne 0x1400a2259
lea rdx, [rsi + 0x340]
xor eax, eax
mov qword [rdx], rax
call fcn.1400a29c0
test dword [rsi + 0x2fc], 0x200000
je 0x1400a2276
or dword [rsi + 0x90], 3
mov dword [rsi + 0x84], 1
movzx eax, word [rsi + 0x340]
lea r9, [rsi + 0x2e0]
mov word [rsp + 0x28], ax
lea rdx, [rsi + 0x8c]
movzx eax, word [rsi + 0x342]
lea r8, [rsi + 0x2fc]
lea rcx, [rsi + 0x348]
mov word [rsp + 0x20], ax
call fcn.14000a870
test byte [rsi + 0x2ec], 2
mov edi, 4
mov dword [rsi + 0x88], edi
je 0x1400a22d3
mov edi, 5
mov dword [rsi + 0x88], edi
jmp 0x1400a235f
cmp dword [0x1401bae80], 0
je 0x1400a22e6
xor edi, edi
mov dword [rsi + 0x88], edi
jmp 0x1400a235f
cmp dword [0x1401baea0], 0
je 0x1400a235f
mov qword [rsp + 0x40], rbp
call fcn.14001d830
mov ebx, dword [0x1401bae80]
call fcn.14001d830
mov ebp, dword [0x1401baea0]
test ebx, ebx
jne 0x1400a234b
test ebp, ebp
je 0x1400a234b
xor edi, edi
mov eax, edi
mov ebx, edi
test ebp, ebp
jle 0x1400a2331
nop dword [rax]
mov ecx, ebx
call fcn.1400a3640
test eax, eax
jne 0x1400a234b
inc ebx
cmp ebx, ebp
jl 0x1400a2320
test eax, eax
jne 0x1400a234b
call fcn.1400a36e0
test eax, eax
setne dil
add edi, 2
mov dword [rsi + 0x88], edi
jmp 0x1400a235a
mov dword [rsi + 0x88], 1
mov edi, 1
mov rbp, qword [rsp + 0x40]
mov r9d, edi
lea rdx, str.CRtkAudioDriverInfo::RefreshDriverDependantMode
mov r8d, 0x2c0
lea rcx, str._s__d_DriverDependantMode_d
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.140075db0

Function at 0x1400aa490
Capabilities:
Print debug messages

Disassembly:
sub dword [rcx + 0x140], 1
mov eax, dword [rcx + 0x140]
jne 0x1400aa4ad
mov rcx, qword [rcx + 0x150]
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp eax, 0x32
jle 0x1400aa4cb
mov r8d, 0x8b
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.140075db0
ret
Function at 0x1400ace00
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x20], rdi
call fcn.140014660
mov rcx, rax
call fcn.1400aa410
call fcn.140014660
cmp dword [rax + 0x140], 0
jne 0x1400ace5c
cmp dword [0x1401b2668], 0
je 0x1400ace5c
mov rax, qword [0x1401ab9a8]
test byte [rax + 0x1c], 1
jne 0x1400ace43
cmp dword [0x1401b266c], 0
je 0x1400ace5c
mov r8d, 0x49
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.140075db0
call fcn.140014660
mov rdi, qword [rax + 0xe0]
test rdi, rdi
je 0x1400acee0
mov qword [rsp + 0x30], rbx
call fcn.140014660
call fcn.140014660
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
test rbx, rbx
je 0x1400aced6
mov rcx, rbx
call fcn.140018d20
mov rcx, rbx
call fcn.140017c50
lea rcx, [rbx + 0xd0]
call fcn.1400195c0
test rax, rax
je 0x1400aced6
mov rbx, qword [rbx + 0x118]
mov rbx, qword [rbx]
test rbx, rbx
je 0x1400aced6
nop dword [rax + rax]
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x1400aced1
call fcn.1400893b0
test rbx, rbx
jne 0x1400acec0
test rdi, rdi
jne 0x1400ace72
mov rbx, qword [rsp + 0x30]
call fcn.140014660
mov rdi, qword [rsp + 0x20]
sub dword [rax + 0x140], 1
mov ecx, dword [rax + 0x140]
jne 0x1400acf0b
mov rcx, qword [rax + 0x150]
add rsp, 0x28
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp ecx, 0x32
jle 0x1400acf2d
mov r8d, 0x8b
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, 0x28
jmp fcn.140075db0
add rsp, 0x28
ret