joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140005270
Capabilities:
Set registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r9
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
xor edi, edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x38], rdi
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140005463
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov r9, rbx
lea r8, str.SoftwareRealtekAudioRtkAudUService
lea rdx, [0x1400c3fc8]
lea rcx, [rsp + 0x38]
call fcn.140006190
mov rsi, qword [rsi + 8]
mov rbx, qword [rsp + 0x38]
test rbx, rbx
jne 0x140005319
mov r8d, 0xf0
lea rdx, str.CRegClient::SetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14004c3d0
jmp 0x14000542c
test rbp, rbp
jne 0x140005326
mov r8d, 0xf1
jmp 0x140005301
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x58], rdi
mov rdx, rbx
mov rcx, rsi
call fcn.14006b7e0
test eax, eax
jne 0x14000537b
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call fcn.14006aa70
test eax, eax
jne 0x14000537b
mov r8d, 0xfa
lea rdx, str.CRegClient::SetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14004c3d0
nop
jmp 0x14000542c
mov r9d, 2
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x48]
call fcn.140021cb0
test eax, eax
je 0x1400053c1
mov r8d, 0xff
lea rdx, str.CRegClient::SetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14004c3d0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000542c
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14000542c
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r14
mov r9d, 3
xor r8d, r8d
mov rdx, rbp
mov rsi, qword [rsp + 0x48]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test eax, eax
je 0x140005419
mov r8d, 0x103
lea rdx, str.CRegClient::SetRegBinary
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14004c3d0
nop
test rsi, rsi
je 0x14000542c
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
jmp 0x14000542c
test rsi, rsi
je 0x140005427
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov edi, 1
lea rdx, [rbx - 0x18]
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140005449
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a4020
add rsp, 0x70
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov ecx, 0x80004005
call fcn.140004670
int3
Function at 0x14000cbc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x14011f010]
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, [0x14000cdc0]
mov qword [rbx + 0x40], rdi
lea rax, [rsp + 0x30]
mov dword [rbx + 0x48], edi
mov r9, rbx
mov dword [rbx + 0x4c], 2
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], rdi
mov qword [rbx + 0x60], rdi
mov qword [rbx + 0x68], rdi
mov qword [rbx + 0x70], rdi
mov dword [rbx + 0x78], 0xa
mov dword [rsp + 0x30], edi
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rbx + 0x38], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x40], rax
mov rax, rbx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400a4020
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14000cf40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.14000ac00
mov ecx, 0x3100
cmp word [rax + 0x2ce], cx
je 0x14000cf76
call fcn.14000ac00
mov ecx, 0x1179
cmp word [rax + 0x2ce], cx
jne 0x14000cfa2
mov r9d, dword [rdi + 0x48]
test r9d, r9d
je 0x14000cfa2
mov r8d, 0x5c
lea rdx, str.CAsyncEventNotifyBase::PostEvent
lea rcx, str._s__d_m_bStop_d__return
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14004c3d0
lea rcx, [rdi + 8]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rcx, [rdi + 0x50]
mov rdx, rsi
call fcn.14000cff0
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x40]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
Function at 0x140011a50
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov r14, rdx
mov r15, rcx
test rdx, rdx
lea rdx, str.CAudioDeviceMuteStateHandler::OnRemoveDevice
jne 0x140011a9e
mov r8d, 0x192
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
jmp fcn.14004c3d0
mov r8d, 0x194
lea rcx, [0x1400c4050]
call fcn.14004c3d0
xor edi, edi
lea rbp, [rdi - 1]
cmp dword [r15 + 0x30], edi
je 0x140011ba7
mov rbx, qword [r14 + 0x170]
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140011caf
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x68], rax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140003d00
test al, al
jne 0x140011b1f
test rbx, rbx
jne 0x140011b01
mov eax, edi
jmp 0x140011b0e
mov rax, rbp
inc rax
cmp word [rbx + rax*2], 0
jne 0x140011b04
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.140003f80
nop
mov rbx, qword [rsp + 0x68]
cmp dword [rbx - 0x10], 0
jge 0x140011b2e
mov esi, ebp
jmp 0x140011b4f
lea rdx, str.0.0.0.00000000
mov rcx, rbx
call fcn.1400aa2c0
mov rsi, rax
test rax, rax
jne 0x140011b49
mov esi, ebp
jmp 0x140011b4f
sub rsi, rbx
sar rsi, 1
shr esi, 0x1f
xor sil, 1
lea rdx, [rbx - 0x18]
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140011b6f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test sil, sil
je 0x140011ba7
call fcn.14000ac00
test byte [rax + 0x264], 0xf
je 0x140011b8f
call fcn.14000af30
mov r8d, 0x1f4
jmp 0x140011b9a
call fcn.14000af30
mov r8d, 0xc8
mov edx, 0x3fd
mov rcx, rax
call fcn.1400989d0
cmp dword [r15 + 0x2c], 0
je 0x140011c93
mov rbx, qword [r14 + 0x170]
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x140011ca4
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140003d00
test al, al
jne 0x140011c0d
test rbx, rbx
je 0x140011bfc
mov rdi, rbp
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x140011bf2
mov r8d, edi
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140003f80
nop
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jge 0x140011c1c
mov edi, ebp
jmp 0x140011c3d
lea rdx, str.0.0.1.00000000
mov rcx, rbx
call fcn.1400aa2c0
mov rdi, rax
test rax, rax
jne 0x140011c37
mov edi, ebp
jmp 0x140011c3d
sub rdi, rbx
sar rdi, 1
shr edi, 0x1f
xor dil, 1
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x140011c5b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140011c93
call fcn.14000ac00
test byte [rax + 0x264], 0xf
je 0x140011c7b
call fcn.14000af30
mov r8d, 0x1f4
jmp 0x140011c86
call fcn.14000af30
mov r8d, 0xc8
mov edx, 0x3fe
mov rcx, rax
call fcn.1400989d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004670
int3
mov ecx, 0x80004005
call fcn.140004670
int3
Function at 0x140013770
Capabilities:
Print debug messages

Disassembly:
push rbx
push rsi
sub rsp, 0x28
cmp dword [rcx + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], 0
mov rsi, rdx
mov rbx, rcx
je 0x1400137be
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.14004c3d0
mov r8d, 0xee
lea rdx, str.CAudioDeviceSessionEvents::AddNewAudioSession
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x28
pop rsi
pop rbx
jmp fcn.14004c3d0
mov qword [rsp + 0x48], rbp
mov eax, 1
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r14
lock xadd dword [rcx + 0x120], eax
mov ecx, 0x28
call fcn.1400a464c
mov rdi, rax
mov qword [rsp + 0x40], rax
xor eax, eax
xor r14d, r14d
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
mov qword [rdi + 0x10], rax
lea rax, vtable.CAudioSessionEvents.0
mov qword [rdi], rax
mov qword [rdi + 8], r14
mov qword [rdi + 0x18], r14
mov qword [rdi + 0x20], r14
call fcn.140019ea0
lea rsi, [r14 - 1]
test eax, eax
je 0x140013916
mov rbp, qword [rbx + 0x140]
cmp qword [rbx + 0x158], r14
jne 0x1400138cb
mov ecx, dword [rbx + 0x160]
test rcx, rcx
jne 0x140013849
mov ecx, r14d
jmp 0x140013863
xor edx, edx
mov rax, rsi
div rcx
cmp rax, 0x18
jb 0x14001395c
lea rcx, [rcx + rcx*2]
shl rcx, 3
add rcx, 8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x14001395c
mov rcx, qword [rbx + 0x150]
mov qword [rax], rcx
mov qword [rbx + 0x150], rax
mov r8d, dword [rbx + 0x160]
lea ecx, [r8 - 1]
lea rdx, [rcx*2 + 1]
add rdx, rcx
sub r8d, 1
lea rdx, [rax + rdx*8]
js 0x1400138cb
nop word [rax + rax]
mov rax, qword [rbx + 0x158]
mov qword [rdx], rax
mov qword [rbx + 0x158], rdx
sub rdx, 0x18
sub r8d, 1
jns 0x1400138b0
mov rcx, qword [rbx + 0x158]
mov rax, qword [rcx]
mov qword [rcx + 0x10], rdi
mov qword [rbx + 0x158], rax
mov qword [rcx + 8], rbp
mov qword [rcx], r14
inc qword [rbx + 0x148]
mov rax, qword [rbx + 0x140]
test rax, rax
je 0x140013906
mov qword [rax], rcx
mov qword [rbx + 0x140], rcx
jmp 0x14001391e
mov qword [rbx + 0x138], rcx
mov qword [rbx + 0x140], rcx
jmp 0x14001391e
mov rcx, rdi
call fcn.1400134e0
lock xadd dword [rbx + 0x120], esi
mov eax, dword [rbx + 0x120]
test eax, eax
jne 0x140013946
cmp dword [rbx + reloc.OLEAUT32.dll_LPSAFEARRAY_UserUnmarshal], r14d
je 0x140013946
mov rcx, qword [rbx + 0x118]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rdi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov r14, qword [rsp + 0x20]
add rsp, 0x28
pop rsi
pop rbx
ret
mov ecx, 0x8007000e
call fcn.140004670
int3
Function at 0x14001af20
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp r8d, 0x16
jne 0x14001af64
mov rax, qword [rsp + 0x60]
lea rdx, str.CBackgroundProcMain::OnWindowsMessage
mov r8d, 0x26
mov qword [rsp + 0x20], rax
lea rcx, str._s__d_WM_ENDSESSION_wParam_d_lParam_d
call fcn.14004c3d0
call fcn.140012d30
mov rcx, rax
add rsp, 0x30
pop rbx
jmp 0x140081840
cmp r8d, 0x10
jne 0x14001afcd
mov rax, qword [rsp + 0x60]
lea rdx, str.CBackgroundProcMain::OnWindowsMessage
mov r8d, 0x2c
mov qword [rsp + 0x20], rax
lea rcx, str._s__d_WM_CLOSE_wParam_d_lParam_d_Start
call fcn.14004c3d0
mov rcx, rbx
call fcn.14001c8a0
test rbx, rbx
je 0x14001afaf
mov rcx, rbx
call fcn.14001aea0
mov edx, 0xf8
mov rcx, rbx
call fcn.1400a404c
mov r8d, 0x2f
lea rdx, str.CBackgroundProcMain::OnWindowsMessage
lea rcx, str._s__d_WM_CLOSE_end
add rsp, 0x30
pop rbx
jmp fcn.14004c3d0
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rsi, [rcx + 0xb8]
lea r14, [rcx + 0xe8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rbx, qword [r14]
test rbx, rbx
je 0x140081922
xor ebp, ebp
test rbx, rbx
je 0x140081955
mov rdi, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rdi, rdi
je 0x140081919
cmp dword [0x140126804], ebp
jne 0x1400818fe
cmp dword [0x140126800], ebp
jne 0x1400818fe
cmp dword [0x140126808], ebp
jne 0x1400818fe
movups xmm0, xmmword [0x1400c3368]
mov rcx, qword [rdi + 0x800]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x40]
mov r9d, 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
mov dword [rsp + 0x50], ebp
movaps xmmword [rsp + 0x40], xmm0
lea r8d, [r9 + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140074b50
cmp qword [rdi + 0x810], rbp
je 0x140081919
mov rcx, qword [rdi + 0x7e0]
test rcx, rcx
je 0x140081919
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
test rbx, rbx
jne 0x14008188f
mov rcx, r14
call fcn.14000b9a0
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a4020
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140004670
int3
Function at 0x14001ea90
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xc8], rbx
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r8
mov rbp, rdx
mov r15, rcx
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x14001ecc0
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xor r13d, r13d
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
lea r14, [r13 - 1]
test eax, eax
jne 0x14001ec82
cmp dword [rsp + 0x40], 7
jne 0x14001ec82
mov edi, dword [rsp + 0x38]
shr edi, 1
je 0x14001ec82
mov ecx, edi
mov eax, 2
mul rcx
cmovo rax, r14
mov rcx, rax
call fcn.1400a4688
mov r12, rax
test rax, rax
je 0x14001ec82
cmp edi, 2
jb 0x14001ec79
lea r8d, [rdi + rdi]
mov dword [rsp + 0x3c], r8d
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [r15]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001ec79
cmp dword [rsp + 0x44], 7
jne 0x14001ec79
mov eax, dword [rsp + 0x3c]
test al, 1
jne 0x14001ec79
mov ebp, eax
shr ebp, 1
cmp ebp, 1
jb 0x14001ec79
shr rax, 1
cmp word [r12 + rax*2 - 2], r13w
jne 0x14001ec79
cmp ebp, 1
jbe 0x14001ebda
cmp word [r12 + rax*2 - 4], r13w
jne 0x14001ec79
mov edi, r13d
test ebp, ebp
je 0x14001ec79
nop word [rax + rax]
mov eax, edi
lea rdx, [r12 + rax*2]
cmp r13w, word [rdx]
jne 0x14001ec03
mov eax, 1
jmp 0x14001ec6f
test rdx, rdx
jne 0x14001ec0d
mov eax, r13d
jmp 0x14001ec1a
mov rax, r14
inc rax
cmp word [rdx + rax*2], r13w
jne 0x14001ec10
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.140003f80
mov rbx, qword [rsp + 0x48]
movzx eax, word [rbx]
cmp ax, word [0x1400c4360]
je 0x14001ec6c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CLSIDFromString]
mov rdx, qword [rsi + 8]
cmp qword [rsi + 0x10], rdx
je 0x14001ec5f
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rdx], xmm0
add qword [rsi + 8], 0x10
jmp 0x14001ec6c
lea r8, [rsp + 0x50]
mov rcx, rsi
call fcn.140021810
mov eax, dword [rbx - 0x10]
add edi, eax
cmp edi, ebp
jb 0x14001ebf0
mov rcx, r12
call fcn.1400a404c
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x14001ec9b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a4020
mov rbx, qword [rsp + 0xc8]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004670
int3
Function at 0x14001ecd0
Capabilities:
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xb8], rbx
mov rax, qword [0x14011f010]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r13, r8
mov qword [rsp + 0x38], rdx
mov r14, rcx
mov qword [rsp + 0x30], rcx
mov r15, qword [r8 + 8]
sub r15, qword [r8]
sar r15, 4
lea eax, [r15 + r15*4]
shl eax, 3
movsxd rcx, eax
add rcx, 2
mov eax, 2
mul rcx
mov rbp, 0xffffffffffffffff
cmovo rax, rbp
mov rcx, rax
call fcn.1400a4688
mov r12, rax
xor edi, edi
mov qword [rsp + 0x48], rdi
call fcn.140004540
mov rcx, rax
test rax, rax
je 0x14001eea8
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x50], rbx
mov dword [r12], edi
mov esi, edi
test r15d, r15d
jle 0x14001ee21
mov r14d, edi
mov r15d, r15d
mov rcx, qword [r13]
add rcx, r14
lea rdx, [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_StringFromCLSID]
mov rdx, qword [rsp + 0x48]
test rdx, rdx
jne 0x14001eda3
mov eax, edi
jmp 0x14001edb0
mov rax, rbp
inc rax
cmp word [rdx + rax*2], 0
jne 0x14001eda6
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.140003f80
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14001edd2
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov qword [rsp + 0x48], rdi
mov rbx, qword [rsp + 0x50]
movzx eax, word [rbx]
cmp ax, word [0x1400c4360]
je 0x14001ee0e
movsxd rax, dword [rbx - 0x10]
cmp eax, 0x28
jge 0x14001ee0e
mov r8, rax
add r8, r8
movsxd rax, esi
lea rcx, [r12 + rax*2]
mov rdx, rbx
call fcn.1400aaba0
add esi, dword [rbx - 0x10]
movsxd rax, esi
mov word [r12 + rax*2], di
inc esi
add r14, 0x10
sub r15, 1
jne 0x14001ed83
mov r14, qword [rsp + 0x30]
movsxd rax, esi
mov word [r12 + rax*2], di
test r12, r12
je 0x14001ee6c
mov r9, r12
mov rax, rbp
inc rax
cmp word [r9 + rax*2], 0
jne 0x14001ee34
inc eax
lea r9, [r9 + rax*2]
lea edi, [rdi + rax*2]
cmp eax, 1
jne 0x14001ee31
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r12
lea r9d, [rax + 6]
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, qword [r14]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], ebp
sub ebp, 1
jg 0x14001ee83
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a4020
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140004670
int3
Function at 0x140021b80
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140021c35
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140021c01
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140021c19
lea rdx, [0x1400ca908]
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
test rax, rax
je case.default.0x140021c19
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je case.default.0x140021c19
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.api_ms_win_core_registry_l2_1_0.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x140127318], 0
jne 0x140021c80
lea rcx, str.Advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test rax, rax
je 0x140021c70
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [0x140127320], rax
mov byte [0x140127318], 1
jmp 0x140021c87
mov rax, qword [0x140127320]
mov byte [0x140127318], 1
jmp 0x140021c87
mov rax, qword [0x140127320]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x140021c0a
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
in eax, dx
or ch, dl
or al, byte [rbp + 0x77088608]
or byte [rdi + 0xb], dh
jns 0x1401d2ac7
out dx, eax

Function at 0x140021de0
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov r9, r8
mov r10, rdx
test r8, r8
jne 0x140021df8
lea eax, [r8 + 0xd]
add rsp, 0x38
ret
xor r8d, r8d
mov rdx, r9
nop
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140021e10
inc eax
lea rdx, [rdx + rax*2]
lea r8d, [r8 + rax*2]
cmp eax, 1
jne 0x140021e00
mov rcx, qword [rcx]
mov rdx, r10
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], r9
lea r9d, [rax + 6]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x140022760
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push r14
sub rsp, 0x68
mov rbx, r8
mov r14, rdx
test rdx, rdx
jne 0x14002277f
mov r8d, 0xa2
jmp 0x14002278a
test rbx, rbx
jne 0x1400227a4
mov r8d, 0xa3
lea rdx, str.CBssGen4ConditionMgr::UpdateScenario
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x68
pop r14
pop rbx
jmp fcn.14004c3d0
mov dword [r8 + 8], 0
mov ecx, dword [rdx + 0x1ac]
lea eax, [rcx - 1]
test eax, 0xfffffffd
je 0x140022943
lea eax, [rcx - 5]
cmp eax, 1
ja 0x1400227de
mov rcx, r14
call fcn.1400145b0
cmp dword [r14 + 0x84], 0
jne 0x140022943
mov rcx, r14
call fcn.14000e720
test eax, eax
je 0x140022943
mov qword [rsp + 0x90], rbp
mov rcx, r14
mov qword [rsp + 0x48], r13
call fcn.14000e850
mov ecx, dword [r14 + 0x178]
mov dword [rsp + 0x80], ecx
mov dword [rsp + 0x88], eax
test eax, eax
je 0x140022820
xor ebp, ebp
jmp 0x140022829
mov eax, ecx
neg eax
sbb ebp, ebp
add ebp, 2
mov r13d, dword [rbx + 4]
xor r10d, r10d
test r13d, r13d
jle 0x140022936
mov qword [rsp + 0x60], rsi
mov esi, dword [rbx]
mov qword [rsp + 0x58], rdi
mov edi, 0x103
mov qword [rsp + 0x50], r12
mov r12, qword [0x1400c3d08]
mov qword [rsp + 0x40], r15
mov r15, qword [0x1400c3d10]
xor eax, eax
xor r8d, r8d
lea r9d, [rax + 1]
test esi, esi
jle 0x1400228c7
movsxd r11, r10d
shl r11, 3
nop word [rax + rax]
movsxd rcx, eax
add rcx, r11
add rcx, rcx
cmp qword [rbx + rcx*8 + 0xc], r12
jne 0x1400228ab
cmp qword [rbx + rcx*8 + 0x14], r15
jne 0x1400228ab
xor edx, edx
lea rcx, [rdi + r8]
cmp dword [rbx + rcx*4], ebp
cmove edx, r9d
mov r9d, edx
test edx, edx
je 0x1400228b9
inc eax
inc r8
cmp eax, esi
jl 0x140022880
test r9d, r9d
jne 0x1400228c7
inc r10d
add rdi, 8
cmp r10d, r13d
jl 0x140022862
jmp 0x140022922
cmp dword [0x140125c9c], 0
mov dword [rbx + 8], r10d
je 0x140022922
cmp dword [0x140125c98], 0
jne 0x1400228ea
mov rax, qword [0x14011faa0]
test byte [rax + 0x1c], 1
je 0x140022922
mov eax, dword [rsp + 0x80]
lea rdx, str.CBssGen4ConditionMgr::UpdateScenario
mov r9, qword [r14 + 0x10]
lea rcx, str._s__d_EpId_s_ScenarioIdx_d_IsIntegratedMic_d_bRtkDev_d
mov dword [rsp + 0x30], eax
mov r8d, 0xe4
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r10d
call fcn.14004c3d0
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x90]
mov r13, qword [rsp + 0x48]
add rsp, 0x68
pop r14
pop rbx
ret
Function at 0x140022d40
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.14000adc0
mov rdx, rsi
call fcn.140078610
mov rbx, rax
test rax, rax
je 0x140022dba
cmp dword [rax + 0x1dc], 0
jge 0x140022d7c
cmp dword [rax + 0x1ac], 4
je 0x140022d85
test byte [rax + 0x1e4], 0x80
je 0x140022dba
mov rdx, rsi
mov rcx, rdi
call fcn.1400889d0
test rax, rax
jne 0x140022d9d
mov r8d, 0x142
jmp 0x140022dc0
mov r8, rax
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140022df0
mov r8d, 0x13f
lea rdx, str.CBssGen4ConditionMgr::UpdateConditionsToApo
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14004c3d0