joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4cec90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cfd70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cf692
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cf72a
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cf70e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cf702
cmp qword [rbp - 0x10], 0
je 0x2fc4cf702
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cf6c8
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cf72b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cf830
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cf858
mov eax, 0
jmp 0x2fc4cf8a6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cf881
mov eax, 0
jmp 0x2fc4cf8a6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cf8a1
mov eax, 0
jmp 0x2fc4cf8a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cf8ac
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cf92a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cf921
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cf921
mov rax, qword [rbp - 8]
jmp 0x2fc4cf93f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cf8f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140f72efc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f72f06
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f72f2f
pop rbp
sub rbp, 0x33
sub rbp, 0xf72efc
sub rsp, 0x20
jmp 0x140f72f4e
mov rax, 0xf72efc
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x4f53ed64
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f72f6d
jmp 0x140f72f84
sub al, 0xed
invalid
Function at 0x14019fbf0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14019fbfd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14019fc0d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14019fbf5
lea eax, [rcx + 1]
jmp 0x14019fc1b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14019fc2e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14019fc14
sub eax, 3
jb 0x14019fc4e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14019fc9d
sar eax, 1
movsxd rbp, eax
jb 0x14019fc84
jmp 0x14019fc5c
add ebx, ebx
jne 0x14019fc5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14019fc84
inc ecx
add ebx, ebx
jne 0x14019fc6a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14019fc84
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14019fc7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14019fc6c
add ecx, 2
jmp 0x14019fc89
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14019fbb2
jmp 0x14019fbfd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xd1a00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14019fced
cmp rsi, rcx
jae 0x14019fcf5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14019fcd4
cmp al, 0x8f
ja 0x14019fcd4
cmp byte [rsi - 2], 0xf
je 0x14019fcda
sub al, 0xe8
cmp al, 1
ja 0x14019fcbe
cmp rsi, rcx
jae 0x14019fcf5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14019fcc4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14019fcf5
lodsb al, byte [rsi]
jmp 0x14019fcd4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x19c000]
mov eax, dword [rdi]
or eax, eax
je 0x14019fd52
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x1a1108]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14019fd02
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14019fd4c
mov qword [rbx], rax
add rbx, 8
jmp 0x14019fd22
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14019fd96
cmp al, 0xef
ja 0x14019fd7e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14019fd5e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14019fd6d
mov eax, dword [rdi]
add rdi, 4
jmp 0x14019fd6d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14019fdea
sub rsp, 0xffffffffffffff80
jmp 0x140045454
Function at 0x14000b570
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400d8010]
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, [0x14000b740]
mov qword [rbx + 0x40], rdi
lea rax, [rsp + 0x30]
mov dword [rbx + 0x48], edi
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
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.140079e30
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000f8b0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
test rdx, rdx
mov rbx, rcx
lea rdx, str.CAudioDeviceMuteStateHandler::OnRemoveDevice
jne 0x14000f8dc
mov r8d, 0x14b
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rbx
jmp fcn.140033040
mov r8d, 0x14d
lea rcx, [0x140094818]
call fcn.140033040
cmp dword [rbx + 0x30], 0
je 0x14000f90c
call fcn.140009b20
mov rcx, rax
mov edx, 0x3fd
mov r8d, 0xc8
call fcn.140071fe0
cmp dword [rbx + 0x2c], 0
je 0x14000f92f
call fcn.140009b20
mov rcx, rax
mov edx, 0x3fe
mov r8d, 0xc8
add rsp, 0x20
pop rbx
jmp fcn.140071fe0
add rsp, 0x20
pop rbx
ret
Function at 0x140011430
Capabilities:
Print debug messages

