Function at 0x140010250
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.140005b50
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 0x140010949
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 0x14001034b
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x78], eax
jmp 0x140010353
mov dword [rsp + 0x78], 0x1000
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov r8d, 0x4d525356
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 0x1400103b8
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 0x14001091a
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 0x14001040b
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x7c], eax
jmp 0x140010413
mov dword [rsp + 0x7c], 0x1000
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov r8d, 0x4d525356
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 0x140010487
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 0x1400104aa
mov dword [rsp + 0x80], 8
jmp 0x1400104c2
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 0x1400105b4
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x30
jl 0x14001051b
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x39
jg 0x14001051b
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 0x1400105af
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x41
jl 0x140010560
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x46
jg 0x140010560
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 0x1400105af
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x61
jl 0x1400105a5
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2 + 0x10]
cmp eax, 0x66
jg 0x1400105a5
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 0x1400105af
mov dword [rsp + 0x64], 0
jmp 0x1400105b4
jmp 0x14001047d
mov rax, qword [rsp + 0x50]
cmp dword [rax + 0xc], 0x12
jbe 0x1400105c7
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x64], 0
je 0x140010908
xor eax, eax
cmp eax, 1
je 0x140010908
mov dword [rsp + 0x5c], 0
mov r8d, 0x28
xor edx, edx
lea rcx, [rsp + 0x148]
call fcn.140001bd0
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.140001880
mov r8d, 0x100
xor edx, edx
lea rcx, [rsp + 0x170]
call fcn.140001bd0
lea rax, [rsp + 0x148]
mov qword [rsp + 0x38], rax
lea rax, str.RegistryMACHINESystemCurrentControlSet_aaa
mov qword [rsp + 0x30], rax
lea rax, [0x1400010d8]
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.1400043a0
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 0x140010731
mov r9d, 4
lea r8, [rsp + 0x5c]
lea rdx, [0x1400013d0]
mov rcx, qword [rsp + 0xb0]
call fcn.1400058f0
mov rcx, qword [rsp + 0xb0]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x5c], 0
jbe 0x140010822
cmp dword [rsp + 0x5c], 2
ja 0x140010822
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.140001bd0
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.140001880
mov rax, qword [rsp + 0x68]
add rax, 0x34
mov r8d, 0x42
lea rdx, [0x1400013f0]
mov rcx, rax
call fcn.140001880
mov r8, qword [rsp + 0x90]
mov edx, 0x76
mov rcx, qword [rsp + 0x68]
call fcn.14000dfa0
mov dword [rsp + 0xa0], eax
cmp dword [rsp + 0xa0], 0
jge 0x140010822
mov eax, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x5c], 3
jne 0x140010908
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.140001bd0
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.140001880
mov rax, qword [rsp + 0x70]
add rax, 0x34
mov r8d, 0x42
lea rdx, [0x140001440]
mov rcx, rax
call fcn.140001880
mov r8, qword [rsp + 0x90]
mov edx, 0x76
mov rcx, qword [rsp + 0x70]
call fcn.14000dfa0
mov dword [rsp + 0xa4], eax
cmp dword [rsp + 0xa4], 0
jge 0x140010908
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 0x1400103ae
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.140005ae0
xor eax, eax
jmp 0x14001094b
xor eax, eax
add rsp, 0x378
ret