joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004c1b0
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 [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r9
mov r14, r8
mov rbp, qword [rsp + 0xb0]
test rdx, rdx
jne 0x14004c205
mov r8d, 0xda
lea rdx, str.CRegClient::GetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14002f950
xor eax, eax
jmp 0x14004c2b2
test rbp, rbp
jne 0x14004c212
mov r8d, 0xdc
jmp 0x14004c1eb
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.14002a460
test eax, eax
je 0x14004c24b
mov r8d, 0xe5
jmp 0x14004c288
test rsi, rsi
je 0x14004c255
mov rax, qword [rsi]
jmp 0x14004c257
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 0x14004c282
cmp dword [rsp + 0x38], 3
je 0x14004c29d
mov r8d, 0xe9
lea rdx, str.CRegClient::GetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14002f950
xor edi, edi
cmp qword [rsp + 0x40], 0
je 0x14004c2b0
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.140076320
add rsp, 0x68
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14004c2d0
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 [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x14004c326
mov r8d, 0xf0
lea rdx, str.CRegClient::SetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14002f950
xor eax, eax
jmp 0x14004c404
test r14, r14
jne 0x14004c333
mov r8d, 0xf1
jmp 0x14004c30c
xor eax, eax
mov qword [rsp + 0x40], rax
xor edi, edi
mov ebx, edi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rdi
call fcn.14004cbf0
test eax, eax
jne 0x14004c36c
mov rdx, rsi
mov rcx, rbp
call fcn.14004c420
test eax, eax
jne 0x14004c36c
mov r8d, 0xfa
jmp 0x14004c3da
mov r9d, 2
mov r8, rsi
mov rdx, rbp
lea rcx, [rsp + 0x38]
call fcn.14002a460
test eax, eax
je 0x14004c3a6
mov r8d, 0xff
lea rdx, str.CRegClient::SetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14002f950
mov rbx, qword [rsp + 0x38]
jmp 0x14004c3f4
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
mov r9d, 3
xor r8d, r8d
mov rdx, r14
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x14004c3ef
mov r8d, 0x103
lea rdx, str.CRegClient::SetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14002f950
jmp 0x14004c3f4
mov edi, 1
test rbx, rbx
je 0x14004c402
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140076320
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004c630
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r9
mov rbp, r8
mov qword [rsp + 0x48], r8
mov r13, rdx
mov r12, rcx
mov r15, qword [rsp + 0xf0]
xor eax, eax
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov r14d, ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x68], rbx
call fcn.140004150
mov rcx, rax
test rax, rax
jne 0x14004c6a7
mov ecx, 0x80004005
call fcn.140003ec0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x50], rax
lea rdx, [0x140094658]
or rdi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x14004c6eb
movzx ebp, dx
mov ecx, ebp
call fcn.1400055d0
test rax, rax
je 0x14004c709
mov r8d, ebp
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140005290
jmp 0x14004c709
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004c6f0
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140003c30
jmp 0x14004c70e
mov rbp, qword [rsp + 0x48]
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, r13
mov rcx, r12
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004c7c3
mov eax, ebx
mov r14, qword [rsp + 0x40]
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], ebx
test ebx, ebx
jne 0x14004c7c3
mov eax, dword [r15]
add eax, eax
mov dword [rsp + 0x38], eax
mov dword [r15], ebx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x48]
xor r8d, r8d
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14004c7c3
mov eax, dword [rsp + 0x48]
dec eax
cmp eax, 1
jbe 0x14004c791
lea eax, [rbx + 0xd]
jmp 0x14004c7c1
mov ecx, dword [rsp + 0x38]
test rsi, rsi
je 0x14004c7ba
test ecx, ecx
je 0x14004c7b7
test cl, 1
jne 0x14004c7b0
mov eax, ecx
shr rax, 1
cmp word [rsi + rax*2 - 2], 0
je 0x14004c7ba
mov eax, 0xd
jmp 0x14004c7c1
mov word [rsi], bx
shr ecx, 1
mov dword [r15], ecx
mov eax, ebx
test eax, eax
sete bl
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14004c7e4
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14004c7f4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140076320
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004ca80
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 [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, r9
mov r15, r8
mov r14, rdx
mov rdi, rcx
xor eax, eax
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov esi, ebx
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
mov qword [rsp + 0x50], rbx
call fcn.14004cbf0
test eax, eax
jne 0x14004cb00
mov rdx, r14
mov rcx, rdi
call fcn.14004c420
test eax, eax
jne 0x14004cb00
mov r8d, 0x1e3
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14002f950
jmp 0x14004cbc4
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14004cb3a
mov edi, ebx
mov rsi, qword [rsp + 0x38]
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], ebx
mov r9d, edi
mov r8d, 0x1e9
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_nRet_d
call fcn.14002f950
test edi, edi
jne 0x14004cbc1
test rbp, rbp
jne 0x14004cb64
lea edi, [rbp + 0xd]
jmp 0x14004cba3
or rax, 0xffffffffffffffff
nop dword [rax + rax]
lea rax, [rax + 1]
cmp word [rbp + rax*2], 0
jne 0x14004cb70
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbp
mov r9d, 1
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
mov r9d, edi
mov r8d, 0x1f0
lea rdx, str.CRegClient::SetRegStringValue
lea rcx, str._s__d_nRet_d
call fcn.14002f950
test edi, edi
sete bl
test rsi, rsi
je 0x14004cbd2
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140076320
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004d0e0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov rbx, rcx
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
xor esi, esi
mov ebp, esi
mov dword [rsp + 0x68], esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x58], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov r13d, eax
test eax, eax
jne 0x14004d290
mov r13d, esi
mov rbp, qword [rsp + 0x58]
mov qword [rsp + 0x60], rbp
mov dword [rsp + 0x68], esi
mov r12d, esi
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x80]
call fcn.14007eaa0
mov dword [rsp + 0x58], 0x1ff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
jne 0x14004d27f
mov r14, qword [rbx + 8]
mov rcx, rbx
call fcn.1400054c0
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x48], rdi
mov r15, qword [rdi]
mov qword [rsp + 0x50], rdi
test rdi, rdi
je 0x14004d206
lea rcx, [rdi + 0x10]
lea rdx, [rsp + 0x80]
call fcn.140005160
nop
mov qword [rbx + 0x20], r15
mov qword [rdi + 8], r14
mov qword [rdi], rsi
inc qword [rbx + 0x10]
mov rax, qword [rbx + 8]
test rax, rax
je 0x14004d223
mov qword [rax], rdi
jmp 0x14004d226
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
inc r12d
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x80]
call fcn.14007eaa0
mov dword [rsp + 0x58], 0x1ff
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x80]
mov edx, r12d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
test eax, eax
je 0x14004d1d2
test rbp, rbp
je 0x14004d290
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rbp, rsi
test r13d, r13d
sete sil
test rbp, rbp
je 0x14004d2a5
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140076320
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14004d2e0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x30]
xor ebx, ebx
mov r9d, 0x20006
mov qword [rsp + 0x30], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetServicesRealtekAudioRTKAMPInfo
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14004d334
mov edi, ebx
mov rbx, qword [rsp + 0x30]
test edi, edi
jne 0x14004d372
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 4
lea r9d, [rdi + 4]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 2
lea rdx, str.viR0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov edi, eax
test rbx, rbx
je 0x14004d382
jmp 0x14004d377
test rbx, rbx
je 0x14004d380
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140076320
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14004d3a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
lea rax, [rsp + 0x30]
xor ebx, ebx
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetServicesRealtekAudioRTKAMPInfo
mov qword [rsp + 0x30], rbx
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14004d3fa
mov rbx, qword [rsp + 0x30]
test edi, edi
jne 0x14004d440
lea rax, [rsp + 0x38]
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.viR0
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004d440
cmp dword [rsp + 0x30], 4
mov eax, 0xd
cmovne edi, eax
test rbx, rbx
je 0x14004d44e
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140076320
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14004d470
Capabilities:
Persist via run registry key

Disassembly:
push rbx
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor eax, eax
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x38], rax
lea rdx, str.RtkAudUService
lea rcx, [rsp + 0x28]
call fcn.140005160
mov rbx, rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
lea rcx, [rsp + 0x20]
call fcn.140005160
nop
mov r9, rbx
mov r8, rax
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.14004c820
xor ebx, ebx
mov rcx, qword [rsp + 0x40]
cmp dword [rcx - 0x10], ebx
setne bl
lea rdx, [rcx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14004d504
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140076320
add rsp, 0x50
pop rbx
ret

Function at 0x14004d520
Capabilities:
Persist via run registry key

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x30], rax
call fcn.140004150
mov rcx, rax
test rax, rax
jne 0x14004d556
mov ecx, 0x80004005
call fcn.140003ec0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x28], rax
call fcn.140005000
mov r8, rax
lea r9, str._background
lea rdx, str._s__s
lea rcx, [rsp + 0x28]
call fcn.1400053a0
mov rbx, qword [rsp + 0x28]
mov r9, rbx
mov r8d, 0x23
lea rdx, str.CRegKeyMgr::AddRtkAudUServiceRunKey
lea rcx, str._s__d_szPath_s
call fcn.14002f950
mov r9, rbx
lea r8, str.RtkAudUService
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
mov rcx, 0xffffffff80000002
call fcn.14004ca80
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004d5de
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140076320
add rsp, 0x40
pop rbx
ret
Function at 0x14004e380
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14004e3b8
mov r8d, 0xf3
lea rdx, str.CRegPKeyReWriter::OnRemoveDevice
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.14002f950
mov ecx, dword [rdx + 0x16c]
lea eax, [rcx - 1]
test eax, 0xfffffffd
je 0x14004e40f
cmp ecx, 4
jne 0x14004e50c
mov rbx, qword [rdx + 0x130]
call fcn.140005070
mov rcx, rax
mov r8, rbx
mov rdx, 0xffffffff80000002
call fcn.1400583e0
test rax, rax
je 0x14004e50c
lea rdx, [rdi - 8]
lea rcx, [rax + 0x20]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400050c0
mov rax, qword [0x1400daaf8]
mov qword [rsp + 0x30], rbp
xor ebp, ebp
mov qword [rsp + 0x40], rsi
mov rsi, qword [rdx + 0x128]
test rax, rax
jne 0x14004e462
lea ecx, [rbp + 0x30]
call fcn.140076964
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [0x1400daaf8], rax
mov qword [rax + 0x28], rcx
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
mov dword [rax + 0x28], 0xa
mov r8, rsi
mov rdx, 0xffffffff80000002
mov rcx, rax
call fcn.1400583e0
mov rsi, qword [rsp + 0x40]
test rax, rax
je 0x14004e48b
lea rdx, [rdi - 8]
lea rcx, [rax + 0x20]
call fcn.140009990
call fcn.140009810
test dword [rax + 0x180], 0x10000000
je 0x14004e507
mov rax, qword [0x1400daaf8]
mov rbx, qword [rbx + 0x130]
test rax, rax
jne 0x14004e4e3
lea ecx, [rax + 0x30]
call fcn.140076964
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [0x1400daaf8], rax
mov qword [rax + 0x28], rcx
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rbp
mov dword [rax + 0x28], 0xa
mov r8, rbx
mov rdx, 0xffffffff80000002
mov rcx, rax
call fcn.1400583e0
test rax, rax
je 0x14004e507
lea rdx, [rdi - 8]
lea rcx, [rax + 0x20]
call fcn.140009990
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14004fa90
Capabilities:
Create thread

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x30], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
mov qword [r11 - 0x28], rcx
add rcx, 0x18
call fcn.1400511e0
nop
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.2.0
mov qword [rdi], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.1.0
mov qword [rdi + 8], rax
lea rax, vtable.CRtkAudioDriverHelperForNormalUser.0
mov qword [rdi + 0x10], rax
xor ebp, ebp
mov dword [rdi + 0x20], ebp
mov qword [rdi + 0x28], rbp
mov qword [rdi + 0x38], rbp
mov dword [rdi + 0x40], ebp
call fcn.140009810
movzx ecx, byte [rax + 0xb3]
and ecx, 1
mov dword [rdi + 0x20], ecx
call fcn.140009810
test dword [rax + 0x128], 0x400
je 0x14004fb97
lea rcx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_GetSystemPowerStatus]
mov r8d, ebp
cmp byte [rsp + 0x48], bpl
setne r8b
mov dword [rdi + 0x40], r8d
lea rdx, str.CRtkAudioDriverHelperForNormalUser::CRtkAudioDriverHelperForNormalUser
lea rcx, str._s_PowerState_d
call fcn.14002f950
mov rax, qword [0x1400dab08]
test rax, rax
jne 0x14004fb8b
mov ecx, BSTR_UserMarshal
call fcn.140076964
mov rbx, rax
mov qword [rsp + 0x30], rax
xor edx, edx
mov r8d, BSTR_UserFree
mov rcx, rax
call fcn.14007eaa0
mov rcx, rbx
call fcn.14005e430
nop
mov qword [0x1400dab08], rax
lea rcx, [rax + 0x20]
mov rdx, rdi
call fcn.1400050c0
cmp dword [rdi + 0x20], 0
je 0x14004fc50
call fcn.140050490
lea rsi, [rdi + 0x10]
test rdi, rdi
cmove rsi, rbp
mov rax, qword [0x1400dab30]
test rax, rax
jne 0x14004fbef
mov ecx, 0x248
call fcn.140076964
mov rbx, rax
mov qword [rsp + 0x30], rax
xor edx, edx
mov r8d, 0x248
mov rcx, rax
call fcn.14007eaa0
mov rcx, rbx
call fcn.14006e230
nop
mov qword [0x1400dab30], rax
lea rcx, [rax + 0x28]
mov rdx, rsi
call fcn.1400050c0
lea rsi, [rdi + 8]
test rdi, rdi
cmove rsi, rbp
mov rax, qword [0x1400daaf0]
test rax, rax
jne 0x14004fc44
mov ecx, 0x150
call fcn.140076964
mov rbx, rax
mov qword [rsp + 0x30], rax
xor edx, edx
mov r8d, 0x150
mov rcx, rax
call fcn.14007eaa0
mov rcx, rbx
call fcn.1400555d0
nop
mov qword [0x1400daaf0], rax
lea rcx, [rax + 0x10]
mov rdx, rsi
call fcn.1400050c0
mov qword [rdi + 0x30], rbp
call fcn.140009810
test byte [rax + 0x144], 4
je 0x14004fc83
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
mov r9, rdi
lea r8, [0x140050310]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi + 0x50], rax
call fcn.140009810
test byte [rax + 0x3c], 1
jne 0x14004fc99
call fcn.140009810
test byte [rax + 0x3c], 8
je 0x14004fcc6
mov ecx, 0x20
call fcn.140076964
mov qword [rsp + 0x30], rax
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov rcx, rax
call fcn.14006c170
nop
mov qword [rdi + 0x28], rax
mov rax, rdi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140076320
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14004fec0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x30
mov ebx, r8d
mov rsi, rcx
call fcn.140009810
cmp ebx, 0x2c
jne 0x14004ff54
mov qword [rsp + 0x40], rdi
call fcn.14004ff60
mov r9d, dword [rsi + 0x40]
lea rdx, str.CRtkAudioDriverHelperForNormalUser::IsACPowerStateChanged
xor ebx, ebx
mov dword [rsp + 0x20], eax
cmp r9d, eax
lea rcx, str._s_PowerStateChange_d_SysPowerState_d_DrvAcPowerState_d
mov edi, eax
setne bl
mov r8d, ebx
call fcn.14002f950
mov dword [rsi + 0x40], edi
mov rdi, qword [rsp + 0x40]
test ebx, ebx
je 0x14004ff54
call fcn.140009a70
mov edx, 1
call fcn.140057270
mov r9, rsi
mov qword [rsp + 0x28], 0
lea r8, [0x140050020]
mov qword [rsi + 0x38], rax
xor edx, edx
mov dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rsi + 0x48], rax
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rsi
ret

