joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test rax, rax
je 0x140005a75
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140005a75
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140005a65
nop
cmp rbx, rcx
jae 0x140005a75
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140005a50
cmp rbx, rcx
jae 0x140005a75
cmp word [rbx], 0
je 0x140005a75
mov rax, rbx
jmp 0x140005a77
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000bb90
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400ff010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor edi, edi
add rcx, 8
mov dword [rcx + 0x28], edi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_InitializeCriticalSection]
mov qword [rbx + 0x38], rdi
lea rax, vtable.CAsyncEventNotifyBase.0
mov qword [rbx], rax
lea r8, [0x14000bd70]
mov qword [rbx + 0x40], rdi
lea rax, [rsp + 0x30]
mov dword [rbx + 0x48], edi
mov r9, rbx
mov dword [rbx + 0x4c], 2
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], rdi
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x68], rdi
mov qword [rbx + 0x70], rdi
mov dword [rbx + 0x78], 0xa
mov dword [rsp + 0x30], edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x38], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x40], rax
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140091f30
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400102b0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x18]
cmp edx, 0x3fd
jne 0x1400102e1
call fcn.140009f90
mov rcx, rax
mov edx, 0x3fd
call fcn.140087ca0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140010da0
cmp edx, 0x3fe
jne 0x140010308
call fcn.140009f90
mov rcx, rax
mov edx, 0x3fe
call fcn.140087ca0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140011190
cmp edx, 0x418
jne 0x140010353
mov eax, dword [0x140103c48]
cmp eax, 0xa
ja 0x14001033c
mov ecx, dword [0x140103c44]
inc eax
mov dword [0x140103c48], eax
call fcn.140011480
test eax, eax
je 0x140010353
mov dword [0x140103c48], 0
call fcn.140009f90
mov edx, 0x418
mov rcx, rax
add rsp, 0x20
pop rbx
jmp fcn.140087ca0
add rsp, 0x20
pop rbx
ret
Function at 0x140010790
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov r14, rdx
mov r15, rcx
test rdx, rdx
lea rdx, str.CAudioDeviceMuteStateHandler::OnRemoveDevice
jne 0x1400107de
mov r8d, 0x165
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.1400430e0
mov r8d, 0x167
lea rcx, [0x1400b0e88]
call fcn.1400430e0
xor edi, edi
lea rbp, [rdi - 1]
cmp dword [r15 + 0x30], edi
je 0x1400108cc
mov rbx, qword [r14 + 0x148]
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x1400109c2
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140005580
test al, al
jne 0x14001085f
test rbx, rbx
jne 0x140010841
mov eax, edi
jmp 0x14001084e
mov rax, rbp
inc rax
cmp word [rbx + rax*2], 0
jne 0x140010844
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140003840
nop
mov rbx, qword [rsp + 0x68]
cmp dword [rbx - 0x10], 0
jge 0x14001086e
mov esi, ebp
jmp 0x14001088f
lea rdx, str.0.0.0.00000000
mov rcx, rbx
call fcn.1400981d0
mov rsi, rax
test rax, rax
jne 0x140010889
mov esi, ebp
jmp 0x14001088f
sub rsi, rbx
sar rsi, 1
shr esi, 0x1f
xor sil, 1
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400108af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x1400108cc
call fcn.140009f90
mov rcx, rax
mov edx, 0x3fd
mov r8d, 0xc8
call fcn.140087ab0
cmp dword [r15 + 0x2c], 0
je 0x1400109a6
mov rbx, qword [r14 + 0x148]
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x1400109b7
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140005580
test al, al
jne 0x14001093b
test rbx, rbx
je 0x14001092a
mov rdi, rbp
nop word [rax + rax]
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x140010920
mov r8d, edi
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140003840
nop
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jge 0x14001094a
mov edi, ebp
jmp 0x14001096b
lea rdx, str.0.0.1.00000000
mov rcx, rbx
call fcn.1400981d0
mov rdi, rax
test rax, rax
jne 0x140010965
mov edi, ebp
jmp 0x14001096b
sub rdi, rbx
sar rdi, 1
shr edi, 0x1f
xor dil, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140010989
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x1400109a6
call fcn.140009f90
mov rcx, rax
mov edx, 0x3fe
mov r8d, 0xc8
call fcn.140087ab0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003b40
int3
mov ecx, 0x80004005
call fcn.140003b40
int3
Function at 0x140012430
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
sub rsp, 0x28
cmp dword [rcx + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], 0
mov rsi, rdx
mov rbx, rcx
je 0x14001247e
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.1400430e0
mov r8d, 0xe8
lea rdx, str.CAudioDeviceSessionEvents::AddNewAudioSession
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.1400430e0
mov qword [rsp + 0x48], rbp
mov eax, 1
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r14
lock xadd dword [rcx + 0x120], eax
mov ecx, 0x28
call fcn.14009255c
mov rdi, rax
mov qword [rsp + 0x40], rax
xor eax, eax
xor r14d, r14d
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
mov qword [rdi + 0x10], rax
lea rax, vtable.CAudioSessionEvents.0
mov qword [rdi], rax
mov qword [rdi + 8], r14
mov qword [rdi + 0x18], r14
mov qword [rdi + 0x20], r14
call fcn.140014220
lea rsi, [r14 - 1]
test eax, eax
je 0x1400125d6
mov rbp, qword [rbx + 0x140]
cmp qword [rbx + 0x158], r14
jne 0x14001258b
mov ecx, dword [rbx + 0x160]
test rcx, rcx
jne 0x140012509
mov ecx, r14d
jmp 0x140012523
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 0x18
jb 0x14001261c
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 0x14001261c
mov rcx, qword [rbx + 0x150]
mov qword [rax], rcx
mov qword [rbx + 0x150], rax
mov r8d, dword [rbx + 0x160]
lea ecx, [r8 - 1]
lea rdx, [rcx*2 + 1]
add rdx, rcx
sub r8d, 1
lea rdx, [rax + rdx*8]
js 0x14001258b
nop word [rax + rax]
mov rax, qword [rbx + 0x158]
mov qword [rdx], rax
mov qword [rbx + 0x158], rdx
sub rdx, 0x18
sub r8d, 1
jns 0x140012570
mov rcx, qword [rbx + 0x158]
mov rax, qword [rcx]
mov qword [rcx + 0x10], rdi
mov qword [rbx + 0x158], rax
mov qword [rcx + 8], rbp
mov qword [rcx], r14
inc qword [rbx + 0x148]
mov rax, qword [rbx + 0x140]
test rax, rax
je 0x1400125c6
mov qword [rax], rcx
mov qword [rbx + 0x140], rcx
jmp 0x1400125de
mov qword [rbx + 0x138], rcx
mov qword [rbx + 0x140], rcx
jmp 0x1400125de
mov rcx, rdi
call fcn.1400121a0
lock xadd dword [rbx + 0x120], esi
mov eax, dword [rbx + 0x120]
test eax, eax
jne 0x140012606
cmp dword [rbx + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], r14d
je 0x140012606
mov rcx, qword [rbx + 0x118]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov ecx, 0x8007000e
call fcn.140003b40
int3
Function at 0x140014a50
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp r8d, 0x16
jne 0x140014a94
mov rax, qword [rsp + 0x60]
lea rdx, str.CBackgroundProcMain::OnWindowsMessage
mov r8d, 0x26
mov qword [rsp + 0x20], rax
lea rcx, str._s__d_WM_ENDSESSION_wParam_d_lParam_d
call fcn.1400430e0
call fcn.140011a10
mov rcx, rax
add rsp, 0x30
pop rbx
jmp 0x140074e90
cmp r8d, 0x10
jne 0x140014afd
mov rax, qword [rsp + 0x60]
lea rdx, str.CBackgroundProcMain::OnWindowsMessage
mov r8d, 0x2c
mov qword [rsp + 0x20], rax
lea rcx, str._s__d_WM_CLOSE_wParam_d_lParam_d_Start
call fcn.1400430e0
mov rcx, rbx
call fcn.140016380
test rbx, rbx
je 0x140014adf
mov rcx, rbx
call fcn.1400149d0
mov edx, 0xf0
mov rcx, rbx
call fcn.140091f5c
mov r8d, 0x2f
lea rdx, str.CBackgroundProcMain::OnWindowsMessage
lea rcx, str._s__d_WM_CLOSE_end
add rsp, 0x30
pop rbx
jmp fcn.1400430e0
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400ff010]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rsi, [rcx + 0xb8]
lea r14, [rcx + 0xe8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rbx, qword [r14]
test rbx, rbx
je 0x140074f72
xor ebp, ebp
test rbx, rbx
je 0x140074fa5
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdi, rdi
je 0x140074f69
cmp dword [0x140104a34], ebp
jne 0x140074f4e
cmp dword [0x140104a30], ebp
jne 0x140074f4e
cmp dword [0x140104a38], ebp
jne 0x140074f4e
movups xmm0, xmmword [0x1400b01d0]
mov rcx, qword [rdi + 0x800]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x50], ebp
movaps xmmword [rsp + 0x40], xmm0
lea r8d, [r9 + 0x38]
mov qword [rsp + 0x20], rax
call fcn.1400686e0
cmp qword [rdi + 0x810], rbp
je 0x140074f69
mov rcx, qword [rdi + 0x7e0]
test rcx, rcx
je 0x140074f69
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
test rbx, rbx
jne 0x140074edf
mov rcx, r14
call fcn.14000aa00
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140091f30
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140003b40
int3
Function at 0x140018130
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x1400ff010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov rbp, rdx
mov r15, rcx
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x140018360
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xor r13d, r13d
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
lea r14, [r13 - 1]
test eax, eax
jne 0x140018322
cmp dword [rsp + 0x40], 7
jne 0x140018322
mov edi, dword [rsp + 0x38]
shr edi, 1
je 0x140018322
mov ecx, edi
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.140092598
mov r12, rax
test rax, rax
je 0x140018322
cmp edi, 2
jb 0x140018319
lea r8d, [rdi + rdi]
mov dword [rsp + 0x3c], r8d
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140018319
cmp dword [rsp + 0x44], 7
jne 0x140018319
mov eax, dword [rsp + 0x3c]
test al, 1
jne 0x140018319
mov ebp, eax
shr ebp, 1
cmp ebp, 1
jb 0x140018319
shr rax, 1
cmp word [r12 + rax*2 - 2], r13w
jne 0x140018319
cmp ebp, 1
jbe 0x14001827a
cmp word [r12 + rax*2 - 4], r13w
jne 0x140018319
mov edi, r13d
test ebp, ebp
je 0x140018319
nop word [rax + rax]
mov eax, edi
lea rdx, [r12 + rax*2]
cmp r13w, word [rdx]
jne 0x1400182a3
mov eax, 1
jmp 0x14001830f
test rdx, rdx
jne 0x1400182ad
mov eax, r13d
jmp 0x1400182ba
mov rax, r14
inc rax
cmp word [rdx + rax*2], r13w
jne 0x1400182b0
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140003840
mov rbx, qword [rsp + 0x48]
movzx eax, word [rbx]
cmp ax, word [0x1400b1068]
je 0x14001830c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
mov rdx, qword [rsi + 8]
cmp qword [rsi + 0x10], rdx
je 0x1400182ff
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx], xmm0
add qword [rsi + 8], 0x10
jmp 0x14001830c
lea r8, [rsp + 0x50]
mov rcx, rsi
call fcn.14001d5d0
mov eax, dword [rbx - 0x10]
add edi, eax
cmp edi, ebp
jb 0x140018290
mov rcx, r12
call fcn.140091f5c
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14001833b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140091f30
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003b40
int3
Function at 0x140018370
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x1400ff010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r13, r8
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov r15, qword [r8 + 8]
sub r15, qword [r8]
sar r15, 4
lea eax, [r15 + r15*4]
shl eax, 3
movsxd rcx, eax
add rcx, 2
mov eax, 2
mul rcx
mov rbp, 0xffffffffffffffff
cmovo rax, rbp
mov rcx, rax
call fcn.140092598
mov r12, rax
xor edi, edi
mov qword [rsp + 0x48], rdi
call fcn.140003db0
mov rcx, rax
test rax, rax
je 0x140018548
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov dword [r12], edi
mov esi, edi
test r15d, r15d
jle 0x1400184c1
mov r14d, edi
mov r15d, r15d
mov rcx, qword [r13]
add rcx, r14
lea rdx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromCLSID]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x140018443
mov eax, edi
jmp 0x140018450
mov rax, rbp
inc rax
cmp word [rdx + rax*2], 0
jne 0x140018446
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140003840
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140018472
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov qword [rsp + 0x48], rdi
mov rbx, qword [rsp + 0x50]
movzx eax, word [rbx]
cmp ax, word [0x1400b1068]
je 0x1400184ae
movsxd rax, dword [rbx - 0x10]
cmp eax, 0x28
jge 0x1400184ae
mov r8, rax
add r8, r8
movsxd rax, esi
lea rcx, [r12 + rax*2]
mov rdx, rbx
call fcn.140098ab0
add esi, dword [rbx - 0x10]
movsxd rax, esi
mov word [r12 + rax*2], di
inc esi
add r14, 0x10
sub r15, 1
jne 0x140018423
mov r14, qword [rsp + 0x30]
movsxd rax, esi
mov word [r12 + rax*2], di
test r12, r12
je 0x14001850c
mov r9, r12
mov rax, rbp
inc rax
cmp word [r9 + rax*2], 0
jne 0x1400184d4
inc eax
lea r9, [r9 + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x1400184d1
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140018523
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140091f30
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003b40
int3
Function at 0x14001d940
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x14001d9f5
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14001d9c1
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je case.default.0x14001d9d9
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
je case.default.0x14001d9d9
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x14001d9d9
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x1401052b8], 0
jne 0x14001da40
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x14001da30
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [0x1401052c0], rax
mov byte [0x1401052b8], 1
jmp 0x14001da47
mov rax, qword [0x1401052c0]
mov byte [0x1401052b8], 1
jmp 0x14001da47
mov rax, qword [0x1401052c0]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x14001d9ca
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
ret

Function at 0x14001df10
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 0x14001df46
lea r8d, [rdx + 0x41]
lea rdx, str.CBssGen4ConditionMgr::SyncAudioDeviceConditions
lea rcx, str._s__d_RETURN_ON_FALSE
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400430e0
cmp dword [rdx + 0x1b4], 0
jge 0x14001df58
cmp dword [rdx + 0x184], 4
je 0x14001df61
test byte [rdx + 0x1bc], 0x80
je 0x14001dfb0
mov rdx, qword [rdx + 0x148]
mov qword [rsp + 0x30], rbx
call fcn.140079480
mov rdx, qword [rdi + 0x148]
mov rcx, rsi
call fcn.1400793e0
mov r8, rax
mov rdx, rdi
mov rbx, rax
call fcn.14001e330
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14001e570
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.14001e8f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14001e330
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r15
sub rsp, 0x68
mov rdi, r8
mov r15, rdx
test rdx, rdx
jne 0x14001e34f
mov r8d, 0x9f
jmp 0x14001e35a
test rdi, rdi
jne 0x14001e374
mov r8d, 0xa0
lea rdx, str.CBssGen4ConditionMgr::UpdateScenario
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x68
pop r15
pop rdi
jmp fcn.1400430e0
mov dword [r8 + 8], 0
mov ecx, dword [rdx + 0x184]
lea eax, [rcx - 1]
test eax, 0xfffffffd
je 0x14001e567
lea eax, [rcx - 5]
mov qword [rsp + 0x90], rbx
cmp eax, 1
ja 0x14001e3d1
lea rcx, [rdx + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
cmp dword [r15 + 0x58], 0
jne 0x14001e3b9
mov rcx, r15
call fcn.140012880
lea rcx, [r15 + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [r15 + 0x8c], 0
jne 0x14001e55f
mov rcx, r15
call fcn.14000d480
test eax, eax
je 0x14001e55f
mov qword [rsp + 0x58], rsi
mov rdx, r15
mov qword [rsp + 0x48], r13
call fcn.14001ee70
movsxd r13, eax
xor esi, esi
mov rdx, r13
mov dword [rsp + 0x88], r13d
mov qword [rsp + 0x98], rdx
mov dword [rsp + 0x80], esi
cmp dword [rdi + 4], esi
jle 0x14001e555
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x50], r12
mov r12d, 0x103
mov qword [rsp + 0x40], r14
xor ebx, ebx
xor ebp, ebp
lea r14d, [rbx + 1]
cmp dword [rdi], ebx
jle 0x14001e4ec
movsxd r13, esi
shl r13, 3
nop word [rax + rax]
movsxd rcx, ebx
add rcx, r13
add rcx, rcx
mov rax, qword [rdi + rcx*8 + 0xc]
cmp rax, qword [0x1400b52c8]
jne 0x14001e4b0
mov rax, qword [rdi + rcx*8 + 0x14]
cmp rax, qword [0x1400b52d0]
jne 0x14001e4b0
lea rax, [r12 + rbp]
lea rsi, [rdi + rax*4]
test rdx, rdx
je 0x14001e490
xor eax, eax
cmp dword [rsi], 2
cmove eax, r14d
mov r14d, eax
jmp 0x14001e4ab
mov rcx, r15
call fcn.14000d5d0
xor ecx, ecx
test eax, eax
sete cl
cmp dword [rsi], ecx
jne 0x14001e4be
mov rdx, qword [rsp + 0x98]
test r14d, r14d
je 0x14001e4be
inc ebx
inc rbp
cmp ebx, dword [rdi]
jl 0x14001e450
test r14d, r14d
jne 0x14001e4e5
mov esi, dword [rsp + 0x80]
add r12, 8
mov rdx, qword [rsp + 0x98]
inc esi
mov dword [rsp + 0x80], esi
cmp esi, dword [rdi + 4]
jl 0x14001e430
jmp 0x14001e546
mov esi, dword [rsp + 0x80]
cmp dword [0x140103eac], 0
mov dword [rdi + 8], esi
je 0x14001e546
cmp dword [0x140103ea8], 0
jne 0x14001e50e
mov rax, qword [0x1400ff930]
test byte [rax + 0x1c], 1
je 0x14001e546
mov rcx, r15
call fcn.14000d5d0
mov r9, qword [r15 + 0x10]
lea rdx, str.CBssGen4ConditionMgr::UpdateScenario
mov dword [rsp + 0x30], eax
lea rcx, str._s__d_EpId_s_ScenarioIdx_d_bOnlySupportAiNoise_d_IsIntegratedMic_d
mov eax, dword [rsp + 0x88]
mov r8d, 0xf5
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
call fcn.1400430e0
mov rbp, qword [rsp + 0x60]
mov r12, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x90]
add rsp, 0x68
pop r15
pop rdi
ret
Function at 0x14001e840
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.140009e20
mov rdx, rsi
call fcn.14006c450
mov rbx, rax
test rax, rax
je 0x14001e8ba
cmp dword [rax + 0x1b4], 0
jge 0x14001e87c
cmp dword [rax + 0x184], 4
je 0x14001e885
test byte [rax + 0x1bc], 0x80
je 0x14001e8ba
mov rdx, rsi
mov rcx, rdi
call fcn.1400793e0
test rax, rax
jne 0x14001e89d
mov r8d, 0x146
jmp 0x14001e8c0
mov r8, rax
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14001e8f0
mov r8d, 0x143
lea rdx, str.CBssGen4ConditionMgr::UpdateConditionsToApo
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1400430e0
Function at 0x14001fb90
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rdx, rdx
jne 0x14001fbba
lea r8d, [rdx + 0x4a]
lea rdx, str.CControlChangeEventNotify::OnAddDevice
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rbx
jmp fcn.1400430e0
lea rcx, [rdx + 0xd0]
call fcn.14000e210
test rax, rax
je 0x14001fbde
mov r8, qword [rax]
lea rdx, [rbx - 8]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [r8 + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x14001fbf0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rdx, rdx
jne 0x14001fc1a
lea r8d, [rdx + 0x59]
lea rdx, str.CControlChangeEventNotify::OnRemoveDevice
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rbx
jmp fcn.1400430e0
lea rcx, [rdx + 0xd0]
call fcn.14000e210
test rax, rax
je 0x14001fc3e
mov r8, qword [rax]
lea rdx, [rbx - 8]
mov rcx, rax
add rsp, 0x20
pop rbx
jmp qword [r8 + 0x40]
add rsp, 0x20
pop rbx
ret