joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140098040
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, qword [rcx + 0x508]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x14009808f
mov rcx, qword [rbx + 0x10]
mov rbx, qword [rbx]
test rcx, rcx
je 0x14009808a
add rcx, 4
mov rdx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpW]
test eax, eax
je 0x140098288
test rbx, rbx
jne 0x140098069
mov qword [rsp + 0x70], rbp
mov ecx, BSTR_UserUnmarshal
mov qword [rsp + 0x78], r14
call fcn.1400ce83c
xor edx, edx
mov r8d, BSTR_UserUnmarshal
mov rcx, rax
mov rbx, rax
call fcn.1400d54b0
lea rbp, [rbx + 4]
mov edx, 0x7f
mov rcx, rbp
sub rsi, rbp
nop word [rax + rax]
lea rax, [rdx + 0x7fffff7f]
test rax, rax
je 0x1400980f4
movzx eax, word [rsi + rcx]
test ax, ax
je 0x1400980f4
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400980d0
jmp 0x1400980f9
test rdx, rdx
jne 0x1400980fd
sub rcx, 2
xor r14d, r14d
mov word [rcx], r14w
cmp dword [rdi + 0x4f8], r14d
je 0x14009819b
mov rcx, qword [rdi + 0x4e0]
mov r9, rbx
mov qword [rsp + 0x28], r14
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140098191
mov eax, dword [rbx]
cmp eax, 4
je 0x140098159
cmp eax, 0xb
jne 0x14009819b
lea r8, [rbx + 0x108]
mov rdx, rbp
lea rcx, [rdi + 0x4e0]
call fcn.140098d50
jmp 0x14009819b
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 4
mov qword [rsp + 0x28], rcx
lea rax, [rbx + 0x108]
mov rcx, qword [rdi + 0x4e0]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbp
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
jmp 0x14009819b
mov dword [rbx + 0x110], 1
mov rsi, qword [rdi + 0x510]
mov rbp, qword [rsp + 0x70]
cmp qword [rdi + 0x528], r14
jne 0x140098241
mov ecx, dword [rdi + 0x530]
test rcx, rcx
jne 0x1400981c4
mov rcx, r14
jmp 0x1400981e2
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 0x18
jb 0x14009829d
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 0x14009829d
mov rcx, qword [rdi + 0x520]
mov qword [rax], rcx
mov qword [rdi + 0x520], rax
mov r8d, dword [rdi + 0x530]
lea ecx, [r8 - 1]
lea rdx, [rcx*2 + 1]
add rdx, rcx
sub r8d, 1
lea rdx, [rax + rdx*8]
js 0x140098241
mov rax, qword [rdi + 0x528]
mov qword [rdx], rax
mov qword [rdi + 0x528], rdx
sub rdx, 0x18
sub r8d, 1
jns 0x140098226
mov rcx, qword [rdi + 0x528]
mov rax, qword [rcx]
mov qword [rcx + 0x10], rbx
mov qword [rdi + 0x528], rax
mov qword [rcx + 8], rsi
mov qword [rcx], r14
inc qword [rdi + 0x518]
mov rax, qword [rdi + 0x510]
test rax, rax
je 0x140098275
mov qword [rax], rcx
jmp 0x14009827c
mov qword [rdi + 0x508], rcx
mov r14, qword [rsp + 0x78]
mov qword [rdi + 0x510], rcx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ce210
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x8007000e
call fcn.140005560
int3
Function at 0x1400982b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, qword [rcx + 0x508]
xor r15d, r15d
mov r14, rcx
mov ebp, r15d
test rsi, rsi
je 0x14009847d
mov rbx, qword [rsi + 0x10]
mov rsi, qword [rsi]
test rbx, rbx
je 0x140098474
mov edi, dword [rbx]
test edi, edi
jne 0x14009832d
mov rcx, qword [r14 + 0x4e0]
lea rdx, [rbx + 4]
mov qword [rsp + 0x28], r15
mov r9, rbx
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14009832d
mov edi, dword [rbx]
sub edi, 1
je 0x14009845c
sub edi, 3
je 0x1400983d6
cmp edi, 7
jne 0x140098474
mov rcx, qword [r14 + 0x4e0]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rbx + 4]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], r15
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x30], 8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140098474
cmp dword [rsp + 0x40], 0xb
jne 0x140098474
mov rcx, qword [rsp + 0x38]
mov eax, r15d
cmp rcx, qword [rbx + 0x108]
setne al
cmp dword [rbx + 0x110], r15d
je 0x1400983ba
mov dword [rbx + 0x110], r15d
lea eax, [rdi - 6]
test ebp, ebp
jne 0x1400983c5
mov ebp, r15d
test eax, eax
je 0x1400983ca
mov ebp, 1
mov qword [rbx + 0x108], rcx
jmp 0x140098456
mov rcx, qword [r14 + 0x4e0]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [rbx + 4]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], r15d
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 4
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140098474
cmp dword [rsp + 0x44], 4
jne 0x140098474
mov ecx, dword [rsp + 0x30]
mov eax, r15d
cmp ecx, dword [rbx + 0x108]
setne al
cmp dword [rbx + 0x110], r15d
je 0x140098440
mov dword [rbx + 0x110], r15d
mov eax, 1
test ebp, ebp
jne 0x14009844b
mov ebp, r15d
test eax, eax
je 0x140098450
mov ebp, 1
mov dword [rbx + 0x108], ecx
test eax, eax
je 0x140098474
jmp 0x140098461
mov eax, 1
mov dword [rbx + 0x114], eax
mov rcx, qword [r14 + 0x4d0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
test rsi, rsi
jne 0x1400982f0
cmp dword [r14 + 0x4fc], r15d
je 0x140098493
mov rcx, qword [r14 + 0x4c0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400ce210
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x1400988d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x270
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbp, rcx
xor r14d, r14d
mov rcx, rdx
mov esi, r14d
mov rbx, rdx
call fcn.140017f70
nop dword [rax + rax]
xor edx, edx
lea rcx, [rsp + 0x154]
mov r8d, 0x104
call fcn.1400d54b0
xor edx, edx
mov dword [rsp + 0x40], 0x104
mov r8d, 0x104
lea rcx, [rsp + 0x50]
call fcn.1400d54b0
mov rcx, qword [rbp + 0x4e0]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x50]
mov qword [rsp + 0x30], r14
mov edx, esi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegEnumValueW]
mov r8, qword [rbx + 8]
lea rdx, [rsp + 0x50]
xor r9d, r9d
mov rcx, rbx
mov edi, eax
inc esi
call fcn.140018040
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140098992
mov qword [rcx], rax
jmp 0x140098995
mov qword [rbx], rax
mov qword [rbx + 8], rax
test edi, edi
je 0x140098910
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.1400ce210
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140098d50
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov dword [rsp + 0x30], 8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140098d9c
cmp dword [rsp + 0x34], 0xb
mov ecx, SafeArrayDestroy
cmovne eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400ce210
add rsp, 0x48
ret
Function at 0x14009ae50
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
movzx eax, byte [rcx + 0x1b4]
mov rbx, rcx
test al, al
jne 0x14009aed9
mov byte [rcx + 0x1b4], 1
call fcn.14000bb60
mov rcx, rax
mov edx, 0x3f3
call fcn.1400c3be0
mov rcx, qword [rbx + 0x90]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 0xa8]
mov edx, 0xea60
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
lea rdx, str.CRpcClientObject::StopRpcEventTunnel
cmp eax, 0x102
jne 0x14009aec2
mov r9, rbx
lea r8d, [rax + 0x18]
lea rcx, str._s__d_WaitForSingleObject_hRpcEventTunnelTerminated__60000__timeout_CRpcClientObject_x
add rsp, 0x20
pop rbx
jmp fcn.140064950
mov r8d, reloc.OLEAUT32.dll_VARIANT_UserSize
lea rcx, [0x140114db0]
add rsp, 0x20
pop rbx
jmp fcn.140064950
add rsp, 0x20
pop rbx
ret
Function at 0x14009b440
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rcx + 0x1b4]
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
test al, al
je 0x14009b48b
mov r8d, 0x1ed
lea rdx, str.CRpcClientObject::OnPropertyValueChanged
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140064950
cmp dword [rcx + 0x64], 0
je 0x14009b4b2
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
mov r8d, 0x1ee
jmp 0x14009b469
mov qword [rsp + 0x30], rbp
mov eax, 1
mov qword [rsp + 0x38], r14
lock xadd dword [rcx + 0x60], eax
mov ecx, 0x8c
call fcn.1400ce83c
xor edx, edx
mov r8d, 0x8c
mov rcx, rax
mov rbp, rax
call fcn.1400d54b0
mov r8, rsi
mov edx, 0x3c
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
movups xmm0, xmmword [rdi]
movups xmmword [rbp + 0x78], xmm0
mov ecx, dword [rdi + 0x10]
mov dword [rbp + 0x88], ecx
lea rcx, [rbx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
movzx eax, byte [rbx + 0x1b4]
mov rdi, 0xffffffffffffffff
test al, al
jne 0x14009b603
cmp qword [rbx + 0xd0], 0
mov rsi, qword [rbx + 0xb8]
jne 0x14009b5bd
mov ecx, dword [rbx + 0xd8]
test rcx, rcx
je 0x14009b55e
xor edx, edx
mov rax, rdi
div rcx
cmp rax, 0x18
jb 0x14009b64f
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 0x14009b64f
mov rcx, qword [rbx + 0xc8]
mov qword [rax], rcx
mov qword [rbx + 0xc8], rax
mov r8d, dword [rbx + 0xd8]
lea ecx, [r8 - 1]
lea rdx, [rcx*2 + 1]
add rdx, rcx
sub r8d, 1
lea rdx, [rax + rdx*8]
js 0x14009b5bd
mov rax, qword [rbx + 0xd0]
mov qword [rdx], rax
mov qword [rbx + 0xd0], rdx
sub rdx, 0x18
sub r8d, 1
jns 0x14009b5a2
mov rcx, qword [rbx + 0xd0]
mov rax, qword [rcx]
mov qword [rcx + 0x10], rbp
mov qword [rbx + 0xd0], rax
mov qword [rcx + 8], rsi
mov qword [rcx], 0
inc qword [rbx + 0xc0]
mov rax, qword [rbx + 0xb8]
test rax, rax
je 0x14009b5f5
mov qword [rax], rcx
jmp 0x14009b5fc
mov qword [rbx + 0xb0], rcx
mov qword [rbx + 0xb8], rcx
lea rcx, [rbx + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
lock xadd dword [rbx + 0x60], edi
mov eax, dword [rbx + 0x60]
test eax, eax
jne 0x14009b635
cmp dword [rbx + 0x64], eax
je 0x14009b635
mov rcx, qword [rbx + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rbp, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x8007000e
call fcn.140005560
int3
Function at 0x14009b680
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rcx + 0x194]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
test al, al
je 0x14009b6cb
mov r8d, 0x20d
lea rdx, str.CRpcClientObject::OnRegKeyChanged
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140064950
cmp dword [rcx + 0x44], 0
je 0x14009b6f2
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
mov r8d, 0x20e
jmp 0x14009b6a9
mov qword [rsp + 0x38], rbx
mov eax, 1
lock xadd dword [rcx + 0x40], eax
mov ecx, 0x408
call fcn.1400ce83c
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0x408
mov rcx, rax
mov rbx, rax
call fcn.1400d54b0
lea rcx, [rbx + 8]
mov r8, rbp
mov edx, 0x100
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rbx + 0x208]
mov r8, rsi
mov edx, 0x100
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
movzx eax, byte [rdi + 0x194]
test al, al
jne 0x14009b770
lea rcx, [rdi + 0x120]
lea rdx, [rsp + 0x30]
call fcn.140007280
lea rcx, [rdi + 8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov eax, 0xffffffff
lock xadd dword [rdi + 0x40], eax
mov eax, dword [rdi + 0x40]
mov rbx, qword [rsp + 0x38]
test eax, eax
jne 0x14009b7ac
cmp dword [rdi + 0x44], eax
je 0x14009b7ac
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14009b7c0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rcx + 0x1ac]
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test al, al
je 0x14009b80b
mov r8d, 0x256
lea rdx, str.CRpcClientObject::OnDriverEvent
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.140064950
cmp dword [rcx + 0x5c], 0
je 0x14009b832
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
mov r8d, 0x257
jmp 0x14009b7e9
mov qword [rsp + 0x38], rbx
mov eax, 1
lock xadd dword [rcx + 0x58], eax
mov ecx, 0x204
call fcn.1400ce83c
xor edx, edx
mov qword [rsp + 0x30], rax
mov r8d, 0x204
mov rcx, rax
mov rbx, rax
call fcn.1400d54b0
mov r8, rbp
mov edx, 0x100
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rdi + 0x20]
mov dword [rbx + 0x200], esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
movzx eax, byte [rdi + 0x1ac]
test al, al
jne 0x14009b8a0
lea rcx, [rdi + 0xd8]
lea rdx, [rsp + 0x30]
call fcn.140007280
lea rcx, [rdi + 0x20]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x88]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov eax, 0xffffffff
lock xadd dword [rdi + 0x58], eax
mov eax, dword [rdi + 0x58]
mov rbx, qword [rsp + 0x38]
test eax, eax
jne 0x14009b8dc
cmp dword [rdi + 0x5c], eax
je 0x14009b8dc
mov rcx, qword [rdi + 0x50]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14009b930
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movzx eax, byte [rcx + 0x1b4]
mov esi, r9d
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
test al, al
je 0x14009b97a
mov r8d, 0x2a1
lea rdx, str.CRpcClientObject::OnServiceEvent
lea rcx, str._s__d_RETURN_ON_FALSE
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
jmp fcn.140064950
cmp dword [rcx + 0x64], 0
je 0x14009b9a1
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
mov r8d, 0x2a2
jmp 0x14009b95a
mov qword [rsp + 0x48], rbx
mov eax, 1
lock xadd dword [rcx + 0x60], eax
mov ecx, 0x208
call fcn.1400ce83c
xor edx, edx
mov qword [rsp + 0x40], rax
mov r8d, 0x208
mov rcx, rax
mov rbx, rax
call fcn.1400d54b0
mov r8, r14
mov edx, 0x100
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov dword [rbx + 0x200], ebp
lea rcx, [rdi + 0x28]
mov dword [rbx + 0x204], esi
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
movzx eax, byte [rdi + 0x1b4]
test al, al
jne 0x14009ba15
lea rcx, [rdi + 0x110]
lea rdx, [rsp + 0x40]
call fcn.140007280
lea rcx, [rdi + 0x28]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov eax, 0xffffffff
lock xadd dword [rdi + 0x60], eax
mov eax, dword [rdi + 0x60]
mov rbx, qword [rsp + 0x48]
test eax, eax
jne 0x14009ba51
cmp dword [rdi + 0x64], eax
je 0x14009ba51
mov rcx, qword [rdi + 0x58]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14009bb40
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x54], 0
mov rbx, rcx
je 0x14009bb86
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
mov r8d, 0x2d7
lea rdx, str.CRpcClientObject::OnTimer
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x30
pop rbx
jmp fcn.140064950
mov eax, 1
lock xadd dword [rcx + 0x50], eax
cmp qword [rcx + 0x198], 0
je 0x14009bc12
cmp edx, 0x3f3
jne 0x14009bc12
mov r9d, dword [rcx + 0x1a0]
test r9d, r9d
je 0x14009bbf9
lea rax, [rcx - 0x10]
mov r8d, 0x2e0
lea rcx, str._s__d_block_check_EventPostingType_d_CRpcClientObject_x
mov qword [rsp + 0x20], rax
lea rdx, str.CRpcClientObject::OnTimer
call fcn.140064950
cmp dword [rbx + 0x190], 0
je 0x14009bbef
mov ecx, 0xa
mov dword [rbx + 0x194], 1
call fcn.1400c2420
jmp 0x14009bbf9
mov dword [rbx + 0x190], 1
mov rax, qword [rbx - 8]
lea rcx, [rbx - 8]
mov r8d, 0x270f
lea rdx, [0x140114aa8]
call qword [rax]
jmp 0x14009bc45
cmp edx, 0x3f8
jne 0x14009bc45
call fcn.14000bb60
mov rcx, rax
mov edx, 0x3f8
call fcn.1400c3be0
lea rcx, [rbx - 0x10]
xor r9d, r9d
mov r8d, 0x20000005
lea rdx, [0x140114aa8]
call fcn.14009b930
mov eax, 0xffffffff
lock xadd dword [rbx + 0x50], eax
mov eax, dword [rbx + 0x50]
test eax, eax
jne 0x14009bc6b
cmp dword [rbx + 0x54], eax
je 0x14009bc6b
mov rcx, qword [rbx + 0x48]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
add rsp, 0x30
pop rbx
ret

Function at 0x14009bc80
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x4c], 0
mov rbx, rcx
je 0x14009bcc6
mov r8d, 0x2f
lea rdx, str.CDestructorHelper::AvoidDelete
lea rcx, str._s__d_RETURN_FALSE_ON_FALSE
call fcn.140064950
mov r8d, 0x2fc
lea rdx, str.CRpcClientObject::OnControlChanged
lea rcx, str._s__d_RETURN_ON_FALSE
add rsp, 0x20
pop rbx
jmp fcn.140064950
mov eax, 1
lock xadd dword [rcx + 0x48], eax
call fcn.14000bb60
mov rcx, rax
mov edx, 0x3f8
mov r8d, 0x64
call fcn.1400c39b0
mov eax, 0xffffffff
lock xadd dword [rbx + 0x48], eax
mov eax, dword [rbx + 0x48]
test eax, eax
jne 0x14009bd0e
cmp dword [rbx + 0x4c], eax
je 0x14009bd0e
mov rcx, qword [rbx + 0x40]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
add rsp, 0x20
pop rbx
ret
Function at 0x14009bec0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r15d, r8d
mov rbp, rdx
mov r13, rcx
mov ecx, BSTR_UserUnmarshal
call fcn.1400ce83c
mov r14, rax
lea rcx, [rax + 2]
xor edx, edx
mov r8d, BSTR_UserMarshal
call fcn.1400d54b0
xor ebx, ebx
mov word [r14], bx
test rbp, rbp
je 0x14009bf61
lea rcx, [r14 + 2]
mov edx, 0x7f
mov r8, rbp
sub r8, rcx
nop dword [rax + rax]
lea rax, [rdx + 0x7fffff7f]
test rax, rax
je 0x14009bf55
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14009bf55
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x14009bf30
jmp 0x14009bf5a
test rdx, rdx
jne 0x14009bf5e
sub rcx, 2
mov word [rcx], bx
mov dword [r14 + 0x104], r15d
mov esi, 0x63
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x38], ebx
lea r9d, [rsi - 0x62]
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400298b0
test eax, eax
je 0x14009bfd0
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.140064950
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14009c03b
jmp 0x14009c035
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
lea rdx, str.s0i3
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14009c02d
cmp dword [rsp + 0x40], 4
jne 0x14009c02d
mov esi, dword [rsp + 0x38]
test rdi, rdi
je 0x14009c026
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, 1
jmp 0x14009c03b
test rdi, rdi
je 0x14009c03b
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8d, 0x40
lea rdx, str.CMMEndpointNotify::OnDeviceStateChanged
lea rcx, str._s__d_s0i3_d__bSuccess_d
call fcn.140064950
mov r9d, r15d
mov r8, rbp
lea rdx, str.CMMEndpointNotify::OnDeviceStateChanged
lea rcx, str._s_Endpoint_s_NewState_d
call fcn.140064950
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8d, 0x4c
lea rdx, str.CMMEndpointNotify::OnDeviceStateChanged
lea rcx, str._s__d_PostEvent
call fcn.140064950
lea rcx, [r13 + 8]
mov rdx, r14
call fcn.14000dd50
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ce210
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009c0c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x14019b010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rdx
mov r15, rcx
mov ecx, BSTR_UserUnmarshal
call fcn.1400ce83c
mov r14, rax
lea rcx, [rax + 2]
xor edx, edx
mov r8d, BSTR_UserMarshal
call fcn.1400d54b0
mov r12d, 1
mov word [r14], r12w
xor ebx, ebx
test rbp, rbp
je 0x14009c162
lea rcx, [r14 + 2]
mov edx, 0x7f
mov r8, rbp
sub r8, rcx
lea rax, [rdx + 0x7fffff7f]
test rax, rax
je 0x14009c156
movzx eax, word [r8 + rcx]
test ax, ax
je 0x14009c156
mov word [rcx], ax
add rcx, 2
sub rdx, r12
jne 0x14009c132
jmp 0x14009c15b
test rdx, rdx
jne 0x14009c15f
sub rcx, 2
mov word [rcx], bx
mov esi, 0x63
xor eax, eax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x38], ebx
mov r9d, r12d
lea r8, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x48]
call fcn.1400298b0
test eax, eax
je 0x14009c1c9
lea r9, str.SOFTWARERealtekAudioRtkAudUServiceOthers
mov r8d, eax
lea rdx, str.CRegClient::GetRegUI4Property
lea rcx, str._s_nRet_d_szRegKey_s
call fcn.140064950
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14009c232
jmp 0x14009c22c
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
lea rdx, str.s0i3
mov rdi, qword [rsp + 0x48]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14009c224
cmp dword [rsp + 0x40], 4
jne 0x14009c224
mov esi, dword [rsp + 0x38]
test rdi, rdi
je 0x14009c21f
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov ebx, r12d
jmp 0x14009c232
test rdi, rdi
je 0x14009c232
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8d, 0x61
lea rdx, str.CMMEndpointNotify::OnDeviceAdded
lea rcx, str._s__d_s0i3_d__bSuccess_d
call fcn.140064950
mov r8, rbp
lea rdx, str.CMMEndpointNotify::OnDeviceAdded
lea rcx, str._s_Endpoint_s
call fcn.140064950
mov dword [rsp + 0x20], ebx
mov r9d, esi
mov r8d, 0x6d
lea rdx, str.CMMEndpointNotify::OnDeviceAdded
lea rcx, str._s__d_PostEvent
call fcn.140064950
lea rcx, [r15 + 8]
mov rdx, r14
call fcn.14000dd50
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400ce210
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret