Function at 0x7ff74af075c
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xe0
mov rax, qword [0x7ff74b58340]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov rbp, rcx
mov rcx, qword [0x7ff74b58420]
mov r12, rdx
call fcn.7ff74ae3010
mov rcx, qword [0x7ff74b584c0]
xor r13d, r13d
or r15, 0xffffffffffffffff
xor edx, edx
cmp rcx, r13
je 0x7ff74af569b
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, r13d
cmp eax, r13d
sete cl
cmp ecx, r13d
jne 0x7ff74af5729
mov r11d, dword [0x7ff74b582e8]
cmp r11d, r13d
jne 0x7ff74b12851
mov dword [rbp], r13d
mov qword [r12], r13
mov rcx, qword [0x7ff74b58420]
lock add dword [rcx + 0x3c], r15d
mov dword [rcx + 0x40], r13d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.7ff74ae3090
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x7ff74b584c0], rax
jmp 0x7ff74af56b2
mov rcx, qword [0x7ff74b58210]
mov edx, 1
mov r9, rax
lea r8d, [rdx + 0xe]
mov dword [rsp + 0x20], 1
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegNotifyChangeKeyValue]
mov rcx, qword [0x7ff74b58210]
lea r11, [rsp + 0x70]
lea rdx, str.ChannelHook
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], r11
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
cmp eax, r13d
je 0x7ff74b126be
mov r8, qword [0x7ff74b584b8]
cmp r8, r13
jne 0x7ff74b1288c
mov qword [0x7ff74b584b8], r13
mov r11d, r13d
mov dword [0x7ff74b582e8], r13d
jmp 0x7ff74af07d1
mov rax, qword [0x7ff74b584c0]
jmp 0x7ff74af56b2
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x60], r13d
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryInfoKeyW]
movsxd r11, dword [rsp + 0x60]
cmp r11d, r13d
jne 0x7ff74b1273b
mov r8, qword [0x7ff74b584b8]
cmp r8, r13
je 0x7ff74b12728
mov rcx, qword [0x7ff74b584e0]
xor edx, edx
call qword [case.0x7ff74b3e5fd.0]
mov qword [0x7ff74b584b8], r13
mov dword [0x7ff74b582e8], r13d
jmp 0x7ff74b12840
cmp r11d, dword [0x7ff74b582e8]
jg 0x7ff74b12750
mov r8, qword [0x7ff74b584b8]
mov rbx, r8
jmp 0x7ff74b1277d
mov rcx, qword [0x7ff74b584e0]
mov eax, 0x10
mul r11
cmovo rax, r15
xor edx, edx
mov r8, rax
call qword [0x7ff74b58358]
mov r11d, dword [rsp + 0x60]
mov r8, qword [0x7ff74b584b8]
mov rbx, rax
cmp rbx, r13
je 0x7ff74b12840
mov esi, r13d
mov edi, r13d
cmp r11d, r13d
jbe 0x7ff74b1281a
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x38], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x80]
mov edx, edi
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x64], 0x27
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumValueW]
cmp eax, r13d
jne 0x7ff74b1280b
cmp dword [rsp + 0x64], 0x26
jne 0x7ff74b1280b
cmp dword [rsp + 0x68], 1
jne 0x7ff74b1280b
cmp word [rsp + 0x80], 0x7b
jne 0x7ff74b1280b
mov edx, esi
lea rcx, [rsp + 0x80]
shl rdx, 4
add rdx, rbx
call fcn.7ff74b31fe8
cmp eax, r13d
je 0x7ff74b1280b
inc esi
inc edi
cmp edi, dword [rsp + 0x60]
jb 0x7ff74b12795
mov r8, qword [0x7ff74b584b8]
cmp rbx, r8
je 0x7ff74b12833
cmp r8, r13
je 0x7ff74b12833
mov rcx, qword [0x7ff74b584e0]
xor edx, edx
call qword [case.0x7ff74b3e5fd.0]
mov qword [0x7ff74b584b8], rbx
mov dword [0x7ff74b582e8], esi
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
nop
jmp 0x7ff74af07ca
movsxd rcx, r11d
shl rcx, 4
call fcn.7ff74ae3720
mov qword [r12], rax
cmp rax, r13
je 0x7ff74b128a1
movsxd rax, dword [0x7ff74b582e8]
mov rdx, qword [0x7ff74b584b8]
mov dword [rbp], eax
mov rcx, qword [r12]
mov r8, rax
shl r8, 4
call sub.msvcrt.dll_memcpy
jmp 0x7ff74af07e2
mov rcx, qword [0x7ff74b584e0]
xor edx, edx
call qword [case.0x7ff74b3e5fd.0]
nop
jmp 0x7ff74af5713
mov dword [rbp], r13d
jmp 0x7ff74af07e2