Function at 0x1f410
Capabilities:
Query or enumerate registry key

Disassembly:
mov r11, rsp
sub rsp, 0x2b8
mov rax, qword [0x000181d8]
mov qword [rsp + 0x280], rax
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
mov qword [r11 - 0x20], r14
mov r14, qword [rcx + 0x40]
mov rcx, r14
call fcn.00013a50
lea rdx, str.RegistryMACHINESystemCurrentControlSetMultiKeyDumps
lea rcx, [rsp + 0xc0]
xor edi, edi
mov esi, edi
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0xc0]
lea r8, [rsp + 0x80]
lea rcx, [rsp + 0x38]
mov edx, 0x20019
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x80], 0x30
mov qword [rsp + 0x88], rdi
mov dword [rsp + 0x98], 0x240
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1f948
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea edx, [rdi + 2]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x2d0], rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x290], r15
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov eax, dword [rsp + 0x30]
mov ecx, 0x1000
mov r8d, 0x656e6f4e
cmp eax, ecx
cmovb ecx, eax
mov dword [rsp + 0x30], ecx
mov edx, ecx
lea ecx, [rdi + 1]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov r9d, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov r15, rax
lea rax, [rsp + 0x30]
lea edx, [rdi + 2]
mov r8, r15
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
cmp dword [r15 + 0x14], edi
mov ebp, edi
jbe 0x1f91c
mov qword [rsp + 0x2c8], rbx
mov qword [rsp + 0x2a8], r12
mov qword [rsp + 0x2a0], r13
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov edx, ebp
mov dword [rsp + 0x20], edi
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov eax, dword [rsp + 0x30]
mov r11d, 0x1000
mov r8d, 0x656e6f4e
cmp eax, r11d
cmovb r11d, eax
xor ecx, ecx
mov edx, r11d
mov dword [rsp + 0x30], r11d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ecx, dword [rsp + 0x30]
xor r8d, r8d
mov r12, rax
lea rax, [rsp + 0x30]
mov edx, ebp
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x38]
mov r9, r12
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov r10d, dword [r12 + 0xc]
mov ebx, edi
mov r8d, r10d
mov r9d, 1
mov edx, edi
lea rcx, [r12 + 0x10]
mov r11d, 8
shr r8d, 1
cmp r8d, r11d
mov eax, r8d
cmova eax, r11d
cmp edx, eax
jae 0x1f64b
movzx eax, word [rcx]
cmp ax, 0x30
jb 0x1f60e
cmp ax, 0x39
ja 0x1f60e
add ebx, ebx
movzx eax, ax
inc edx
lea ebx, [rax + rbx*8 - 0x30]
add rcx, 2
jmp 0x1f5e0
cmp ax, 0x41
jb 0x1f62b
cmp ax, 0x46
ja 0x1f62b
add ebx, ebx
movzx eax, ax
inc edx
lea ebx, [rax + rbx*8 - 0x37]
add rcx, 2
jmp 0x1f5e0
cmp ax, 0x61
jb 0x1f648
cmp ax, 0x66
ja 0x1f648
add ebx, ebx
movzx eax, ax
inc edx
lea ebx, [rax + rbx*8 - 0x57]
add rcx, 2
jmp 0x1f5e0
mov r9d, edi
cmp r10d, 0x12
ja 0x1f8ef
test r9d, r9d
je 0x1f8ef
xor eax, eax
lea rdx, [r12 + 0x10]
lea rcx, [rsp + 0x150]
mov r8, r10
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x150], rax
mov qword [rsp + 0x158], rax
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], rax
mov qword [rsp + 0x170], rax
call fcn.00016fd0
lea r9, [rsp + 0x150]
lea r8, str.RegistryMACHINESystemCurrentControlSetMultiKeyDumps
lea rdx, [0x00021b30]
lea rcx, [rsp + 0x180]
call qword [sym.imp.ntoskrnl.exe_swprintf]
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0xb0]
lea r8, [rsp + 0x50]
lea rcx, [rsp + 0x48]
mov edx, 0x20019
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x68], 0x40
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x1f8ef
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [0x00021d50]
mov r9d, 4
call fcn.00013f00
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov edi, dword [rsp + 0x40]
lea eax, [rdi - 1]
cmp eax, 1
ja 0x1f7d6
xor edx, edx
lea rcx, [rsp + 0xdc]
inc esi
lea r8d, [rdx + 0x28]
mov dword [rsp + 0xd0], 0x34
mov dword [rsp + 0xd8], ebx
mov dword [rsp + 0xd4], esi
call fcn.00016ec0
mov r8d, dword [r12 + 0xc]
lea rdx, [r12 + 0x10]
lea rcx, [rsp + 0xdc]
call fcn.00016fd0
lea rcx, [rsp + 0x104]
lea rdx, [0x00022020]
mov r8d, 0x42
call fcn.00016fd0
lea rcx, [rsp + 0xd0]
mov r8, r14
mov edx, 0x76
call fcn.0001a590
test eax, eax
jns 0x1f7d6
add esi, 0xffffffff
cmp edi, 3
jne 0x1f861
lea r8d, [rdi + 0x25]
lea rcx, [rsp + 0xdc]
inc esi
xor edx, edx
mov dword [rsp + 0xd0], 0x34
mov dword [rsp + 0xd8], ebx
mov dword [rsp + 0xd4], esi
call fcn.00016ec0
mov r8d, dword [r12 + 0xc]
lea rdx, [r12 + 0x10]
lea rcx, [rsp + 0xdc]
call fcn.00016fd0
lea rcx, [rsp + 0x104]
lea rdx, [0x00021fd0]
lea r8d, [rdi + 0x3f]
call fcn.00016fd0
lea edx, [rdi + 0x73]
lea rcx, [rsp + 0xd0]
mov r8, r14
call fcn.0001a590
test eax, eax
jns 0x1f8e5
add esi, 0xffffffff
xor edi, edi
jmp 0x1f8ef
cmp edi, 4
jne 0x1f8e9
lea r8d, [rdi + 0x24]
lea rcx, [rsp + 0xdc]
inc esi
xor edx, edx
mov dword [rsp + 0xd0], 0x34
mov dword [rsp + 0xd8], ebx
mov dword [rsp + 0xd4], esi
call fcn.00016ec0
mov r8d, dword [r12 + 0xc]
lea rdx, [r12 + 0x10]
lea rcx, [rsp + 0xdc]
call fcn.00016fd0
lea rcx, [rsp + 0x104]
lea rdx, [0x00021f80]
lea r8d, [rdi + 0x3e]
call fcn.00016fd0
lea edx, [rdi + 0x72]
lea rcx, [rsp + 0xd0]
mov r8, r14
call fcn.0001a590
test eax, eax
jns 0x1f8ed
add esi, 0xffffffff
xor edi, edi
jmp 0x1f8ef
xor edi, edi
jmp 0x1f8ef
xor edi, edi
jmp 0x1f8ef
xor edi, edi
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
inc ebp
cmp ebp, dword [r15 + 0x14]
jb 0x1f550
mov r13, qword [rsp + 0x2a0]
mov r12, qword [rsp + 0x2a8]
mov rbx, qword [rsp + 0x2c8]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_ExFreePool]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, r14
call fcn.00013a80
mov r15, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x2d0]
mov r14, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2b0]
mov rsi, qword [rsp + 0x2d8]
xor eax, eax
mov rcx, qword [rsp + 0x280]
call fcn.00017320
add rsp, 0x2b8
ret