Function at 0x18000f2a0
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 - 0x4a0]
sub rsp, 0x5a0
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x490], rax
xor r13d, r13d
mov dword [rsp + 0x30], 0x2080000
lea rax, [rbp + 0x280]
mov rbx, r8
mov qword [rsp + 0x38], rax
lea rdi, str.LevelObjects
cmp edx, 1
jne 0x18000f4da
lea rdx, str.RegistryMachineSoftwarePoliciesMicrosoftWindowsSafer
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov rbx, r13
cmp word [rsp + 0x30], r13w
jbe 0x18000f338
lea rdx, [0x18006ff34]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov r14d, eax
test eax, eax
js 0x18000f389
mov rdx, rdi
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov r14d, eax
test eax, eax
js 0x18000f389
lea rax, [rsp + 0x30]
mov dword [rsp + 0x78], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x78], rax
lea r8, [rsp + 0x78]
mov qword [rbp - 0x80], rbx
mov edx, 0x20019
mov dword [rbp - 0x70], 0x40
lea rcx, [rsp + 0x40]
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov r14d, eax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x18000f3a3
lea rcx, [rbp + 0x280]
cmp rax, rcx
jne 0x180020716
test r14d, r14d
jns 0x180020736
call fcn.1800100a4
mov r15d, eax
lea rbx, [rbp + 0x134]
mov esi, 5
mov r12d, 1
nop word [rax + rax]
xor edx, edx
mov dword [rbp + 0x130], r13d
mov dword [rbp + 0x134], r12d
lea rcx, [rbp + 0xc0]
mov qword [rbp + 0x138], 0x1000
mov qword [rbp + 0x140], 0x10000
lea r8d, [rdx + 0x70]
mov dword [rbp + 0x148], 0x20000
mov dword [rbp + 0x14c], r12d
mov dword [rbp + 0x150], 0x40000
mov dword [rbp + 0x154], r12d
mov edi, dword [rbx - 4]
call sub.msvcrt.dll_memset
lea rdx, [rbp + 0xc0]
mov dword [rbp + 0xc0], edi
lea rcx, [0x180096180]
call qword [sym.imp.ntdll.dll_RtlLookupElementGenericTable]
test rax, rax
jne 0x18000f49a
xor edx, edx
lea r8d, [rax + 0x70]
lea rcx, [rbp + 0x50]
call sub.msvcrt.dll_memset
movzx ecx, byte [rbx]
mov eax, edi
and eax, r15d
mov dword [rbp + 0x50], edi
cmp eax, edi
mov byte [rbp + 0x54], r12b
cmove ecx, r12d
mov byte [rbp + 0x55], cl
lea rcx, [rbp + 0x50]
call fcn.18000f560
test eax, eax
js 0x1800208fb
xor r9d, r9d
lea rdx, [rbp + 0x50]
lea rcx, [0x180096180]
lea r8d, [r9 + 0x70]
call qword [sym.imp.ntdll.dll_RtlInsertElementGenericTable]
add rbx, 8
sub rsi, r12
jne 0x18000f3d0
mov eax, r14d
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.180017170
lea r11, [rsp + 0x5a0]
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
cmp edx, 2
jne 0x1800206e0
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov r14d, eax
test eax, eax
js 0x18000f389
movzx ebx, word [rsp + 0x68]
add bx, 0x70
cmp word [rsp + 0x32], bx
jb 0x1800206a8
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
lea rcx, [rsp + 0x68]
mov r14d, eax
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test r14d, r14d
js 0x18000f389
lea rdx, str.SoftwarePoliciesMicrosoftWindowsSafer
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov r14d, eax
test eax, eax
jns 0x18000f314
jmp 0x18000f389
mov rcx, qword gs:[0x60]
xor edx, edx
movzx r8d, bx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1800206d6
mov r14d, 0xc0000017
jmp 0x18000f3ac
mov word [rsp + 0x32], bx
jmp 0x18000f50d
cmp edx, 3
jne 0x1800208f0
test rbx, rbx
je 0x18000f338
mov ecx, 0x4c
cmp cx, 0x5c
jne 0x18000f338
movzx eax, word [rdi + 2]
add rdi, 2
movzx ecx, ax
test ax, ax
jne 0x1800206f7
jmp 0x18000f338
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop
jmp 0x18000f3a3
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x160]
xor r8d, r8d
mov dword [rsp + 0x20], 0x118
xor edx, edx
mov ebx, r13d
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov r14d, eax
test eax, eax
js 0x1800208df
mov edi, 0x100
lea rax, [rbp + 0x170]
mov word [rsp + 0x5a], di
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0x48]
movzx eax, word [rbp + 0x16c]
lea rcx, [rsp + 0x58]
mov edx, 0xa
mov word [rsp + 0x58], ax
call qword [sym.imp.ntdll.dll_RtlUnicodeStringToInteger]
test eax, eax
js 0x1800208a9
mov rax, qword [rsp + 0x40]
lea r8, [rbp - 0x58]
mov qword [rbp - 0x50], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x58]
mov dword [rbp - 0x58], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x48], rax
mov edx, 0x20019
mov dword [rbp - 0x40], 0x40
movdqu xmmword [rbp - 0x38], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x1800208a9
xor edx, edx
lea rcx, [rbp - 0x20]
lea r8d, [rdx + 0x70]
call sub.msvcrt.dll_memset
mov eax, dword [rsp + 0x48]
mov dword [rbp - 0x20], eax
cmp eax, 0x40000
je 0x180020852
cmp eax, 0x20000
je 0x180020852
cmp eax, 0x10000
je 0x180020852
cmp eax, 0x1000
je 0x180020852
test eax, eax
je 0x180020852
mov rdx, qword [rsp + 0x50]
lea r9, [rbp - 0x20]
lea r8, [0x18006c610]
mov word [rbp - 0x1c], di
mov ecx, 0x40000000
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntdll.dll_RtlQueryRegistryValuesEx]
cmp byte [rbp - 0x1c], r13b
jne 0x180020858
jmp 0x180020865
mov word [rbp - 0x1c], 0x101
lea rcx, [rbp - 0x20]
call fcn.18000f560
test eax, eax
js 0x180020895
lea rdx, [rbp - 0x20]
lea rcx, [0x180096180]
call qword [sym.imp.ntdll.dll_RtlLookupElementGenericTable]
test rax, rax
jne 0x180020895
xor r9d, r9d
lea r8d, [rax + 0x70]
lea rdx, [rbp - 0x20]
lea rcx, [0x180096180]
call qword [sym.imp.ntdll.dll_RtlInsertElementGenericTable]
jmp 0x18002089e
lea rcx, [rbp - 0x20]
call fcn.180030218
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x160]
inc ebx
mov dword [rsp + 0x20], 0x118
mov edx, ebx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_NtEnumerateKey]
mov r14d, eax
test eax, eax
jns 0x180020772
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtClose]
nop
jmp 0x18000f3ac
mov r14d, 0xc00000ef
jmp 0x18000f3ac
lea rcx, [rbp + 0x50]
call fcn.180030218
nop
jmp 0x18000f49a