Function at 0x7fff25e1d240
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
cmp dword [0x7fff25fd2de8], 0
mov rdi, rdx
mov r14d, ecx
je 0x7fff25e1d2c0
lea rdx, [0x7fff25fd30c0]
lea rcx, [rbp - 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
and qword [rbp - 0x60], 0
lea rax, [rbp - 0x78]
xorps xmm0, xmm0
mov qword [rbp - 0x58], rax
lea r8, [rbp - 0x68]
mov dword [rbp - 0x68], 0x30
mov edx, r14d
mov dword [rbp - 0x50], 0x240
mov rcx, rdi
movdqu xmmword [rbp - 0x48], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenKey]
nop dword [rax + rax]
mov ebx, eax
jmp 0x7fff25e1d532
and qword [rbp + 0x68], 0
lea rdx, str.RegistryMachineSystemCurrentControlSetControlCommonGlobUserSettings_
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
and qword [rbp - 0x30], 0
lea rax, [rsp + 0x58]
xorps xmm0, xmm0
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x38]
mov dword [rbp - 0x38], 0x30
mov edx, r14d
mov dword [rbp - 0x20], 0x240
lea rcx, [rbp + 0x68]
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x7fff25e1d51d
and dword [rbp + 0x60], 0
lea rdx, str.RedirectedKey
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x68]
lea rax, [rbp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x78]
lea ebx, [r9 + 2]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x60]
test ecx, ecx
je 0x7fff25e1d4ca
cmp eax, 0xc0000023
je 0x7fff25e1d388
cmp eax, 0x80000005
jne 0x7fff25e1d4ca
mov r8, rcx
mov edx, 8
mov rcx, qword gs:[0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x7fff25e1d4c3
mov ecx, dword [rbp + 0x60]
lea rax, [rbp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x78]
mov dword [rsp + 0x20], ecx
mov r9, rsi
mov rcx, qword [rbp + 0x68]
mov r8d, ebx
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x7fff25e1d4a3
cmp dword [rsi + 4], 1
jne 0x7fff25e1d497
lea rdx, [rsi + 0xc]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
and qword [rbp], 0
lea rax, [rsp + 0x38]
xorps xmm0, xmm0
mov qword [rbp + 8], rax
lea r8, [rbp - 8]
mov dword [rbp - 8], 0x30
mov edx, r14d
mov dword [rbp + 0x10], 0x240
lea rcx, [rsp + 0x30]
movdqu xmmword [rbp + 0x18], xmm0
call qword [sym.imp.ntdll.dll_ZwOpenKey]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x7fff25e1d4a3
mov eax, 0xaa
lea rdx, [0x7fff25fd30c0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x4a], ax
mov qword [rsp + 0x50], rdx
cmp ax, word [rsp + 0x38]
jb 0x7fff25e1d490
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
nop dword [rax + rax]
mov dword [0x7fff25fd2de8], 1
mov rax, qword [rsp + 0x30]
jmp 0x7fff25e1d4a0
mov rax, qword [rbp + 0x68]
and qword [rbp + 0x68], 0
mov qword [rdi], rax
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
jmp 0x7fff25e1d51d
mov ebx, 0xc0000017
jmp 0x7fff25e1d51d
mov eax, 0xaa
lea rdx, [0x7fff25fd30c0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x6a], ax
mov qword [rsp + 0x70], rdx
cmp ax, word [rsp + 0x58]
jb 0x7fff25e1d50f
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
nop dword [rax + rax]
mov dword [0x7fff25fd2de8], 1
mov rax, qword [rbp + 0x68]
and qword [rbp + 0x68], 0
xor ebx, ebx
mov qword [rdi], rax
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x7fff25e1d532
call qword [sym.imp.ntdll.dll_ZwClose]
nop dword [rax + rax]
lea r11, [rsp + 0x130]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret