Function at 0x140026d10
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x140073058]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rsi, rdx
mov rbx, rcx
call fcn.140026ac0
test al, al
je 0x140026d4a
mov al, 1
jmp 0x140026f12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x2b0], rdi
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rsp + 0x2b8], r14
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionCapabilityAccessManagerConsentStorewebcam_
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140026f00
xor r9d, r9d
lea edx, [rax + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rsp + 0x40]
mov rdi, rax
test rax, rax
je 0x140026efa
mov rax, qword [rbx + 0x38]
xor edx, edx
mov r9, rdi
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x20], 1
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
jne 0x140026eec
xor r14d, r14d
nop dword [rax + rax]
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov r9d, 0xffffffff
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140026f69
cmp eax, 1
jne 0x140026f00
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResetEvent]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
mov ebx, r14d
call fcn.14002d0c0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x140026ec8
lea rdx, [0x1400762a0]
lea rcx, [rsp + 0x60]
call fcn.140004a20
test al, al
jne 0x140026f2c
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x208
inc ebx
call fcn.14002d0c0
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], r14
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r14
mov edx, ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x140026e61
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov r9, rdi
mov dword [rsp + 0x20], 1
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
test eax, eax
je 0x140026de0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rdi, qword [rsp + 0x2b0]
mov r14, qword [rsp + 0x2b8]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.14002a740
add rsp, 0x280
pop rsi
pop rbx
pop rbp
ret
lea rax, [rsp + 0x60]
mov edx, 0x4b0
lea r9, str.SOFTWAREMicrosoftWindowsCurrentVersionCapabilityAccessManagerConsentStorewebcam_
mov qword [rsp + 0x20], rax
lea r8, str._s_s
mov rcx, rsi
call fcn.1400126d0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140026f02
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140026f00