Function at 0x140015770
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x4e8
mov rax, qword [0x14001d2d0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x58], 0
lea rax, [rsp + 0xc0]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x44], 0
mov byte [rsp + 0x40], 1
mov rax, qword [rsp + 0x508]
cmp dword [rax + 8], 0
jge 0x1400157ed
mov rax, qword [rsp + 0x508]
mov eax, dword [rax + 8]
jmp 0x140015bab
mov rax, qword [rsp + 0x500]
add rax, 0x3098
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rcx, qword [rsp + 0x508]
mov rdx, qword [rcx]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_CmCallbackGetKeyObjectIDEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x140015833
mov eax, dword [rsp + 0x44]
jmp 0x140015bab
lea rax, [rsp + 0xa0]
mov rdi, rax
mov rsi, qword [rsp + 0x50]
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov r8d, 2
lea rdx, [rsp + 0xa0]
mov rcx, qword [rsp + 0x500]
call fcn.140014800
movzx eax, al
test eax, eax
jne 0x14001587e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
xor eax, eax
jmp 0x140015bab
lea rdx, [0x14001a190]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x508]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x70]
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x10]
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x500]
call fcn.140015170
movzx eax, al
test eax, eax
jne 0x1400158dd
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
xor eax, eax
jmp 0x140015bab
movzx eax, word [rsp + 0x72]
xor edx, edx
mov ecx, 2
div rcx
xor ecx, ecx
mov rdx, qword [rsp + 0x78]
mov word [rdx + rax*2], cx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x6864694e
mov byte [rsp + 0x28], 0
mov rax, qword [sym.imp.ntoskrnl.exe_CmKeyObjectType]
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov edx, 0x200
mov rax, qword [rsp + 0x508]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointerWithTag]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x14001595c
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
xor eax, eax
jmp 0x140015bab
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 0x18]
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0xb0]
call fcn.140004ab0
cmp qword [rsp + 0x60], 0
je 0x140015b62
mov dword [rsp + 0xc4], 2
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
xor edx, edx
mov ecx, 2
div rcx
mov r8, rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0xc8]
call fcn.14000b490
movzx eax, byte [rsp + 0x40]
test eax, eax
je 0x140015b60
mov rax, qword [rsp + 0x48]
mov eax, dword [rax + 8]
add eax, dword [rsp + 0x5c]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx + 0x18]
mov dword [rsp + 0x20], ecx
mov r9, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
mov r8d, dword [rcx + 0xc]
mov edx, eax
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jge 0x140015a1a
mov byte [rsp + 0x40], 0
jmp 0x1400159bb
lea r9, [rsp + 0x70]
mov r8, qword [rsp + 0x60]
mov rax, qword [rsp + 0x48]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x500]
call fcn.140015170
movzx eax, al
test eax, eax
jne 0x140015a4a
mov byte [rsp + 0x40], 0
jmp 0x1400159bb
movzx eax, word [rsp + 0x72]
xor edx, edx
mov ecx, 2
div rcx
xor ecx, ecx
mov rdx, qword [rsp + 0x78]
mov word [rdx + rax*2], cx
lea rdx, [0x14001a1a0]
lea rcx, [rsp + 0xc8]
call fcn.140013730
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xc8]
call fcn.140013730
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x500]
call fcn.140014c40
movzx eax, al
test eax, eax
jne 0x140015b13
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x20]
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
mov rdi, qword [rcx + 0x10]
mov rsi, qword [rsp + 0x60]
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
jmp 0x140015b0c
mov byte [rsp + 0x40], 0
jmp 0x140015b1d
mov eax, dword [rsp + 0x5c]
inc eax
mov dword [rsp + 0x5c], eax
mov eax, 2
imul rax, rax, 0
xor ecx, ecx
mov word [rsp + rax + 0xc8], cx
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
xor edx, edx
mov ecx, 2
div rcx
mov r8, rax
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 8]
lea rcx, [rsp + 0xc8]
call fcn.14000b490
jmp 0x1400159bb
jmp 0x140015b6a
mov dword [rsp + 0x44], 0
mov rax, qword [rsp + 0x508]
mov ecx, dword [rsp + 0x44]
mov dword [rax + 0x18], ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_CmCallbackReleaseKeyObjectIDEx]
mov dword [rsp + 0x6c], 0
lea rcx, [rsp + 0xb0]
call fcn.140004bd0
mov eax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.140018ca0
add rsp, 0x4e8
pop rdi
pop rsi
ret