Function at 0x14000b590
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x378
mov rax, qword [rsp + 0x380]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140002950
mov dword [rsp + 0x48], 0
lea rdx, str.RegistryMACHINESystemCurrentControlSet_aaa
lea rcx, [rsp + 0x128]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0xc8], 0x30
mov qword [rsp + 0xd0], 0
mov dword [rsp + 0xe0], 0x240
lea rax, [rsp + 0x128]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xe8], 0
mov qword [rsp + 0xf0], 0
lea r8, [rsp + 0xc8]
mov edx, 0x20019
lea rcx, [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x98], eax
cmp dword [rsp + 0x98], 0
jl 0x14000bc89
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 2
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
cmp dword [rsp + 0x40], 0x1000
jae 0x14000b68b
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x78], eax
jmp 0x14000b693
mov dword [rsp + 0x78], 0x1000
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov r8d, 0x61525356
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8, qword [rsp + 0xa8]
mov edx, 2
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov dword [rsp + 0x60], 0
jmp 0x14000b6f8
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x14]
cmp dword [rsp + 0x60], eax
jae 0x14000bc5a
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
cmp dword [rsp + 0x40], 0x1000
jae 0x14000b74b
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x7c], eax
jmp 0x14000b753
mov dword [rsp + 0x7c], 0x1000
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov r8d, 0x61525356
mov edx, eax
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x50]
xor r8d, r8d
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x44], 0
jmp 0x14000b7c7
mov eax, dword [rsp + 0x44]
inc eax
mov dword [rsp + 0x44], eax
xor edx, edx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov ecx, 2
div ecx
cmp eax, 8
jbe 0x14000b7ea
mov dword [rsp + 0x80], 8
jmp 0x14000b802
xor edx, edx
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov ecx, 2
div ecx
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x80]
cmp dword [rsp + 0x44], eax
jae 0x14000b8f4
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x30
jl 0x14000b85b
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x39
jg 0x14000b85b
mov eax, dword [rsp + 0x58]
shl eax, 4
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx + rcx*2 + 0x10]
lea eax, [rax + rcx - 0x30]
mov dword [rsp + 0x58], eax
jmp 0x14000b8ef
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x41
jl 0x14000b8a0
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x46
jg 0x14000b8a0
mov eax, dword [rsp + 0x58]
shl eax, 4
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx + rcx*2 + 0x10]
lea eax, [rax + rcx - 0x37]
mov dword [rsp + 0x58], eax
jmp 0x14000b8ef
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x61
jl 0x14000b8e5
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x66
jg 0x14000b8e5
mov eax, dword [rsp + 0x58]
shl eax, 4
mov ecx, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x50]
movzx ecx, word [rdx + rcx*2 + 0x10]
lea eax, [rax + rcx - 0x57]
mov dword [rsp + 0x58], eax
jmp 0x14000b8ef
mov dword [rsp + 0x64], 0
jmp 0x14000b8f4
jmp 0x14000b7bd
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xc], 0x12
jbe 0x14000b907
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x64], 0
je 0x14000bc48
xor eax, eax
cmp eax, 1
je 0x14000bc48
mov dword [rsp + 0x5c], 0
mov r8d, 0x28
xor edx, edx
lea rcx, [rsp + 0x148]
call fcn.140001940
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, 0x10
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x148]
call fcn.1400015f0
mov r8d, 0x100
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.140001940
lea rax, [rsp + 0x148]
mov qword [rsp + 0x38], rax
lea rax, str.RegistryMACHINESystemCurrentControlSet_aaa
mov qword [rsp + 0x30], rax
lea rax, [0x140001100]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x800
xor r9d, r9d
xor r8d, r8d
mov edx, 0x100
lea rcx, [rsp + 0x170]
call fcn.140001bf0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x138]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0xf8], 0x30
mov qword [rsp + 0x100], 0
mov dword [rsp + 0x110], 0x40
lea rax, [rsp + 0x138]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0x118], 0
mov qword [rsp + 0x120], 0
lea r8, [rsp + 0xf8]
mov edx, 0x20019
lea rcx, [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x9c], eax
cmp dword [rsp + 0x9c], 0
jl 0x14000ba71
mov r9d, 4
lea r8, [rsp + 0x5c]
lea rdx, [0x140001110]
mov rcx, qword [rsp + 0xb0]
call fcn.140002790
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x5c], 0
jbe 0x14000bb62
cmp dword [rsp + 0x5c], 2
ja 0x14000bb62
lea rax, [rsp + 0x270]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov dword [rax], 0x34
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x68]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x68]
add rax, 0xc
mov r8d, 0x28
xor edx, edx
mov rcx, rax
call fcn.140001940
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, 0x10
mov rdx, qword [rsp + 0x68]
add rdx, 0xc
mov qword [rsp + 0xb8], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0xb8]
mov rcx, rax
call fcn.1400015f0
mov rax, qword [rsp + 0x68]
add rax, 0x34
mov r8d, 0x42
lea rdx, [0x140001130]
mov rcx, rax
call fcn.1400015f0
mov r8, qword [rsp + 0x90]
mov edx, 0x76
mov rcx, qword [rsp + 0x68]
call fcn.140009c50
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
jge 0x14000bb62
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x5c], 3
jne 0x14000bc48
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov dword [rax], 0x34
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x48]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x70]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x70]
add rax, 0xc
mov r8d, 0x28
xor edx, edx
mov rcx, rax
call fcn.140001940
mov rax, qword [rsp + 0x50]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x50]
add rcx, 0x10
mov rdx, qword [rsp + 0x70]
add rdx, 0xc
mov qword [rsp + 0xc0], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0xc0]
mov rcx, rax
call fcn.1400015f0
mov rax, qword [rsp + 0x70]
add rax, 0x34
mov r8d, 0x42
lea rdx, [0x140001180]
mov rcx, rax
call fcn.1400015f0
mov r8, qword [rsp + 0x90]
mov edx, 0x76
mov rcx, qword [rsp + 0x70]
call fcn.140009c50
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
jge 0x14000bc48
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000b6ee
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rcx, qword [rsp + 0x90]
call fcn.1400028e0
xor eax, eax
jmp 0x14000bc8b
xor eax, eax
add rsp, 0x378
ret