Function at 0x140004e00
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x718]
sub rsp, 0x7f0
mov rax, qword [0x140011410]
xor rax, rsp
mov qword [rbp + 0x6e0], rax
and qword [rsp + 0x60], 0
mov r15d, edx
mov dword [rsp + 0x48], edx
xor r12b, r12b
mov qword [rbp - 0x60], rcx
lea rdx, [0x14000a650]
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
and qword [rsp + 0x70], 0
lea rax, [rbp - 0x58]
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
mov r14d, 0x30
mov dword [rbp - 0x80], 0x240
lea r8, [rsp + 0x68]
mov dword [rsp + 0x68], r14d
mov edx, 0x20019
lea rcx, [rsp + 0x60]
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jns 0x140004ea6
lfence
jmp 0x1400055e0
mov r13d, 0x5341534d
mov esi, 0x118
mov ebx, 0x400
mov r8d, r13d
mov edx, esi
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp byte [0x140012180], r12b
mov rdi, rax
jne 0x140004ee1
test rax, rax
je 0x140004ee1
mov r8d, esi
xor edx, edx
mov rcx, rax
call fcn.140009c00
mov r8d, r13d
mov edx, 0x110
mov ecx, ebx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp byte [0x140012180], r12b
mov rsi, rax
jne 0x140004f12
test rax, rax
je 0x140004f12
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.140009c00
test rdi, rdi
je 0x1400055a7
test rsi, rsi
je 0x1400055a7
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
mov r9d, r14d
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xa8]
mov edx, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
mov ebx, eax
test eax, eax
js 0x1400055b1
xor r13d, r13d
mov dword [rsp + 0x34], r13d
cmp dword [rbp + 0xbc], r13d
jbe 0x140005592
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor r8d, r8d
mov dword [rsp + 0x20], 0x118
mov edx, r13d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
js 0x14000557d
lfence
mov ebx, dword [rdi + 0xc]
cmp ebx, 0x100
ja 0x14000557d
xor edx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0x200
call fcn.140009c00
lea r14, [rdi + 0x10]
mov r8d, ebx
mov rdx, r14
lea rcx, [rbp + 0xe0]
call fcn.140009e00
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x48]
mov dword [rbp - 0x80], 0x240
mov ebx, 0x30
mov qword [rsp + 0x78], rax
mov edx, 0x20019
mov dword [rsp + 0x68], ebx
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x14000557d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x78]
lea edx, [rbx - 0x2e]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
test eax, eax
js 0x140005572
lea rdx, [0x14000a6b0]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r8d, [rbx - 0x2e]
mov r9, rsi
mov dword [rsp + 0x20], 0x110
lea rdx, [rbp - 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140005572
lfence
mov ebx, dword [rsi + 8]
cmp ebx, 0x100
ja 0x140005572
xor edx, edx
lea rcx, [rbp + 0x2e0]
mov r8d, 0x200
call fcn.140009c00
lea rdx, [rsi + 0xc]
mov r8d, ebx
lea rcx, [rbp + 0x2e0]
call fcn.140009e00
lea rcx, [rbp + 0x2e0]
test r15d, r15d
jne 0x140005161
lea rdx, [0x14000a6c0]
call sub.ntoskrnl.exe_wcscmp
test eax, eax
je 0x140005175
lea rdx, [0x14000a6e0]
lea rcx, [rbp + 0x2e0]
call sub.ntoskrnl.exe_wcscmp
test eax, eax
je 0x140005175
lea rdx, [0x14000a700]
lea rcx, [rbp + 0x2e0]
call sub.ntoskrnl.exe_wcscmp
test eax, eax
je 0x140005175
lea rdx, [0x14000a710]
lea rcx, [rbp + 0x2e0]
call sub.ntoskrnl.exe_wcscmp
test eax, eax
je 0x140005175
lea rdx, [0x14000a720]
lea rcx, [rbp + 0x2e0]
call sub.ntoskrnl.exe_wcscmp
test eax, eax
je 0x140005175
lea rdx, [0x14000a730]
lea rcx, [rbp + 0x2e0]
jmp 0x140005168
lea rdx, [0x14000a750]
call sub.ntoskrnl.exe_wcscmp
test eax, eax
jne 0x140005572
xor r15d, r15d
mov dword [rsp + 0x44], r15d
cmp dword [rbp + 0x8c], r15d
jbe 0x14000556d
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor r8d, r8d
mov dword [rsp + 0x20], 0x118
mov edx, r15d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
js 0x140005553
lfence
mov ebx, dword [rdi + 0xc]
cmp ebx, 0x100
ja 0x140005553
xor edx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0x200
call fcn.140009c00
mov r8d, ebx
lea rcx, [rbp + 0xe0]
mov rdx, r14
call fcn.140009e00
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x28]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x68]
and qword [rsp + 0x58], 0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x28]
mov dword [rbp - 0x80], 0x240
mov ebx, 0x30
mov qword [rsp + 0x78], rax
mov edx, 0x20019
mov dword [rsp + 0x68], ebx
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140005553
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x48]
lea edx, [rbx - 0x2e]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
test eax, eax
js 0x140005548
xor r14d, r14d
mov dword [rsp + 0x40], r14d
cmp dword [rbp + 0x5c], r14d
jbe 0x140005544
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor r8d, r8d
mov dword [rsp + 0x20], 0x118
mov edx, r14d
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
js 0x14000552d
lfence
mov ebx, dword [rdi + 0xc]
cmp ebx, 0x100
ja 0x14000552d
xor edx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0x200
call fcn.140009c00
mov r8d, ebx
lea rdx, [rdi + 0x10]
lea rcx, [rbp + 0xe0]
call fcn.140009e00
mov r8d, 7
lea rdx, [0x14000a770]
lea rcx, [rbp + 0xe0]
call sub.ntoskrnl.exe_wcsncmp
test eax, eax
jne 0x14000552d
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x68]
and qword [rsp + 0x50], 0
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
lea rax, [rbp - 0x18]
mov dword [rbp - 0x80], 0x240
mov ebx, 0x30
mov qword [rsp + 0x78], rax
mov edx, 0x20019
mov dword [rsp + 0x68], ebx
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x14000552d
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov r9d, ebx
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x18]
lea edx, [rbx - 0x2e]
call qword [sym.imp.ntoskrnl.exe_ZwQueryKey]
test eax, eax
js 0x14000553f
xor ebx, ebx
cmp dword [rbp + 0x2c], ebx
jbe 0x140005522
mov r14, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov r9, rdi
xor r8d, r8d
mov dword [rsp + 0x20], 0x118
mov edx, ebx
call qword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
js 0x140005512
cmp dword [rdi + 0xc], 0x100
ja 0x140005512
lfence
xor edx, edx
lea rcx, [rbp + 0xe0]
mov r8d, 0x200
call fcn.140009c00
mov r8d, dword [rdi + 0xc]
lea rdx, [rdi + 0x10]
lea rcx, [rbp + 0xe0]
call fcn.140009e00
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x68]
and qword [rbp - 0x68], 0
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
lea rax, [rbp - 8]
mov dword [rsp + 0x68], 0x30
mov edx, 0x20019
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], 0x240
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
js 0x140005512
lea rdx, [0x14000a780]
lea rcx, [rbp + 8]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [rbp - 0x68]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rbp + 8]
mov r9, rsi
mov dword [rsp + 0x20], 0x110
mov r8d, 2
call qword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
js 0x140005508
cmp dword [rsi + 8], 0x100
ja 0x140005508
lfence
xor edx, edx
lea rcx, [rbp + 0x4e0]
mov r8d, 0x200
call fcn.140009c00
mov r8d, dword [rsi + 8]
lea rdx, [rsi + 0xc]
lea rcx, [rbp + 0x4e0]
call fcn.140009e00
lea rax, [rbp + 0x4e0]
mov r8, r14
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1400054f9
add rax, 2
test ecx, ecx
jne 0x1400054e5
test edx, edx
movzx r12d, r12b
mov eax, 1
cmove r12d, eax
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc ebx
cmp ebx, dword [rbp + 0x2c]
jb 0x1400053a5
mov r14d, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc r14d
mov dword [rsp + 0x40], r14d
cmp r14d, dword [rbp + 0x5c]
jb 0x140005288
mov r15d, dword [rsp + 0x44]
lea r14, [rdi + 0x10]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc r15d
mov dword [rsp + 0x44], r15d
cmp r15d, dword [rbp + 0x8c]
jb 0x14000518a
mov r13d, dword [rsp + 0x34]
mov r15d, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
inc r13d
mov dword [rsp + 0x34], r13d
cmp r13d, dword [rbp + 0xbc]
jb 0x140004f67
neg r12b
mov r13d, 0x5341534d
sbb ebx, ebx
not ebx
and ebx, 0xc000026a
jmp 0x1400055b1
mov ebx, 0xc0000017
test rsi, rsi
je 0x1400055bd
mov edx, r13d
mov rcx, rsi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
test rdi, rdi
je 0x1400055ce
mov edx, r13d
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400055de
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
mov rcx, qword [rbp + 0x6e0]
xor rcx, rsp
call fcn.140001900
lea r11, [rsp + 0x7f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret