Function at 0x7fff25d7277c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x248]
sub rsp, 0x348
mov rax, qword [0x7fff25fcfe70]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rsi, qword [rbp + 0x2b0]
lea rbx, [rbp - 0x60]
xor r13d, r13d
mov r14, r9
mov qword [rsp + 0x48], r13
mov r15, r8
mov edi, r13d
mov r12b, r13b
test rcx, rcx
jne 0x7fff25d7294c
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
test edi, edi
js 0x7fff25d72902
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x70]
mov qword [rsp + 0x78], r13
mov edx, 0x20019
mov dword [rbp - 0x78], 0x40
lea rcx, [rsp + 0x48]
movdqu xmmword [rbp - 0x70], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x7fff25d72902
mov rdx, r15
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
mov r15d, 1
mov dword [rsp + 0x20], 0x80
mov r8d, r15d
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x80000005
je 0x7fff25de7976
test edi, edi
js 0x7fff25d72902
mov eax, dword [rbx + 4]
test eax, eax
je 0x7fff25de79ec
cmp eax, 2
ja 0x7fff25d72990
mov eax, dword [rbx + 0xc]
cmp eax, 2
jb 0x7fff25de7a00
mov r9d, dword [rbx + 8]
and eax, 0xfffffffe
mov edx, eax
add rax, r9
mov dword [rbx + 0xc], edx
cmp word [rax + rbx - 2], r13w
jne 0x7fff25d728cb
add edx, 0xfffffffe
mov dword [rbx + 0xc], edx
mov eax, dword [rsi]
lea rcx, [rdx + 2]
mov r8d, edx
cmp rax, rcx
jb 0x7fff25d72986
test r14, r14
je 0x7fff25d72986
lea rdx, [r9 + rbx]
mov rcx, r14
call sub.ntdll.dll_memcpy
mov eax, dword [rbx + 0xc]
mov word [rax + r14], r13w
mov edx, dword [rbx + 0xc]
lea eax, [rdx + 2]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x7fff25d7291d
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov qword [rsp + 0x48], r13
test r12b, r12b
jne 0x7fff25de7a0a
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.7fff25dce640
add rsp, 0x348
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov qword [rsp + 0x30], r13
lea rax, [rbp + 0x20]
mov r8, rdx
mov dword [rsp + 0x28], 0x208
lea rdx, str.TargetNtPath
mov qword [rsp + 0x20], rax
xor r9d, r9d
call qword [sym.imp.ntdll.dll_RtlGetPersistedStateLocation]
nop dword [rax + rax]
mov edi, eax
lea rdx, [rbp + 0x20]
jmp 0x7fff25d727d1
mov edi, 0x80000005
jmp 0x7fff25d728fd
cmp eax, 4
ja 0x7fff25de79da
mov eax, dword [rbx + 0xc]
cmp dword [rsi], eax
jb 0x7fff25de79f6
mov edx, dword [rbx + 8]
mov r8d, eax
add rdx, rbx
mov rcx, r14
call sub.ntdll.dll_memcpy
mov eax, dword [rbx + 0xc]
jmp 0x7fff25d72900
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x7fff25d72902
mov ecx, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov rcx, qword [rsp + 0x48]
mov r8d, r15d
mov r12b, r15b
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov edi, eax
jmp 0x7fff25d7288a
cmp eax, 7
je 0x7fff25d728a2
cmp eax, 0xb
je 0x7fff25d72999
mov edi, 0xc00000e5
jmp 0x7fff25d72902
mov edi, 0x80000005
jmp 0x7fff25d72900
mov edi, 0xc0000034
jmp 0x7fff25d72902
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
nop
jmp 0x7fff25d72926