Disassembly:
push rbx
push rdi
sub rsp, 0x28
cmp dword [rcx + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], 0
mov rdi, rdx
mov rbx, rcx
je 0x14001147e
mov r8d, 0x2d
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140033040
mov r8d, 0xe8
lea rdx, str.CAudioDeviceSessionEvents::AddNewAudioSession
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x28
pop rdi
pop rbx
jmp fcn.140033040
mov qword [rsp + 0x50], rsi
mov eax, 1
mov qword [rsp + 0x20], r14
lock xadd dword [rcx + 0x120], eax
mov ecx, 0x28
call fcn.14007a474
mov rsi, rax
mov qword [rsp + 0x40], rax
xor eax, eax
xor r14d, r14d
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
mov qword [rsi + 0x10], rax
lea rax, vtable.CAudioSessionEvents.0
mov qword [rsi], rax
mov qword [rsi + 8], r14
mov qword [rsi + 0x18], r14
mov qword [rsi + 0x20], r14
call fcn.140013410
test eax, eax
je 0x140011534
lea rdi, [rbx + 0x138]
mov qword [rsp + 0x48], rbp
mov rbp, qword [rdi + 8]
mov rcx, rdi
call fcn.140005600
mov rax, qword [rdi + 0x20]
mov qword [rsp + 0x40], rax
mov rcx, qword [rax]
test rax, rax
je 0x140011505
mov qword [rax + 0x10], rsi
mov qword [rdi + 0x20], rcx
mov qword [rax + 8], rbp
mov rbp, qword [rsp + 0x48]
mov qword [rax], r14
inc qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x14001152b
mov qword [rcx], rax
mov qword [rdi + 8], rax
jmp 0x14001153c
mov qword [rdi], rax
mov qword [rdi + 8], rax
jmp 0x14001153c
mov rcx, rsi
call fcn.1400111a0
or eax, 0xffffffff
lock xadd dword [rbx + 0x120], eax
mov eax, dword [rbx + 0x120]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x50]
test eax, eax
jne case.default.0x140011570
cmp dword [rbx + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], eax
je case.default.0x140011570
mov rcx, qword [rbx + 0x118]
add rsp, 0x28
pop rdi
pop rbx
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x140014e50
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x140014e86
lea r8d, [rdx + 0x1a]
lea rdx, str.CBssGeneralConditionsMgr::SyncAudioDeviceConditions
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140033040
cmp dword [rdx + 0x180], 4
jne 0x140014f30
cmp dword [rdx + 0x150], 0
jne 0x140014ea9
cmp dword [rdx + 0x16c], 0
je 0x140014f30
mov rax, qword [rdx + 0x18]
lea rcx, str._s__d__s__s
mov r9, qword [rdx + 0x10]
mov r8d, 0x1e
lea rdx, str.CBssGeneralConditionsMgr::SyncAudioDeviceConditions
mov qword [rsp + 0x20], rax
call fcn.140033040
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.140065560
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call fcn.140015400
mov rax, qword [rdi]
mov rcx, rdi
mov rdx, qword [rbx + 0x10]
call qword [rax]
xor r9d, r9d
mov dword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
mov rcx, rbx
lea rdx, [0x1400932a8]
call fcn.140002db0
test eax, eax
jne 0x140014f30
mov rdx, rbx
mov rcx, rdi
call fcn.140015030
mov rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rdi
call fcn.140015150
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140016790
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rdx, rdx
jne 0x1400167ba
lea r8d, [rdx + 0x4a]
lea rdx, str.CControlChangeEventNotify::OnAddDevice
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rbx
jmp fcn.140033040
lea rcx, [rdx + 0xd0]
call fcn.14000d820
test rax, rax
je 0x1400167de
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 0x1400167f0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rdx, rdx
jne 0x14001681a
lea r8d, [rdx + 0x59]
lea rdx, str.CControlChangeEventNotify::OnRemoveDevice
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rbx
jmp fcn.140033040
lea rcx, [rdx + 0xd0]
call fcn.14000d820
test rax, rax
je 0x14001683e
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
Function at 0x1400194c0
Capabilities:
Query or enumerate registry value
Write file on windows

Disassembly:
jmp 0x1400194c0
push rbp
lea rbp, [rsp - 0x400]
sub rsp, 0x500
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x510], rbx
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rbp + 0x3f0], rax
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rsp + 0x60]
call fcn.1400825c0
mov dword [rsp + 0x4c], 3
mov dword [rsp + 0x48], 0x64
mov qword [rsp + 0x38], 0
xor eax, eax
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.140058df0
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x14001955f
mov r8d, 0x3a
jmp 0x1400195af
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x14001956f
lea r8d, [rcx + 0x3b]
jmp 0x1400195af
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.AsusPresetInformation
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
test ebx, ebx
je 0x1400195c7
mov r8d, 0x40
lea rdx, str.CCustomizeASUS::WritePreset
lea rcx, str._s__d_RETURN_ON_FALSE
call fcn.140033040
jmp 0x140019697
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.1400825c0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1e0]
call fcn.1400825c0
mov qword [rsp + 0x40], 0
lea rdx, [rbp + 0x1e0]
call fcn.1400196e0
lea rax, str.ASUS.txt
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x1e0]
lea r8, [0x1400944d8]
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.140015960
lea r8, [0x140099a58]
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen_s]
mov ebx, eax
test eax, eax
jne 0x14001966e
mov edx, dword [rsp + 0x48]
mov r9, qword [rsp + 0x40]
lea r8d, [rax + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__flushall]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r8d, ebx
lea rdx, str.CCustomizeASUS::WritePreset
lea rcx, str._s_err_d_LastErr_d_szFile_s
call fcn.140033040
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400196b6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x3f0]
xor rcx, rsp
call fcn.140079e30
mov rbx, qword [rsp + 0x510]
add rsp, 0x500
pop rbp
ret
Function at 0x1400196e0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1400d8010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, 0x208
call fcn.1400825c0
xor r9d, r9d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetSpecialFolderPathW]
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
nop dword [rax]
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x140019730
cmp word [rsp + rax*2 + 0x1e], 0x5c
jne 0x14001975b
lea rax, [rax*2 - 2]
cmp rax, 0x208
jae 0x140019796
xor ecx, ecx
mov word [rsp + rax + 0x20], cx
lea rcx, [rsp + 0x20]
call fcn.140019360
lea r8, [rsp + 0x20]
mov edx, 0x103
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, 1
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140079e30
add rsp, 0x240
pop rbx
ret
call fcn.14007a6a8
int3
Function at 0x14001b700
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
call fcn.14002c160
call fcn.1400097d0
test dword [rax + 0xac], 0x100
je 0x14001b724
mov ecx, 1
call fcn.14001bd90
call fcn.1400097d0
test byte [rax + 0x264], 0xf
je 0x14001b763
call fcn.1400097d0
mov ecx, dword [rax + 0x264]
shr ecx, 5
movzx eax, cl
mov dword [0x1400dc4dc], eax
call fcn.1400097d0
mov ecx, dword [rax + 0x264]
shr ecx, 4
and ecx, 1
add rsp, 0x28
jmp 0x14001bf10
add rsp, 0x28
ret
push rbx
sub rsp, 0x20
mov ebx, ecx
lea rdx, str.CCustomizeHP::SetForceRestoreToDefaultWhenReboot
mov r9d, ecx
mov r8d, 0x3b2
lea rcx, str._s__d_bForceRestore___d
call fcn.140033040
mov rax, qword [0x1400dd2a0]
lea r8, str.ForceRestoreDefaultVolumeWhenStart
mov r9d, ebx
lea rdx, str.Others
lea rcx, [0x1400dd2a0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x14001bf7b
mov r9d, ebx
lea rdx, str.CCustomizeHP::SetForceRestoreToDefaultWhenReboot
mov r8d, 0x3b8
lea rcx, str._s__d_SetPresetAutoSwitchDefaultValue_fail__bForceRestore___d
add rsp, 0x20
pop rbx
jmp fcn.140033040
mov rax, qword [0x1400dd2a0]
lea r8, str.ForceRestoreDefaultVolumeValue
mov r9d, dword [0x1400dc4dc]
lea rdx, str.Others
lea rcx, [0x1400dd2a0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test ebx, ebx
je 0x14001c0b3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call fcn.140009a60
or edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax + 0x140]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
inc dword [rbx + 0x138]
call fcn.140009a60
mov rcx, rax
call fcn.1400599a0
mov rdi, rax
test rax, rax
je 0x14001c03f
call fcn.140009a60
call fcn.140009a60
test rdi, rdi
je 0x14001c0b9
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
test rbx, rbx
je 0x14001c03a
lea rcx, [rbx + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
cmp dword [rbx + 0x58], 0
jne 0x14001c01d
mov rcx, rbx
call fcn.140011950
lea rcx, [rbx + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [rbx + 0x8c], 0
je 0x14001c03a
xor edx, edx
mov rcx, rbx
call fcn.14001f6f0
test rdi, rdi
jne 0x14001bfe6
call fcn.140009a60
sub dword [rax + 0x138], 1
mov ecx, dword [rax + 0x138]
jne 0x14001c073
cmp dword [rax + 0x13c], 0
mov rcx, qword [rax + 0x148]
je 0x14001c06b
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14001c091
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
jmp 0x14001c091
cmp ecx, 0x32
jle 0x14001c091
mov r8d, 0x6f
lea rdx, str.CMMPlatform::AudioDevList_Release
lea rcx, str._s__d_calling_AudioDevList_Release_isnt_matched_AudioDevList_AddRef_or_directly_return_in_EnumAudioDeviceStart_loop
call fcn.140033040
call fcn.140009b20
mov rcx, rax
mov edx, 0x408
mov r8d, 0xbb8
call fcn.140071fe0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov ecx, 0x80004005
call fcn.140003fc0
int3
Function at 0x14001bf10
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x28
call fcn.14002c160
call fcn.1400097d0
test dword [rax + 0xac], 0x100
je 0x14001b724
mov ecx, 1
call fcn.14001bd90
call fcn.1400097d0
test byte [rax + 0x264], 0xf
je 0x14001b763
call fcn.1400097d0
mov ecx, dword [rax + 0x264]
shr ecx, 5
movzx eax, cl
mov dword [0x1400dc4dc], eax
call fcn.1400097d0
mov ecx, dword [rax + 0x264]
shr ecx, 4
and ecx, 1
add rsp, 0x28
jmp 0x14001bf10
add rsp, 0x28
ret
push rbx
sub rsp, 0x20
mov ebx, ecx
lea rdx, str.CCustomizeHP::SetForceRestoreToDefaultWhenReboot
mov r9d, ecx
mov r8d, 0x3b2
lea rcx, str._s__d_bForceRestore___d
call fcn.140033040
mov rax, qword [0x1400dd2a0]
lea r8, str.ForceRestoreDefaultVolumeWhenStart
mov r9d, ebx
lea rdx, str.Others
lea rcx, [0x1400dd2a0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test eax, eax
jne 0x14001bf7b
mov r9d, ebx
lea rdx, str.CCustomizeHP::SetForceRestoreToDefaultWhenReboot
mov r8d, 0x3b8
lea rcx, str._s__d_SetPresetAutoSwitchDefaultValue_fail__bForceRestore___d
add rsp, 0x20
pop rbx
jmp fcn.140033040
mov rax, qword [0x1400dd2a0]
lea r8, str.ForceRestoreDefaultVolumeValue
mov r9d, dword [0x1400dc4dc]
lea rdx, str.Others
lea rcx, [0x1400dd2a0]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
test ebx, ebx
je 0x14001c0b3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rdi
call fcn.140009a60
or edx, 0xffffffff
mov rbx, rax
mov rcx, qword [rax + 0x140]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
inc dword [rbx + 0x138]
call fcn.140009a60
mov rcx, rax
call fcn.1400599a0
mov rdi, rax
test rax, rax
je 0x14001c03f
call fcn.140009a60
call fcn.140009a60
test rdi, rdi
je 0x14001c0b9
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
test rbx, rbx
je 0x14001c03a
lea rcx, [rbx + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
cmp dword [rbx + 0x58], 0
jne 0x14001c01d
mov rcx, rbx
call fcn.140011950
lea rcx, [rbx + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp dword [rbx + 0x8c], 0
je 0x14001c03a
xor edx, edx
mov rcx, rbx
call fcn.14001f6f0
test rdi, rdi
jne 0x14001bfe6
call fcn.140009a60
sub dword [rax + 0x138], 1
mov ecx, dword [rax + 0x138]
jne 0x14001c073
cmp dword [rax + 0x13c], 0
mov rcx, qword [rax + 0x148]
je 0x14001c06b
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14001c091
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
jmp 0x14001c091
cmp ecx, 0x32
jle 0x14001c091
mov r8d, 0x6f
lea rdx, str.CMMPlatform::AudioDevList_Release
lea rcx, str._s__d_calling_AudioDevList_Release_isnt_matched_AudioDevList_AddRef_or_directly_return_in_EnumAudioDeviceStart_loop
call fcn.140033040
call fcn.140009b20
mov rcx, rax
mov edx, 0x408
mov r8d, 0xbb8
call fcn.140071fe0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov ecx, 0x80004005
call fcn.140003fc0
int3