joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140085350
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push rbx
push rbp
sub rsp, 0x298
mov rax, qword [0x14016adb0]
xor rax, rsp
mov qword [rsp + 0x270], rax
test rcx, rcx
mov rbx, r9
mov rbp, r8
je 0x1400854c6
test rdx, rdx
je 0x1400854c6
test r8, r8
je 0x1400854c6
test rbx, rbx
je 0x1400854c6
mov qword [rsp + 0x20], rdx
mov r9, rcx
lea r8, str.SYSTEMCurrentControlSetServicesVIA_HD_Audio_Codec_DefaultVDeckINI
lea rdx, str._s_s_s_
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x290], rsi
call fcn.14001e4d0
lea rdx, [rsp + 0x50]
mov r9d, 0x20006
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor esi, esi
test eax, eax
je 0x14008544d
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x50]
lea r9, str.REG_SZ
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea rdx, [rsp + 0x60]
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x14008544d
xor eax, eax
mov rsi, qword [rsp + 0x290]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400f9790
add rsp, 0x298
pop rbp
pop rbx
ret
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x288], rdi
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp word [rbx + rcx*2 - 4], 0xa
jne 0x140085471
mov word [rbx + rcx*2 - 4], ax
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
mov rdx, rbp
not rcx
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x50]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
mov rdi, qword [rsp + 0x288]
sete sil
mov eax, esi
jmp 0x14008542b
xor eax, eax
jmp 0x140085433
Function at 0x140085870
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x14016adb0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbp, rdx
mov rbx, rcx
lea rcx, [rsp + 0x40]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionMMDevicesAudioCapture_
mov r8d, 0x86
mov dword [rsp + 0x38], 0x104
call fcn.1400fd180
lea rcx, [rsp + 0xc6]
xor edx, edx
mov r8d, 0x182
call fcn.1400fce30
xor esi, esi
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
mov r10d, esi
repne scasw ax, word [rdi]
mov r8d, esi
mov r9d, esi
not rcx
sub rcx, 1
je 0x140085915
mov rdx, rbx
nop
cmp word [rdx], 0x7b
jne 0x1400858fa
add r9d, 1
cmp r9d, 2
je 0x140085912
add r8d, 1
add rdx, 2
mov eax, r8d
cmp rax, rcx
jb 0x1400858f0
jmp 0x140085915
mov r10d, r8d
mov eax, r10d
movsxd rdx, r10d
cmp rax, rcx
ja 0x14008595f
mov r9, rbx
lea r11, [rbx + rdx*2]
nop
nop
nop
movzx eax, word [r11]
or rcx, 0xffffffffffffffff
add r10d, 1
mov word [r9], ax
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
mov eax, r10d
add r11, 2
not rcx
add r9, 2
sub rcx, 1
cmp rax, rcx
jbe 0x140085930
lea rcx, [rsp + 0x40]
mov r8, rbx
mov edx, 0x104
call fcn.1400fb090
lea r8, str.Properties
lea rcx, [rsp + 0x40]
mov edx, 0x104
call fcn.1400fb090
lea rcx, [rsp + 0x250]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x1400859af
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, 1
cmp eax, 0x78
je 0x1400859b5
mov r9d, 0x101
lea rax, [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400859dc
xor eax, eax
jmp 0x140085a18
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea rdx, str.a45c254e_df1c_4efd_8020_67d146a850e0_2
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete sil
mov eax, esi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1400f9790
mov rbx, qword [rsp + 0x4a0]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x140085a40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x270
mov rax, qword [0x14016adb0]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor ebp, ebp
xor edx, edx
lea ecx, [rbp + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x140085a96
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x238
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x140085a9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
jmp 0x140085b0f
mov qword [rsp + 0x280], rsi
mov qword [rsp + 0x288], rdi
nop
nop
lea rsi, [rsp + 0x4c]
lea rdi, str.SearchProtocolHost.exe
mov ecx, 0x17
repe cmpsw word [rsi], word [rdi]
je 0x140085aef
lea rsi, [rsp + 0x4c]
lea rdi, str.SearchFilterHost.exe
mov ecx, 0x15
repe cmpsw word [rsi], word [rdi]
je 0x140085aef
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x140085ab0
jmp 0x140085af4
mov ebp, 1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x288]
mov rsi, qword [rsp + 0x280]
mov eax, ebp
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400f9790
mov rbx, qword [rsp + 0x290]
add rsp, 0x270
pop rbp
ret
Function at 0x140091f10
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rbx, rcx
lea rax, str.h5_r_
mov qword [rcx], rax
mov rcx, qword [rcx + 0x1970]
xor edi, edi
test rcx, rcx
je 0x140091f55
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x1970], rdi
mov rcx, qword [rbx + 0xa8]
test rcx, rcx
je 0x140091f6e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0xa8], rdi
mov rcx, qword [rbx + 0x1a30]
test rcx, rcx
je 0x140091f96
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x1a30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x1a30], rdi
mov rcx, qword [rbx + 0x108]
test rcx, rcx
je 0x140091faf
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx + 0x108], rdi
mov rcx, qword [rbx + 0x100]
test rcx, rcx
je 0x140091fc1
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [rbx + 0x100]
test rcx, rcx
je 0x140091fda
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx + 0x100], rdi
mov rcx, qword [rbx + 0xf8]
test rcx, rcx
je 0x140091ff3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov qword [rbx + 0xf8], rdi
lea rdi, [rbx + 0x1d8]
mov esi, 0x1e
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x14009200d
call fcn.1400fa7c0
add rdi, 0xd0
sub rsi, 1
jne 0x140092000
lea rcx, [rbx + 0x110]
xor edx, edx
mov r8d, 0x1860
call fcn.1400fce30
mov rcx, qword [rbx + 0xb8]
test rcx, rcx
je 0x14009203f
call fcn.1400fa7c0
mov rcx, qword [rbx + 0xc0]
test rcx, rcx
je 0x140092051
call fcn.1400fa7c0
nop
mov rcx, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp fcn.1400d66d8
Function at 0x1400928c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x100], 0
mov rbx, rcx
je 0x1400929df
mov eax, dword [rcx + 0xb4]
mov qword [rsp + 0x40], rdi
xor edi, edi
test eax, eax
mov dword [rcx + 0xb0], 1
jne 0x140092906
mov dword [rcx + 0xcc], edi
mov dword [rcx + 0xd4], edi
mov dword [rcx + 0xdc], edi
jmp 0x140092917
cmp eax, 2
jne 0x140092917
mov dword [rcx + 0xcc], edi
mov dword [rcx + 0xd4], edi
call fcn.140092de0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rbx + 0xb4], 1
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, [0x140092700]
mov r9, rbx
mov qword [rbx + 0xa8], rax
lea rax, [rbx + 0x1a28]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x100]
mov edx, 1
mov qword [rbx + 0x1a30], rax
mov rax, qword [rcx]
call qword [rax + 0x48]
test eax, eax
jne 0x1400929cc
lea rax, [rbx + 0x1a18]
lea r8, [0x1400927c0]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rbx + 0xb4], 1
mov dword [rbx + 0xcc], edi
mov dword [rbx + 0xd4], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x40]
mov qword [rbx + 0x1a20], rax
mov al, 1
add rsp, 0x30
pop rbx
ret
mov dword [rbx + 0xb4], edi
mov rdi, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x1400930c0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x58], rdx
test rcx, rcx
jne 0x1400930de
xor ebx, ebx
mov eax, ebx
add rsp, 0x40
pop rbx
ret
xor ebx, ebx
add rcx, 4
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x14009312f
lea rcx, str.SetVT1718S_FrontPanelRetasking:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov r9d, 8
mov edx, 0x1d60cc
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140093187
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.SetVT1718S_FrontPanelRetasking:_DeviceIoControl:_IOCTL_HDAUD_SET_FP_RETASKING_VT1718S_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x1400931a0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 0x18]
mov qword [rsp + 0x58], rdx
test rcx, rcx
jne 0x1400931be
xor ebx, ebx
mov eax, ebx
add rsp, 0x40
pop rbx
ret
xor ebx, ebx
add rcx, 4
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x14009320f
lea rcx, str.SetVT1718S_InputRetasking:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov r9d, 8
mov edx, 0x1d60dc
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140093267
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.SetVT1718S_InputRetasking:_DeviceIoControl:_IOCTL_HDAUD_SET_INPUTS_MUX_DIR_VT1718S_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x1400958d0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x140
mov esi, edx
lea r8, [rcx + 0x8dc]
lea rdx, [rcx + 0x24]
mov rbx, rcx
call fcn.140097c60
test eax, eax
je 0x1400959e4
mov qword [rsp + 0x158], rbp
xor ebp, ebp
test esi, esi
mov eax, ebp
setne al
lea rcx, [rsp + 0x40]
lea r8d, [rbp + 0x7c]
lea rdx, [rbx + 0x8dc]
mov dword [rbx + 0x8ec], eax
call fcn.1400fd180
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400959dc
mov qword [rsp + 0x30], rbp
lea r8d, [rbp + 3]
add rcx, 4
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x140095971
lea rcx, str.SetHDAudPolicyState:_CreateFile:_INVALID_HANDLE_VALUE_n
jmp 0x1400959d6
lea rcx, [rsp + 0xc0]
lea rdx, [rsp + 0x40]
mov r8d, 0x7c
call fcn.1400fd180
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x150]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0xc0]
mov r9d, 0x7c
mov edx, 0x1da008
mov rcx, rdi
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400959dc
lea rcx, str.SetHDAudPolicyState:_DeviceIoControl:_IOCTL_HDAUD_SET_POLICY_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbp, qword [rsp + 0x158]
lea r11, [rsp + 0x140]
xor eax, eax
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140095a00
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 0x18]
mov dword [rsp + 0x58], edx
test rcx, rcx
jne 0x140095a1d
xor ebx, ebx
mov eax, ebx
add rsp, 0x40
pop rbx
ret
xor ebx, ebx
add rcx, 4
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x140095a6e
lea rcx, str.SetHDAudioHPMode:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov r9d, 4
mov edx, 0x1d6064
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140095ac6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.SetHDAudioHPMode:_DeviceIoControl:_IOCTL_HDAUD_SET_VIA_UPDDEV_HPMODE_SWITCH_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x140095bb0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
mov eax, 0x1470
call fcn.14011c260
sub rsp, rax
mov ebx, 0x40
mov rbp, r8
mov rsi, rcx
lea rax, [rsp + 0xc68]
xor edi, edi
mov r9, rbx
nop
nop
nop
mov dword [rax - 4], edi
mov dword [rax], edi
mov dword [rax + 4], edi
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], edi
mov dword [rax + 0x14], edi
mov dword [rax + 0x18], edi
add rax, 0x20
sub r9, 1
jne 0x140095bf0
lea rcx, [rsp + 0x850]
mov r8d, 0x404
call fcn.1400fd180
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x140095d1b
lea rax, [rsp + 0x48]
nop
nop
nop
mov dword [rax - 4], edi
mov dword [rax], edi
mov dword [rax + 4], edi
mov dword [rax + 8], edi
mov dword [rax + 0xc], edi
mov dword [rax + 0x10], edi
mov dword [rax + 0x14], edi
mov dword [rax + 0x18], edi
add rax, 0x20
sub rbx, 1
jne 0x140095c40
mov qword [rsp + 0x30], rdi
lea r8d, [rbx + 3]
add rcx, 4
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rsi, rax
jne 0x140095ca0
lea rcx, str.SendHDAudCommand:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140095d1b
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x1480]
lea r8, [rsp + 0x850]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov r9d, 0x404
mov edx, 0x220004
mov rcx, rsi
mov dword [rsp + 0x28], 0x804
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xc60]
lea rdx, [rsp + 0x40]
mov r8d, 0x804
call fcn.1400fd180
test ebx, ebx
jne 0x140095d16
lea rcx, str.SendHDAudCommand:_DeviceIoControl:_IOCTL_AZALIABUS_SENDVERBS_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140095d1b
mov edi, 1
test rbp, rbp
je 0x140095d36
lea rdx, [rsp + 0xc60]
mov rcx, rbp
mov r8d, 0x804
call fcn.1400fd180
lea r11, [rsp + 0x1470]
mov eax, edi
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140095eb0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rcx + 0x18]
mov dword [rsp + 0x40], edx
test rcx, rcx
mov qword [rsp + 0x48], r8
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x44], r9d
mov rax, qword [rdx]
lea r8, [rsp + 0x60]
mov qword [r8], rax
mov rax, qword [rdx + 8]
mov qword [r8 + 8], rax
mov rax, qword [rdx + 0x10]
mov qword [r8 + 0x10], rax
jne 0x140095f0a
xor ebx, ebx
mov eax, ebx
add rsp, 0x80
pop rbx
ret
xor ebx, ebx
add rcx, 4
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x90], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x140095f64
lea rcx, str.SetHDAudioDriverReadyEvent:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x90]
mov eax, ebx
add rsp, 0x80
pop rbx
ret
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x98]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov r9d, 0x18
mov edx, 0x1da048
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140095fc5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.SetHDAudioDriverReadyEvent:_DeviceIoControl:_IOCTL_HDAUD_SET_VIA_DRV_RDYRMV_EVENT_CTRL_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x90]
mov eax, ebx
add rsp, 0x80
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x90]
mov eax, 1
add rsp, 0x80
pop rbx
ret

Function at 0x1400961a0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 0x18]
mov dword [rsp + 0x58], edx
test rcx, rcx
jne 0x1400961bd
xor ebx, ebx
mov eax, ebx
add rsp, 0x40
pop rbx
ret
xor ebx, ebx
add rcx, 4
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x14009620e
lea rcx, str.ActiveFrontPanel:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov r9d, 4
mov edx, 0x1da050
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140096266
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ActiveFrontPanel:_DeviceIoControl:_IOCTL_HDAUD_SET_FRONT_JACK_DEVICE_ACTIVE_CTRL_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x140096280
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 0x18]
mov dword [rsp + 0x58], edx
test rcx, rcx
jne 0x14009629d
xor ebx, ebx
mov eax, ebx
add rsp, 0x40
pop rbx
ret
xor ebx, ebx
add rcx, 4
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x1400962ee
lea rcx, str.ActiveSpeaker:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x50]
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov r9d, 4
mov edx, 0x1d6068
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140096346
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.ActiveSpeaker:_DeviceIoControl:_IOCTL_HDAUD_SET_VIA_SPKRS_ALWAYS_ACTIVE_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rdi, qword [rsp + 0x60]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x60]
mov eax, 1
add rsp, 0x40
pop rbx
ret

Function at 0x140096360
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x40
mov rcx, qword [rcx + 0x18]
xor ebx, ebx
test rcx, rcx
je 0x140096426
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 3]
add rcx, 4
xor r9d, r9d
mov edx, 0xc0000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x1400963bd
lea rcx, str.GetInstalledSoundeffects:_CreateFile:_INVALID_HANDLE_VALUE_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140096421
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x1d6070
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14009640e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.GetInstalledSoundeffects:_DeviceIoControl:_IOCTL_HDAUD_GET_VIA_DRVSUPPORT3RDPRTEFTS_failed_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140096421
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11d, dword [rsp + 0x50]
mov dword [rsp + 0x50], r11d
mov rdi, qword [rsp + 0x60]
movzx ecx, byte [rsp + 0x50]
and cl, 1
cmp cl, 1
sete bl
mov eax, ebx
add rsp, 0x40
pop rbx
ret