Function at 0x1400070d4
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
movsd xmm0, qword [0x140018ef0]
lea rax, [0x140019830]
and qword [rsp + 0x60], 0
mov r13, r8
mov r15d, edx
mov r12, rcx
xor edx, edx
mov qword [rbp - 0x50], rax
movzx eax, word [0x140018ef8]
lea rcx, [rbp - 6]
mov rsi, r9
mov dword [rbp - 0x58], 0x9c009a
movsd qword [rbp - 0x10], xmm0
lea r8d, [rdx + 0x5a]
mov word [rbp - 8], ax
call fcn.140018a40
and dword [rbp + 0xa0], 0
lea rax, [rbp - 0x10]
xor r14d, r14d
mov dword [rsp + 0x78], 0x640064
and qword [rsp + 0x58], r14
mov qword [rbp - 0x80], rax
test r13, r13
je 0x140007492
test rsi, rsi
je 0x140007492
and qword [rbp - 0x40], r14
lea rax, [rbp - 0x58]
xorps xmm0, xmm0
mov qword [rbp - 0x38], rax
lea r8, [rbp - 0x48]
mov dword [rbp - 0x48], 0x30
mov edx, 0x20019
mov dword [rbp - 0x30], 0x40
lea rcx, [rsp + 0x60]
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
test eax, eax
js 0x14000747e
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], r14d
xor edx, edx
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
cmp eax, 0x8000001a
je 0x14000747e
test eax, eax
je 0x1400071fb
cmp eax, 0x80000005
je 0x1400071fb
cmp eax, 0xc0000023
jne 0x140007479
mov edx, dword [rbp + 0xa0]
xor ecx, ecx
mov r8d, 0x746b734b
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x140007479
mov ecx, dword [rbp + 0xa0]
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
mov r9, rdi
mov dword [rsp + 0x20], ecx
xor r8d, r8d
mov rcx, qword [rsp + 0x60]
mov edx, r14d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
mov ebx, eax
lfence
test eax, eax
js 0x14000746c
and qword [rsp + 0x58], 0
lea rax, [rdi + 0x10]
mov qword [rbp - 0x70], rax
lea rdx, [rbp - 0x78]
movzx eax, word [rdi + 0xc]
lea rcx, [rsp + 0x78]
mov word [rbp - 0x76], ax
movzx eax, word [rdi + 0xc]
mov word [rbp - 0x78], ax
mov eax, 8
mov word [rsp + 0x78], ax
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov ebx, eax
test eax, eax
jne 0x140007431
and qword [rbp - 0x40], 0
lea rax, [rsp + 0x78]
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x40
lea r9, [rbp - 0x68]
mov qword [rbp - 0x38], rax
lea r8, [rbp - 0x48]
mov dword [rbp - 0x48], 0x30
mov edx, 0x80000000
mov dword [rbp - 0x30], 0x240
lea rcx, [rsp + 0x58]
mov dword [rsp + 0x20], 1
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
mov ebx, eax
test eax, eax
jne 0x140007431
lea ecx, [rax + 4]
mov dword [rsp + 0x68], 0x10104
mov dword [rsp + 0x48], ecx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov dword [rsp + 0x38], ecx
lea rax, [rsp + 0x68]
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
lea rax, [rbp - 0x68]
mov dword [rsp + 0x28], 0x170002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwDeviceIoControlFile]
mov ebx, eax
test eax, eax
jne 0x140007431
cmp dword [rsp + 0x50], eax
je 0x14000734e
mov ebx, 0xc0000088
jmp 0x140007431
and dword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov ecx, 4
mov dword [rsp + 0x6c], 0x10213
mov dword [rsp + 0x48], ecx
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov dword [rsp + 0x38], ecx
lea rax, [rsp + 0x6c]
mov rcx, qword [rsp + 0x58]
xor edx, edx
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov dword [rsp + 0x28], 0x170002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwDeviceIoControlFile]
mov ebx, eax
test eax, eax
jne 0x140007431
mov eax, dword [rsp + 0x50]
cmp eax, 0xe
je 0x1400073b7
test eax, eax
jne 0x140007344
mov eax, dword [rsi]
xor r9d, r9d
mov rcx, qword [rsp + 0x58]
xor r8d, r8d
mov dword [rsp + 0x48], eax
xor edx, edx
mov qword [rsp + 0x40], r13
lea rax, [rsp + 0x70]
mov dword [rsp + 0x38], 4
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x68]
mov dword [rsp + 0x28], 0x170002
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x70], 0x1010101
call qword [sym.imp.ntoskrnl.exe_ZwDeviceIoControlFile]
mov ebx, eax
test eax, eax
jne 0x140007431
test r12, r12
je 0x14000742c
cmp r15d, 4
jbe 0x14000742c
movzx eax, word [rbp - 0x78]
lea r8, [r15 - 2]
mov rdx, qword [rbp - 0x70]
cmp rax, r8
mov rcx, r12
cmovb r8, rax
call fcn.140018c40
mov eax, dword [rbp - 0x60]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140007441
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test ebx, ebx
je 0x14000747e
inc r14d
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x28], rax
mov edx, r14d
and dword [rsp + 0x20], 0
jmp 0x1400071c7
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x14000747e
mov ebx, 0xc000009a
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000748e
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
jmp 0x140007497
mov eax, 0xc000009a
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret