Function at 0x1400d2a00
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x4a0]
sub rsp, 0x5a0
mov rsi, rdx
mov dword [rbp - 0x58], 0x140012
mov r13, rcx
lea rax, [0x140158b30]
xor edx, edx
mov qword [rbp - 0x50], rax
xor ecx, ecx
lea r9, [rsp + 0x60]
lea r8, [rbp - 0x58]
call qword [sym.imp.ntdll.dll_LdrGetDllHandle]
test eax, eax
js 0x1400d2edd
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400d2edd
lea rax, str.RtlGetFunctionTableListHead
mov dword [rbp - 0x48], 0x1c001b
lea r9, [rsp + 0x68]
mov qword [rbp - 0x40], rax
xor r8d, r8d
lea rdx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov rcx, qword [rsp + 0x68]
xor edi, edi
test eax, eax
cmovs rcx, rdi
test rcx, rcx
je 0x1400d2edd
call rcx
lea r9d, [rdi + 0x10]
mov qword [rsp + 0x20], rdi
lea r8, [rbp - 0x10]
mov rdx, rax
mov rcx, r13
mov r12, rax
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400d2ee2
mov r15, qword [rbp - 0x10]
mov r14d, edi
cmp r15, r12
je 0x1400d2b19
cmp r14d, 0x800
jae 0x1400d2b19
mov r9d, 0x70
mov qword [rsp + 0x20], rdi
lea r8, [rbp]
mov rdx, r15
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400d2ee2
cmp rsi, qword [rbp + 0x20]
jb 0x1400d2b0d
cmp rsi, qword [rbp + 0x28]
jb 0x1400d2b23
mov r15, qword [rbp]
inc r14d
cmp r15, r12
jne 0x1400d2ad3
mov ebx, 0xc0000225
jmp 0x1400d2ee2
mov rbx, qword [rbp + 0x48]
test rbx, rbx
je 0x1400d2bc6
mov edx, 0xff
lea rcx, [rbp + 0xa0]
mov r8d, 0x400
call fcn.14010ed90
lea rax, [rbp - 0x18]
mov r9d, 0x400
lea r8, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ecx, 0x80000000
mov ebx, eax
add eax, ecx
test ecx, eax
jne 0x1400d2b82
cmp ebx, 0x8000000d
jne 0x1400d2ee2
mov ecx, edi
mov eax, ecx
cmp word [rbp + rax*2 + 0xa0], di
je 0x1400d2ba4
inc ecx
cmp ecx, 0x200
jb 0x1400d2b84
mov ebx, 0x80000005
jmp 0x1400d2ee2
lea rax, [rbp + 0xa0]
add cx, cx
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0xa0]
mov word [rsp + 0x38], cx
mov word [rsp + 0x3a], cx
jmp 0x1400d2bd9
mov word [rbp + 0xa0], di
mov rax, rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov r12d, dword [rbp + 0x50]
cmp r12d, 2
jne 0x1400d2dc0
test rax, rax
jne 0x1400d2bf6
mov ebx, 0xc000000d
jmp 0x1400d2ee2
mov rcx, qword [0x14018dcd8]
mov word [rbp - 0x38], cx
lea eax, [rcx + 2]
mov word [rbp - 0x36], ax
mov rax, qword [str.SoftwareMicrosoftWindows_NTCurrentVersionKnownFunctionTableDlls]
mov qword [rbp - 0x30], rax
cmp rcx, 0xfffe
jbe 0x1400d2c27
mov r14d, 0xc0000106
jmp 0x1400d2d31
xor r8d, r8d
lea rax, [rsp + 0x70]
lea r9, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x38]
lea rcx, [r8 - 3]
call fcn.1400da6c0
mov r14d, eax
test eax, eax
js 0x1400d2c73
lea r8, [rbp + 0x70]
mov edx, 0x20019
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov rcx, qword [rsp + 0x70]
mov r14d, eax
test rcx, rcx
je 0x1400d2c73
call qword [sym.imp.ntdll.dll_NtClose]
test r14d, r14d
js 0x1400d2d31
mov rcx, qword [rsp + 0x48]
lea rax, [rbp + 0x4f8]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x20], edi
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
cmp ebx, 0xc0000034
jne 0x1400d2cc2
mov ebx, 0xc0000361
jmp 0x1400d2ee2
lea r9, [rsp + 0x50]
xor edx, edx
lea r8, [rsp + 0x38]
xor ecx, ecx
call qword [sym.imp.ntdll.dll_LdrLoadDll]
mov r14d, eax
test eax, eax
js 0x1400d2d31
mov rcx, qword [rsp + 0x50]
lea rax, str.OutOfProcessFunctionTableCallback
lea r9, [rsp + 0x78]
mov qword [rbp - 0x20], rax
xor r8d, r8d
mov dword [rbp - 0x28], 0x220021
lea rdx, [rbp - 0x28]
call qword [sym.imp.ntdll.dll_LdrGetProcedureAddress]
mov r14d, eax
test eax, eax
js 0x1400d2d26
lea r9, [rsp + 0x30]
mov rdx, r15
lea r8, [rbp + 0x4f0]
mov rcx, r13
call qword [rsp + 0x78]
mov r14d, eax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_LdrUnloadDll]
mov ebx, r14d
test r14d, r14d
js 0x1400d2ee2
sub rsi, qword [rbp + 0x30]
mov r8d, dword [rbp + 0x4f0]
test r8d, r8d
je 0x1400d2d78
mov rdx, qword [rsp + 0x30]
mov eax, edi
lea rcx, [rax + rax*2]
lea rcx, [rcx*4]
mov eax, dword [rcx + rdx]
cmp rsi, rax
jb 0x1400d2d71
mov eax, dword [rcx + rdx + 4]
cmp rsi, rax
jb 0x1400d2da0
inc edi
cmp edi, r8d
jb 0x1400d2d52
mov ebx, 0xc0000225
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rsp + 0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1400d2ee2
lea rax, [rcx + rdx]
test rax, rax
je 0x1400d2d78
movsd xmm0, qword [rax]
movsd qword [0x140196270], xmm0
mov eax, dword [rax + 8]
mov dword [0x140196278], eax
jmp 0x1400d2d7d
mov r15d, dword [rbp + 0x54]
cmp r15d, 0x100000
ja 0x1400d2b9a
lea rbx, [r15 + r15*2]
mov dword [rsp + 0x28], 4
shl rbx, 2
lea r9, [rbp - 0x80]
xor r8d, r8d
mov qword [rbp - 0x80], rbx
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x58], rdi
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x1400d2ed6
mov r14, qword [rsp + 0x58]
test r14, r14
je 0x1400d2ed6
mov rdx, qword [rbp + 0x10]
mov r9, rbx
mov r8, r14
mov qword [rsp + 0x20], rdi
mov rcx, r13
call qword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov ebx, eax
test eax, eax
js 0x1400d2e4a
mov qword [rsp + 0x30], r14
mov dword [rbp + 0x4f0], r15d
jmp 0x1400d2e76
mov r9d, 0x8000
mov qword [rbp - 0x70], r14
lea r8, [rbp - 0x78]
mov qword [rbp - 0x78], rdi
lea rdx, [rbp - 0x70]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
mov r15d, dword [rbp + 0x4f0]
mov r14, qword [rsp + 0x30]
test ebx, ebx
js 0x1400d2ee2
sub rsi, qword [rbp + 0x30]
mov edx, r15d
test r12d, r12d
mov r9, rsi
mov rcx, r14
sete r8b
call fcn.1400d2960
test rax, rax
je 0x1400d2eaf
movsd xmm0, qword [rax]
movsd qword [0x140196270], xmm0
mov eax, dword [rax + 8]
mov dword [0x140196278], eax
jmp 0x1400d2eb4
mov ebx, 0xc0000225
mov r9d, 0x8000
mov qword [rbp - 0x60], r14
lea r8, [rbp - 0x68]
mov qword [rbp - 0x68], rdi
lea rdx, [rbp - 0x60]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
jmp 0x1400d2ee2
mov ebx, 0xc0000017
jmp 0x1400d2ee2
mov ebx, 0xc000007a
mov eax, ebx
mov rbx, qword [rsp + 0x5e0]
add rsp, 0x5a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret