Function at 0x140012360
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov dword [rsp + 0x30], 0xc000000d
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x38], 0
cmp qword [rsp + 0xe0], 0
je 0x1400123b8
cmp qword [rsp + 0xe8], 0
je 0x1400123b8
cmp qword [rsp + 0xf0], 0
jne 0x1400123bd
jmp 0x1400125d0
mov rdx, qword [rsp + 0xe0]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x78], 0x30
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x90], 0x40
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x98], 0
mov qword [rsp + 0xa0], 0
lea r8, [rsp + 0x78]
mov edx, 0x20019
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140012444
mov dword [rsp + 0x40], 1
jmp 0x14001244c
mov dword [rsp + 0x40], 0
cmp dword [rsp + 0x40], 0
jne 0x140012458
jmp 0x1400125d0
mov rdx, qword [rsp + 0xe8]
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x34], 0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 2
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xc0000023
je 0x1400124b1
jmp 0x1400125d0
mov qword [rsp + 0x58], 0xf
mov eax, dword [rsp + 0xf8]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax - 2]
mov ecx, dword [rsp + 0x34]
cmp rax, rcx
jae 0x1400124e1
mov dword [rsp + 0x30], 0xc0000023
jmp 0x1400125d0
mov eax, dword [rsp + 0x34]
mov edx, eax
mov ecx, 0x200
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140012504
jmp 0x1400125d0
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8d, 2
lea rdx, [rsp + 0x68]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jl 0x140012546
mov dword [rsp + 0x44], 1
jmp 0x14001254e
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x44], 0
jne 0x140012557
jmp 0x1400125d0
mov eax, dword [rsp + 0xf8]
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0xf0]
xor eax, eax
mov rcx, qword [rsp + 0x60]
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov ecx, dword [rsp + 0xf8]
sub rcx, 2
cmp rax, rcx
jae 0x14001259b
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 8]
mov qword [rsp + 0x50], rax
jmp 0x1400125ab
mov eax, dword [rsp + 0xf8]
sub rax, 2
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x38]
add rax, 0xc
mov rdi, qword [rsp + 0xf0]
mov rsi, rax
mov rcx, qword [rsp + 0x50]
rep movsb byte [rdi], byte [rsi]
xor eax, eax
test eax, eax
jne 0x140012397
cmp qword [rsp + 0x38], 0
je 0x1400125e5
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp qword [rsp + 0x48], 0
je 0x1400125f8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [rsp + 0x30]
add rsp, 0xc8
pop rdi
pop rsi
ret