Function at 0x7fff25d591d8
Capabilities:
Access peb ldr_data
Get kernel32 base address
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov dword [rcx + 0x628], r8d
xor eax, eax
mov rdi, rcx
mov dword [rcx + 0x4da], 0xffff
mov dword [rcx + 0x4e4], 0xffff
mov r14d, r8d
mov dword [rcx + 0x586], 0xffff
mov r15, rdx
mov rcx, qword gs:[0x60]
lea edx, [rax + 8]
mov r13d, 0x67c
mov qword [rbp - 0x20], rax
mov r8d, r13d
mov ebx, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor r10d, r10d
lea r12, [0x7fff25eb2940]
mov rsi, rax
test r14d, r14d
jne 0x7fff25d594aa
mov eax, r14d
mov qword [rbp - 0x10], r10
neg eax
lea rdx, [0x7fff25eb2948]
mov ecx, r10d
lea r14, [rbx + 8]
sbb rax, rax
mov dword [rbp - 0x30], ecx
and eax, 0x1f
sub r12, rbx
inc rax
mov qword [rbp - 0x18], r12
sub rdx, rbx
mov qword [rbp - 8], rax
mov qword [rbp - 0x28], rdx
mov r8, r10
mov r13, qword [r14 + r12]
test rbx, rbx
jne 0x7fff25d59353
cmp r8, rax
jl 0x7fff25d59445
mov ecx, dword [rbp + 0x40]
mov eax, 0xc0000001
mov r8, qword [rbp - 0x20]
mov r9d, dword [rbp + 0x58]
test eax, eax
jns 0x7fff25d59375
mov eax, 0xffff
mov word [rdi + r13], ax
cmp qword [rdx + r14], r10
jbe 0x7fff25d592e1
mov word [rdi + r13 + 2], r10w
mov ecx, dword [rbp - 0x30]
add r14, 0x18
mov r8, qword [rbp - 0x10]
inc ecx
mov rax, qword [rbp - 8]
inc r8
mov dword [rbp - 0x30], ecx
mov qword [rbp - 0x10], r8
cmp ecx, 0x20
jb 0x7fff25d5929d
test rbx, rbx
jne 0x7fff25d59552
test rsi, rsi
je 0x7fff25d59330
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]
xor r10d, r10d
cmp dword [rbp + 0x50], r10d
jne 0x7fff25d59578
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp ecx, 0x1e
jge 0x7fff25d592aa
mov r8d, dword [r14 + 4]
mov ecx, dword [r14]
add r8, rsi
mov dword [rbp + 0x40], ecx
mov r9d, dword [r14 + 8]
mov qword [rbp - 0x20], r8
mov dword [rbp + 0x58], r9d
cmp r9d, 1
jne 0x7fff25d592cb
test r8, r8
je 0x7fff25d592cb
test ecx, ecx
je 0x7fff25d592cb
test r9b, cl
jne 0x7fff25d592cb
mov eax, ecx
cmp word [rax + r8 - 2], r10w
jne 0x7fff25d592cb
mov rdx, qword [rdx + r14]
shr ecx, 1
dec ecx
mov dword [rbp + 0x40], ecx
test rdx, rdx
je 0x7fff25d593f3
mov r9d, ecx
lea r12, [rdi + r13]
lea rcx, [r12 + 2]
dec rdx
call qword [sym.imp.ntdll.dll_wcsncpy_s]
nop dword [rax + rax]
mov rdx, qword [rbp - 0x28]
xor r10d, r10d
test eax, eax
jne 0x7fff25ddfcb3
movzx eax, word [rbp + 0x40]
mov r12, qword [rbp - 0x18]
mov word [rdi + r13], ax
jmp 0x7fff25d592e1
lea eax, [rcx - 1]
movzx edx, r10w
cmp eax, 2
ja 0x7fff25ddfcc3
movzx eax, word [r8]
sub ax, 0x30
cmp ax, 9
ja 0x7fff25ddfcc3
movzx eax, dx
dec ecx
shl ax, 2
add dx, ax
add dx, dx
sub dx, 0x30
add dx, word [r8]
add r8, 2
mov dword [rbp + 0x40], ecx
test ecx, ecx
jne 0x7fff25d59403
mov word [rdi + r13], dx
mov rdx, qword [rbp - 0x28]
jmp 0x7fff25d592e1
test r15, r15
je 0x7fff25d592b3
test rsi, rsi
je 0x7fff25d592b3
mov rdx, qword [r12 + r14 - 8]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
mov r9, rsi
mov r8d, 2
mov dword [rsp + 0x20], 0xb6
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov ecx, dword [rbp + 0x40]
lea r8, [rsi + 0xc]
mov rdx, qword [rbp - 0x28]
add ecx, 0xfffffff4
mov dword [rbp + 0x40], ecx
xor r10d, r10d
mov r9d, dword [rsi + 4]
mov dword [rbp + 0x58], r9d
mov qword [rbp - 0x20], r8
jmp 0x7fff25d592c3
test r15, r15
je 0x7fff25d59265
test rsi, rsi
je 0x7fff25d59265
mov rcx, qword gs:[0x60]
mov r8, r13
mov edx, 8
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
xor r10d, r10d
mov rbx, rax
test rax, rax
je 0x7fff25d59265
mov r8, r12
lea r11d, [r10 + 0x1e]
sub r8, rax
mov r9d, r11d
mov rdx, rax
mov rcx, qword [r8 + rdx]
mov qword [rdx], rcx
lea rdx, [rdx + 0x18]
sub r9, 1
jne 0x7fff25d594fc
lea rax, [rbp + 0x40]
mov dword [rbp - 0x2c], 0x3ac
mov qword [rsp + 0x28], rax
mov r9, rsi
lea rax, [rbp - 0x2c]
mov dword [rbp + 0x40], r10d
mov r8d, r11d
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryMultipleValueKey]
nop dword [rax + rax]
xor r10d, r10d
test eax, eax
jns 0x7fff25d59265
jmp 0x7fff25ddfc8a
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]
xor r10d, r10d
jmp 0x7fff25d5930a
test r15, r15
je 0x7fff25d5933a
mov rdx, r15
mov rcx, rdi
call fcn.7fff25db8378
jmp 0x7fff25d5933a
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]
xor r10d, r10d
mov ebx, r10d
jmp 0x7fff25d59265
mov eax, 0xffff
mov word [r12 + 2], r10w
jmp 0x7fff25d593e5
mov edx, 0xffff
jmp 0x7fff25d59437