Function at 0x38728
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x2f0
mov rax, qword [0x000a7100]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
and qword [rsp + 0x38], 0
lea rdx, [0x00096140]
lea rcx, [rsp + 0x70]
xor esi, esi
mov r14, r8
xor edi, edi
and dword [rsp + 0x30], esi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x00096140]
lea rcx, [0x000962e0]
call fcn.00045138
and qword [rsp + 0x48], rsi
and qword [rsp + 0x60], rsi
and qword [rsp + 0x68], rsi
lea rax, [rsp + 0x70]
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x38]
mov edx, 0x20019
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], 0x30
mov dword [rsp + 0x58], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov r13d, 0xc0000000
mov ebx, eax
mov r12d, 0x6c616e41
and eax, r13d
cmp eax, r13d
jne 0x387f0
lea rcx, [0x00096360]
mov edx, ebx
call fcn.00045138
jmp 0x38a68
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
lea rax, [rsp + 0x30]
lea ebp, [r9 + 2]
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
test eax, eax
js 0x38828
lea rcx, [0x000963b0]
call fcn.00045138
jmp 0x38a68
cmp eax, 0x80000005
je 0x38836
cmp eax, 0xc0000023
jne 0x38852
mov edx, dword [rsp + 0x30]
mov r8d, r12d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rsi, rax
test rax, rax
jne 0x3885b
mov ebx, 0xc0000017
lea rcx, [0x000963e0]
jmp 0x3881e
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.00091d10
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
lea r11, [rsp + 0x30]
mov r8, rsi
mov edx, ebp
mov qword [rsp + 0x20], r11
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
and eax, r13d
cmp eax, r13d
jne 0x3889f
lea rcx, [0x00096410]
jmp 0x387e4
xor ebp, ebp
cmp dword [rsi + 0x14], edi
jbe 0x38a68
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor r8d, r8d
mov edx, ebp
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
test eax, eax
js 0x388e5
mov edx, eax
lea rcx, [0x00096550]
call fcn.00045138
jmp 0x38a51
cmp eax, 0x80000005
je 0x388f3
cmp eax, 0xc0000023
jne 0x3892a
mov edx, dword [rsp + 0x30]
mov r8d, r12d
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
jne 0x3891b
lea rcx, [0x000965a0]
call fcn.00045138
jmp 0x38a51
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.00091d10
test rdi, rdi
je 0x3890a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9, rdi
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x30]
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
and eax, r13d
cmp eax, r13d
jne 0x38965
mov edx, ebx
jmp 0x388d4
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x258
call fcn.00091d10
mov r8d, dword [rdi + 0xc]
lea rdx, [rdi + 0x10]
lea rcx, [rsp + 0x80]
call fcn.00091720
lea rdx, [rsp + 0x80]
lea rcx, [0x00096650]
call fcn.00045138
cmp dword [rdi + 0xc], 0
je 0x38a39
mov edx, dword [rdi + 0xc]
mov r8d, r12d
xor ecx, ecx
lea rdx, [rdx + rdx + 0x2a]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r12, rax
test rax, rax
je 0x38a5d
mov r8d, dword [rdi + 0xc]
xor edx, edx
mov rcx, rax
lea r8, [r8 + r8 + 0x2a]
call fcn.00091d10
and dword [r12 + 0x10], 0
mov qword [r12 + 8], r12
mov qword [r12], r12
mov dword [r12 + 0x14], 0x6c616e41
mov ecx, dword [rdi + 0xc]
mov dword [r12 + 0x1c], ecx
lea rcx, [r12 + 0x28]
mov dword [r12 + 0x18], 1
mov qword [r12 + 0x20], rcx
mov r8d, dword [rdi + 0xc]
lea rdx, [rdi + 0x10]
call fcn.00091720
mov rax, qword [r14 + 8]
mov qword [r12], r14
mov qword [r12 + 8], rax
mov qword [rax], r12
mov qword [r14 + 8], r12
mov r12d, 0x6c616e41
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor edi, edi
mov r13d, 0xc0000000
and dword [rsp + 0x30], edi
inc ebp
cmp ebp, dword [rsi + 0x14]
jae 0x38a68
jmp 0x388aa
mov ebx, 0xc0000004
mov r12d, 0x6c616e41
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x38a7e
call qword [sym.imp.ntoskrnl.exe_ZwClose]
and qword [rsp + 0x38], 0
test rsi, rsi
je 0x38a8f
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rdi, rdi
je 0x38aa0
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.000916b0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret