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

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14015b010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
test rcx, rcx
jne 0x140071b17
lea r8d, [rcx + 0x73]
lea rcx, str._s__d_RETURN_ON_FALSE
lea rdx, str.CNamedPipeHelper::SendPipeMessage
call fcn.14005f240
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c0920
add rsp, 0x50
pop rbx
ret
mov qword [rsp + 0x30], 0
lea rcx, str..pipeRtkAudUServiceNamedPipe
mov dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
mov qword [rsp + 0x68], rdi
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140071bac
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov r8d, 0x208
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
mov ecx, dword [rsp + 0x40]
lea rdx, str.CNamedPipeHelper::SendPipeMessage
mov r9d, dword [rbx]
mov r8d, 0x85
mov dword [rsp + 0x28], ecx
mov ecx, dword [rbx + 4]
mov dword [rsp + 0x20], ecx
lea rcx, str._s__d_dwEventId_x_nIndex_d_dwWritten_d
call fcn.14005f240
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140071bd6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea r9, str..pipeRtkAudUServiceNamedPipe
mov r8d, 0x8c
lea rdx, str.CNamedPipeHelper::SendPipeMessage
mov dword [rsp + 0x20], eax
lea rcx, str._s__d_CreateFile__s__Err_d
call fcn.14005f240
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c0920
add rsp, 0x50
pop rbx
ret

Function at 0x140071fc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
mov rbp, rcx
mov rbx, rdx
mov rcx, rdx
call fcn.1400bec90
test eax, eax
je 0x140072082
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x22]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
je 0x140072082
mov qword [rsp + 0x30], rsi
lea r8, [0x1400ed7f8]
mov qword [rsp + 0x38], rdi
mov rcx, rax
xor edi, edi
lea edx, [rdi + 0x66]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14007205a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
test eax, eax
je 0x14007205a
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x14007205a
mov rdx, rax
mov rcx, rbp
call fcn.140071df0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rsi, qword [rsp + 0x30]
test rdi, rdi
mov rdi, qword [rsp + 0x38]
je 0x140072082
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
mov rbx, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rbp
ret
Function at 0x1400739b0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, edx
mov rsi, rcx
cmp edx, 0xffffffff
je 0x140073a1a
movsxd rax, dword [rcx + 0x68]
mov byte [rax + rcx + 0x6c], dil
mov eax, dword [rcx + 0x68]
inc eax
mov dword [rcx + 0x68], eax
cmp edx, 0xa
je 0x1400739e1
cmp eax, 0x200
jne 0x140073a24
add rcx, 0x6c
mov qword [rsp + 0x30], rbx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
xor edx, edx
lea rcx, [rsi + 0x6c]
mov r8d, 0x200
call fcn.1400c71e0
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [rsi + 0x68], 0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
add rcx, 0x6c
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
mov rsi, qword [rsp + 0x38]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x14007ef00
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
lea rcx, str._s__d_bMute_d
mov r9d, edx
mov r8d, 0x95
lea rdx, str.CPrivacyMute::ControlMuteAll
call fcn.14005f240
call fcn.14000b520
mov rcx, rax
call fcn.14008e7c0
call fcn.14000b520
cmp dword [rax + 0x140], 0
jne 0x14007ef7b
cmp dword [0x140162d94], 0
je 0x14007ef7b
cmp dword [0x140162d90], 0
jne 0x14007ef62
mov rax, qword [0x14015c1e0]
test byte [rax + 0x1c], 1
je 0x14007ef7b
mov r8d, 0x3e
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.14005f240
mov qword [rsp + 0x30], rbx
call fcn.14000b520
mov rdi, qword [rax + 0xe0]
test rdi, rdi
je 0x14007f023
call fcn.14000b520
call fcn.14000b520
test rdi, rdi
je 0x14007f08f
mov rbx, qword [rdi + 0x10]
mov rdi, qword [rdi]
test rbx, rbx
je 0x14007f01a
cmp dword [rbx + 0x184], 1
jne 0x14007f01a
mov rcx, rbx
call fcn.140016510
cmp dword [rbx + 0x84], 0
jne 0x14007f01a
mov rax, qword [rbx + 0x110]
test rax, rax
je 0x14007efe3
cmp dword [rbx + 0x100], 0
jne 0x14007eff6
lea rcx, [rbx + 0xc8]
call fcn.1400101d0
mov rax, qword [rbx + 0x110]
cmp qword [rax + 0x10], 0
jbe 0x14007f01a
mov rcx, qword [rax]
test rcx, rcx
je 0x14007f08f
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14007f01a
mov rax, qword [rcx]
mov edx, esi
call qword [rax + 0x10]
test rdi, rdi
jne 0x14007ef95
call fcn.14000b520
sub dword [rax + 0x140], 1
mov ecx, dword [rax + 0x140]
jne 0x14007f046
mov rcx, qword [rax + 0x150]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
jmp 0x14007f064
cmp ecx, 0x32
jle 0x14007f064
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
call fcn.14005f240
mov r9d, esi
lea rdx, str.CPrivacyMute::ControlMuteAll
mov r8d, 0xa6
lea rcx, str._s__d_bMute_d
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14005f240
mov ecx, 0x80004005
call fcn.140004fd0
int3
Function at 0x14007f4d0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14015b010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r9
mov r14, r8
mov rbp, rdx
test rdx, rdx
jne 0x14007f51d
lea r8d, [rdx + 0x68]
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
xor eax, eax
jmp 0x14007f593
test rsi, rsi
jne 0x14007f528
lea r8d, [rsi + 0x69]
jmp 0x14007f506
xor eax, eax
mov qword [rsp + 0x50], rax
xor r15d, r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x38], r15d
mov edi, 1
mov r9d, edi
mov r8, rbp
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140027bc0
test eax, eax
je 0x14007f5ac
mov r9, rbp
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.14005f240
mov edi, r15d
cmp qword [rsp + 0x48], 0
je 0x14007f591
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c0920
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
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
mov rdx, r14
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14007f57b
cmp dword [rsp + 0x40], 4
jne 0x14007f57b
mov eax, dword [rsp + 0x38]
mov dword [rsi], eax
jmp 0x14007f57e
Function at 0x14007f600
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 [0x14015b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r15d, r9d
mov r14, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x14007f656
mov r8d, 0x83
lea rdx, str.CRegClient::SetRegUI4Property
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
xor eax, eax
jmp 0x14007f73e
test r14, r14
jne 0x14007f663
mov r8d, 0x84
jmp 0x14007f63c
xor eax, eax
mov qword [rsp + 0x48], rax
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x50], rdi
call fcn.1400805b0
test eax, eax
jne 0x14007f69f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbp
call fcn.14007f880
test eax, eax
jne 0x14007f69f
mov r8d, 0x8d
jmp 0x14007f714
mov r9d, 2
mov r8, rsi
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.140027bc0
test eax, eax
je 0x14007f6d9
mov r8d, 0x92
lea rdx, str.CRegClient::SetRegUI4Property
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
mov rbx, qword [rsp + 0x40]
jmp 0x14007f72e
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, r14
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x14007f729
mov r8d, 0x96
lea rdx, str.CRegClient::SetRegUI4Property
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
jmp 0x14007f72e
mov edi, 1
test rbx, rbx
je 0x14007f73c
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.1400c0920
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007f760
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
sub rsp, 0x68
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14015b010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r9
mov r14, r8
mov rbp, qword [rsp + 0xb0]
test rdx, rdx
jne 0x14007f7b5
mov r8d, 0xda
lea rdx, str.CRegClient::GetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
xor eax, eax
jmp 0x14007f862
test rbp, rbp
jne 0x14007f7c2
mov r8d, 0xdc
jmp 0x14007f79b
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rax
mov edi, 1
mov r9d, edi
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140027bc0
test eax, eax
je 0x14007f7fb
mov r8d, 0xe5
jmp 0x14007f838
test rsi, rsi
je 0x14007f805
mov rax, qword [rsi]
jmp 0x14007f807
xor eax, eax
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
mov rdx, r14
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14007f832
cmp dword [rsp + 0x38], 3
je 0x14007f84d
mov r8d, 0xe9
lea rdx, str.CRegClient::GetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
xor edi, edi
cmp qword [rsp + 0x40], 0
je 0x14007f860
mov rcx, qword [rsp + 0x40]
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.1400c0920
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x14007fb20
Capabilities:
Delete registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14015b010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r12d, r9d
mov r15, r8
mov r14, rdx
mov rbp, rcx
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
or r9d, 0x20006
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140027bc0
mov esi, eax
mov rbx, qword [rsp + 0x48]
test eax, eax
jne 0x14007fbb6
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 0x14007fbe0
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 0x14007fbcc
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.14005f240
test rbx, rbx
je 0x14007fbf1
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 0x14007fc05
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c0920
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140080460
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 [0x14015b010]
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.1400805b0
test eax, eax
jne 0x1400804e3
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call fcn.14007f880
test eax, eax
jne 0x1400804e3
mov r8d, 0x1e8
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14005f240
jmp 0x140080584
mov r9d, 2
mov r8, r14
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.140027bc0
mov esi, eax
mov r9d, eax
mov r8d, 0x1ee
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_nRet_d
call fcn.14005f240
mov rbp, qword [rsp + 0x38]
test esi, esi
jne 0x140080581
test rdi, rdi
jne 0x14008052a
lea esi, [rdi + 0xd]
jmp 0x140080563
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x140080531
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.14005f240
test esi, esi
sete bl
test rbp, rbp
je 0x140080592
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.1400c0920
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400819a0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x14015b010]
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.140027bc0
mov ebx, eax
test eax, eax
jne 0x140081ab7
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 0x140081a91
nop dword [rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400819a0
mov ebx, eax
test eax, eax
jne 0x140081ab7
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 0x140081a40
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140081aa6
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.140027a90
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140081ac7
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.1400c0920
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140081af0
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 [0x14015b010]
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.140004ea0
mov rcx, rax
test rax, rax
je 0x140081c9b
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.140004660
mov rdi, 0xffffffffffffffff
test al, al
jne 0x140081b8b
mov rax, rdi
nop dword [rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x140081b70
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.1400048e0
nop
call fcn.140004ea0
mov rcx, rax
test rax, rax
je 0x140081c90
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.140004660
test al, al
jne 0x140081be1
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140081bc6
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400048e0
nop
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x28]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.140080150
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.14005f240
call fcn.140006580
mov rdx, rax
test rax, rax
mov rax, qword [rsp + 0x48]
jne 0x140081c31
mov ebx, edi
jmp 0x140081c5a
cmp dword [rax - 0x10], 0
jge 0x140081c3b
mov ebx, edi
jmp 0x140081c5a
mov rcx, rax
call fcn.1400c6bb0
mov rbx, rax
test rax, rax
mov rax, qword [rsp + 0x48]
jne 0x140081c54
mov ebx, edi
jmp 0x140081c5a
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 0x140081c76
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.1400c0920
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.140004fd0
nop
mov ecx, 0x80004005
call fcn.140004fd0
int3
Function at 0x140082cd0
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 0x140082d08
mov r8d, 0x16a
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.14005f240
mov ecx, dword [rdx + 0x1ac]
mov qword [rsp + 0x30], rbx
lea eax, [rcx - 1]
test eax, 0xfffffffd
je 0x140082d8f
cmp ecx, 4
jne 0x140082d81
mov rbx, qword [rdx + 0x158]
call fcn.140006a20
mov rcx, rax
mov r8, rbx
mov rdx, 0xffffffff80000002
call fcn.140091f80
test rax, rax
je 0x140082d52
lea rcx, [rax + 0x20]
lea rdx, [rsi - 8]
call fcn.14000b5f0
call fcn.14000b240
test dword [rax + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], 0x100
jne 0x140082d78
call fcn.14000b240
test dword [rax + 0x128], 0x20000
je 0x140082e00
mov rbx, qword [rdi + 0x130]
jmp 0x140082dd7
cmp ecx, 5
jne 0x140082e00
mov rbx, qword [rdx + 0x130]
jmp 0x140082dd7
mov rbx, qword [rdx + 0x130]
call fcn.140006a20
mov rcx, rax
mov r8, rbx
mov rdx, 0xffffffff80000002
call fcn.140091f80
test rax, rax
je 0x140082dbf
lea rcx, [rax + 0x20]
lea rdx, [rsi - 8]
call fcn.14000b5f0
call fcn.14000b240
test dword [rax + 0x1fc], 0x10000000
je 0x140082e00
mov rbx, qword [rdi + 0x158]
call fcn.140006a20
mov r8, rbx
mov rdx, 0xffffffff80000002
mov rcx, rax
call fcn.140091f80
test rax, rax
je 0x140082e00
lea rdx, [rsi - 8]
lea rcx, [rax + 0x20]
call fcn.14000b5f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x1400846c0
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rdx, rdx
jne 0x1400846ec
mov r8d, SystemTimeToVariantTime
lea rdx, str.CRtkAudioDriverHelper::OnStateChangedDevice
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rbx
jmp fcn.14005f240
cmp dword [0x140164320], 0
je 0x140084767
cmp dword [rdx + 0x170], 0
je 0x140084767
cmp r8d, 1
jne 0x140084767
mov r8d, SystemTimeToVariantTime
lea rdx, str.CRtkAudioDriverHelper::OnStateChangedDevice
lea rcx, [0x1400e4bf0]
call fcn.14005f240
lea rcx, [rbx + 0x10]
mov dword [rsp + 0x38], 0
xor r9d, r9d
lea r8, [rsp + 0x38]
lea rdx, [0x1400e25b8]
call fcn.140003180
test eax, eax
jne 0x140084767
mov r8d, 0xb8
lea rdx, str.CRtkAudioDriverHelper::OnStateChangedDevice
lea rcx, [0x1400e4bf0]
call fcn.14005f240
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140084af0
add rsp, 0x20
pop rbx
ret
Function at 0x140084780
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14000b520
mov rcx, rax
call fcn.14008e7c0
call fcn.14000b520
cmp dword [rax + 0x140], 0
jne 0x1400847d9
cmp dword [0x140162d94], 0
je 0x1400847d9
cmp dword [0x140162d90], 0
jne 0x1400847c0
mov rax, qword [0x14015c1e0]
test byte [rax + 0x1c], 1
je 0x1400847d9
mov r8d, 0x3e
lea rdx, str.CMMPlatform::AudioDevList_GetHeadPosition
lea rcx, str._s__d_please_call_AudioDevList_AddRef_before_AudioDevList_GetHeadPosition
call fcn.14005f240
call fcn.14000b520
mov rbx, qword [rax + 0xe0]
test rbx, rbx
je 0x140084815
nop word [rax + rax]
call fcn.14000b520
call fcn.14000b520
test rbx, rbx
je 0x140084865
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x140084810
call fcn.140084af0
test rbx, rbx
jne 0x1400847f0
call fcn.14000b520
sub dword [rax + 0x140], 1
mov ecx, dword [rax + 0x140]
jne 0x14008483c
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 0x14008485f
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.14005f240
add rsp, 0x20
pop rbx
ret
mov ecx, 0x80004005
call fcn.140004fd0
int3

Function at 0x1400854c0
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 0x1400854f6
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.14005f240
test rbx, rbx
jne 0x140085503
mov r8d, 0x224
jmp 0x1400854dc
call fcn.14000b240
test byte [rax + 0xc8], 0x10
je 0x140085549
call fcn.14000b520
mov rdx, rbp
call fcn.140090350
test rax, rax
je 0x140085549
cmp dword [rax + 0x170], 0
je 0x140085549
cmp dword [rax + 0x178], 0
jne 0x140085549
cmp dword [rax + 0x174], 0
jne 0x140085549
mov edx, dword [rbx + 0x10]
mov rcx, rax
call fcn.140085080
cmp dword [rsi + 0x14], 0
jne 0x140085559
cmp dword [rsi + 0x18], 0
je 0x140085609
mov ebx, dword [rsi + 0x18]
call fcn.14000b520
test ebx, ebx
je 0x14008556c
call fcn.140090e80
jmp 0x140085576
xor r8d, r8d
xor edx, edx
call fcn.140090570
test rax, rax
je 0x140085609
mov rdx, qword [rax + 0x168]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], r14
call fcn.140004520
mov r14, rax
mov edi, 0xffffffff
mov rcx, qword [rax]
cmp dword [rcx - 0x10], 0
jge 0x1400855af
mov ebx, edi
jmp 0x1400855c9
mov rdx, rbp
call fcn.1400c6bb0
mov rbx, rax
test rax, rax
jne 0x1400855c3
mov ebx, edi
jmp 0x1400855c9
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 0x1400855f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x140085609
lea rcx, [rsi - 0x10]
add rsp, 0x20
pop rsi
pop rbp
pop rbx
jmp fcn.140085210
add rsp, 0x20
pop rsi
pop rbp
pop rbx
ret