Function at 0x7fff25d6d6a0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x2c8]
sub rsp, 0x3c8
mov rax, qword [0x7fff25fcfe70]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rax, qword [rbp + 0x330]
mov r13, rcx
mov qword [rsp + 0x40], rax
mov esi, r9d
mov rax, qword [rbp + 0x338]
mov r10, rdx
mov qword [rsp + 0x48], rax
mov edi, 0xc0000034
mov rax, qword [rcx + 0x10]
mov ecx, 0x16a
mov qword [rbp - 0x48], r8
mov qword [rbp - 0x60], rdx
movzx ebx, word [rax]
mov eax, 0x208
add bx, cx
cmp bx, ax
jbe 0x7fff25d6da94
mov rcx, qword gs:[0x60]
xor edx, edx
movzx r8d, bx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r15, rax
test rax, rax
je 0x7fff25de61c2
mov r10, qword [rbp - 0x60]
mov word [rbp - 0x7e], bx
mov ebx, esi
and ebx, 0x300
mov qword [rsp + 0x3c0], r12
and esi, 0xfffffcff
mov qword [rsp + 0x3b8], r14
cmp dword [0x7fff25fd2c54], 0
mov qword [rbp - 0x78], r15
je 0x7fff25d6d7a6
test ebx, ebx
jne 0x7fff25d6d7a6
lea rax, [rbp - 0x38]
mov rcx, r10
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x70]
lea edx, [rbx + 7]
call qword [sym.imp.ntdll.dll_NtQueryKey]
nop dword [rax + rax]
test eax, eax
js 0x7fff25d6d7a6
mov ebx, dword [rbp - 0x70]
and ebx, 0x300
mov r12d, dword [rbp + 0x320]
or esi, ebx
mov r14d, dword [rbp + 0x328]
xor ebx, ebx
test r12b, 2
je 0x7fff25d6d944
test byte [r13], 1
jne 0x7fff25d6db55
movzx ecx, word [r13 + 4]
lea r10d, [rbx + 1]
mov rdx, qword [r13 + 0x10]
cmp word [rdx + rcx*2 + 4], bx
je 0x7fff25de61d9
mov r8d, r10d
mov r9d, r10d
mov rax, rcx
sub rax, r9
add rax, 2
test r8d, r8d
lea rax, [rdx + rax*2]
mov qword [rbp - 0x18], rax
movzx eax, bx
cmovne ax, r10w
sub ax, cx
lea rcx, [rbp - 0x30]
add ax, ax
add ax, word [rdx]
mov word [rbp - 0x20], ax
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x7fff25d6d868
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
nop dword [rax + rax]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
nop dword [rax + rax]
lea rdx, str._Classes
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
nop dword [rax + rax]
mov edi, eax
test edi, edi
js 0x7fff25d6d957
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x7fff25d6d957
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rbx
test r14b, 8
jne 0x7fff25de61e4
mov dword [rsp + 0x68], 0x40
lea rax, [rbp - 0x80]
mov rbx, qword [rsp + 0x48]
xorps xmm2, xmm2
mov qword [rsp + 0x60], rax
movdqu xmmword [rsp + 0x70], xmm2
test rbx, rbx
jne 0x7fff25de61f1
movups xmm0, xmmword [rsp + 0x50]
lea rax, [rbp - 0x50]
mov ecx, esi
movups xmm1, xmmword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x70]
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x10]
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm2
call fcn.7fff25d6fcd0
mov edi, eax
test eax, eax
js 0x7fff25d6d949
mov r9d, r14d
lea r8, [rbp + 0x10]
and r9d, 0x1c
lea rcx, [rbp - 0x68]
mov edx, esi
call qword [sym.imp.ntdll.dll_NtOpenKeyEx]
nop dword [rax + rax]
cmp qword [rbp - 0x50], 0
mov ebx, eax
jne 0x7fff25d6db99
test ebx, ebx
jns 0x7fff25d6dbbd
mov edi, ebx
mov rbx, qword [rsp + 0x48]
test r12b, 1
jne 0x7fff25d6d9b3
test edi, edi
jns 0x7fff25d6da86
mov r14, qword [rsp + 0x3b8]
lea rax, [rbp + 0x90]
mov r12, qword [rsp + 0x3c0]
cmp r15, rax
je 0x7fff25d6d991
mov rcx, qword gs:[0x60]
mov r8, r15
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.7fff25dce640
add rsp, 0x3c8
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
test edi, edi
jns 0x7fff25d6da86
test byte [r13], 2
je 0x7fff25d6daa0
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0x30
test r14b, 8
jne 0x7fff25de622b
mov dword [rsp + 0x68], 0x40
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x60], rax
xorps xmm2, xmm2
movdqu xmmword [rsp + 0x70], xmm2
test rbx, rbx
jne 0x7fff25de6245
movups xmm0, xmmword [rsp + 0x50]
lea rax, [rbp - 0x40]
mov ecx, esi
movups xmm1, xmmword [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x80]
lea rax, [rsp + 0x31]
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x40]
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm1
movups xmmword [rbp + 0x60], xmm2
call fcn.7fff25d6fcd0
mov edi, eax
test eax, eax
js 0x7fff25d6da7e
and r14d, 0x1c
lea r8, [rbp + 0x40]
mov r9d, r14d
lea rcx, [rbp - 0x58]
mov edx, esi
call qword [sym.imp.ntdll.dll_NtOpenKeyEx]
nop dword [rax + rax]
cmp qword [rbp - 0x40], 0
mov ebx, eax
jne 0x7fff25d6dbd5
test ebx, ebx
jns 0x7fff25d6db81
mov edi, ebx
test edi, edi
js 0x7fff25d6d957
mov rax, qword [rsp + 0x40]
or qword [rax], 2
jmp 0x7fff25d6d957
lea r15, [rbp + 0x90]
jmp 0x7fff25d6d743
lea rdx, str.RegistryMachineSoftwareClasses
lea rcx, [rbp]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
nop dword [rax + rax]
movzx r8d, word [r13 + 4]
xor ecx, ecx
mov r9, qword [r13 + 0x10]
mov eax, r8d
movzx edx, word [r9 + r8*2 + 4]
test dx, dx
setne cl
sub rax, rcx
lea rcx, [rbp - 0x80]
add rax, 2
lea rax, [r9 + rax*2]
mov qword [rbp - 8], rax
xor eax, eax
test dx, dx
lea rdx, [rbp]
setne al
sub ax, r8w
add ax, ax
add ax, word [r9]
mov word [rbp - 0x10], ax
call qword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
nop dword [rax + rax]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x7fff25d6d957
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], 0
test r14b, 8
jne 0x7fff25de6238
mov dword [rsp + 0x68], 0x40
lea rax, [rbp - 0x80]
jmp 0x7fff25d6d9ed
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0x30
test r14b, 8
jne 0x7fff25de61cc
mov dword [rsp + 0x68], 0x40
mov rax, qword [rbp - 0x48]
jmp 0x7fff25d6d8b1
cmp byte [rsp + 0x31], 0
jne 0x7fff25d6dbf9
mov rcx, qword [rsp + 0x40]
mov rax, qword [rbp - 0x58]
mov qword [rcx], rax
jmp 0x7fff25d6da7c
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x50]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x7fff25d6d93a
cmp byte [rsp + 0x30], 0
jne 0x7fff25d6dc38
mov rcx, qword [rsp + 0x40]
mov rax, qword [rbp - 0x68]
mov qword [rcx], rax
jmp 0x7fff25d6d942
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x40]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x7fff25d6da74
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x7fff25d6db88
mov rcx, qword [rbp - 0x58]
lea r8, [rsp + 0x38]
mov r9d, 4
and eax, 0xf01
mov dword [rsp + 0x38], eax
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_NtSetInformationKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x7fff25d6db88
jmp 0x7fff25de6269
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x7fff25d6dbc4
mov rcx, qword [rbp - 0x68]
lea r8, [rsp + 0x34]
mov r9d, 4
and eax, 0xf01
mov dword [rsp + 0x34], eax
lea edx, [r9 + 1]
call qword [sym.imp.ntdll.dll_NtSetInformationKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x7fff25d6dbc4
jmp 0x7fff25de6215
mov eax, 0xc0000017
jmp 0x7fff25d6d993
mov dword [rsp + 0x68], 0x140
jmp 0x7fff25d6db78
mov r8d, ebx
mov r9, rbx
jmp 0x7fff25d6d7eb
mov dword [rsp + 0x68], 0x140
jmp 0x7fff25d6d8ad
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
mov r9d, r14d
mov qword [rsp + 0x20], rbx
and r9d, 0x1c
mov edx, esi
call fcn.7fff25d72648
mov edi, eax
jmp 0x7fff25d6d949
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
jmp 0x7fff25d6d944
mov dword [rsp + 0x68], 0x140
jmp 0x7fff25d6d9e9
mov dword [rsp + 0x68], 0x140
jmp 0x7fff25d6db4c
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
and r14d, 0x1c
mov qword [rsp + 0x20], rbx
mov r9d, r14d
mov edx, esi
call fcn.7fff25d72648
mov edi, eax
jmp 0x7fff25d6da7e
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
nop
jmp 0x7fff25d6da7e