Function at 0x140055860
Capabilities:
Print debug messages

Disassembly:
sub dword [rcx + 0x138], 1
mov eax, dword [rcx + 0x138]
jne 0x14005587d
mov rcx, qword [rcx + 0x148]
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
cmp eax, 0x32
jle 0x14005589b
mov r8d, 0x6e
lea rdx, str.CMMPlatform::AudioDevList_Release
lea rcx, str._s__d_calling_AudioDevList_Release_isnt_matched_AudioDevList_AddRef_or_directly_return_in_EnumAudioDeviceStart_loop
jmp fcn.14002f950
ret
Function at 0x140057f70
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [0x1400d5010]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rsi, [rcx + 0x4e8]
mov rdi, rdx
mov rbx, qword [rsi]
mov rbp, rcx
test rbx, rbx
je 0x140057fc3
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x140057fbe
add rcx, 4
mov rdx, rdi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x1400580ff
test rbx, rbx
jne 0x140057f9d
mov qword [rsp + 0x90], r14
mov ecx, 0x110
mov qword [rsp + 0x50], r15
call fcn.140076964
xor edx, edx
mov r8d, 0x110
mov rcx, rax
mov rbx, rax
call fcn.14007eaa0
lea r14, [rbx + 4]
mov edx, 0x7f
mov rcx, r14
sub rdi, r14
nop dword [rax]
lea rax, [rdx + 0x7fffff7f]
test rax, rax
je 0x140058022
movzx eax, word [rdi + rcx]
test ax, ax
je 0x140058022
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140058000
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
xor r15d, r15d
mov word [rax], r15w
cmp dword [rbp + 0x4e0], r15d
je 0x1400580ad
mov rcx, qword [rbp + 0x4c8]
mov r9, rbx
mov qword [rsp + 0x28], r15
xor r8d, r8d
mov rdx, r14
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400580ad
mov eax, dword [rbx]
cmp eax, 4
je 0x140058077
cmp eax, 0xb
jne 0x1400580ad
mov dword [rsp + 0x30], 8
jmp 0x14005807f
mov dword [rsp + 0x30], 4
lea rcx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0x108]
mov rcx, qword [rbp + 0x4c8]
lea r9, [rsp + 0x38]
mov rdx, r14
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rdi, qword [rsi + 8]
mov rcx, rsi
call fcn.1400054c0
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x38], rax
mov r14, qword [rsp + 0x90]
mov rcx, qword [rax]
test rax, rax
je 0x1400580d6
mov qword [rax + 0x10], rbx
mov qword [rsi + 0x20], rcx
mov qword [rax], r15
mov r15, qword [rsp + 0x50]
mov qword [rax + 8], rdi
inc qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
test rcx, rcx
je 0x1400580f8
mov qword [rcx], rax
jmp 0x1400580fb
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140076320
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret