Function at 0x18000e1a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r15
lea rbp, [rsp - 0x3e8]
sub rsp, 0x4e8
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
cmp byte [0x1800962f8], 0
mov r15, r9
mov qword [rsp + 0x50], r9
mov r12, r8
mov r13d, edx
mov esi, ecx
je 0x18001f68c
lea rcx, [0x180096140]
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
cmp qword [0x1800960e8], 0
jne 0x18001f696
lea eax, [rsi - 1]
cmp eax, 1
ja 0x18001f69f
cmp byte [0x1800961c8], 0
jne 0x18001f6a9
lea rcx, [0x180096180]
call qword [sym.imp.ntdll.dll_RtlIsGenericTableEmpty]
test al, al
jne 0x18001f6bd
mov qword [rsp + 0x520], rdi
mov qword [rsp + 0x4e0], r14
xor r14d, r14d
cmp byte [rbp + 0x440], r14b
jne 0x18001f784
mov rdi, qword [0x1800960e8]
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x38], rax
lea r15, [0x180070210]
mov dword [rsp + 0x30], 0x2080000
cmp esi, 1
jne 0x18000e3a5
lea rdx, str.RegistryMachineSoftwarePoliciesMicrosoftWindowsSafer
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov rdi, r14
mov rdx, r15
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
test eax, eax
js 0x18000e2df
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], rdi
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 ebx, eax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x18000e2f9
lea rcx, [rbp + 0x1c0]
cmp rax, rcx
jne 0x18001f731
test ebx, ebx
js 0x18000e366
test r12, r12
je 0x18000e350
cmp r13d, 4
jb 0x18000e350
lea rdx, str.SaferFlags
lea rcx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x50]
mov r8d, 1
mov dword [rsp + 0x20], 0x20c
lea rdx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
jns 0x18001f751
or edi, 0xffffffff
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
jns 0x18001f773
mov rdi, qword [rsp + 0x520]
mov r14, qword [rsp + 0x4e0]
lea rcx, [0x180096140]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov eax, ebx
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.180017170
add rsp, 0x4e8
pop r15
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret
cmp esi, 2
jne 0x18001f6fe
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x18000e2df
movzx ebx, word [rsp + 0x58]
add bx, 0x78
cmp word [rsp + 0x32], bx
jb 0x18001f6c7
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
lea rcx, [rsp + 0x58]
mov ebx, eax
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test ebx, ebx
js 0x18000e2df
lea rdx, str.SoftwarePoliciesMicrosoftWindowsSafer
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
test eax, eax
jns 0x18000e28d
jmp 0x18000e2df
mov eax, 0xc0000001
jmp 0x18000e385
cmp esi, 3
je 0x18000e20e
mov ebx, 0xc0000030
jmp 0x18000e376
call fcn.1800063f0
mov ebx, eax
test eax, eax
js 0x18000e376
jmp 0x18000e21b
mov ebx, 0xc0000225
jmp 0x18000e376
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 0x18001f6f4
mov ebx, 0xc0000017
jmp 0x18000e366
mov word [rsp + 0x32], bx
jmp 0x18000e3d7
cmp esi, 3
jne 0x18001f77a
test rdi, rdi
je 0x18000e290
mov ecx, 0x5c
cmp cx, 0x5c
jne 0x18000e290
movzx eax, word [r15 + 2]
add r15, 2
movzx ecx, ax
test ax, ax
jne 0x18001f711
jmp 0x18000e290
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 0x18000e2f9
cmp dword [rbp - 0x4c], 4
jne 0x18001f769
cmp dword [rbp - 0x44], 4
jne 0x18001f769
mov eax, dword [rbp - 0x48]
mov edi, dword [rbp + rax - 0x50]
jmp 0x18000e353
mov ebx, 0xc0000225
jmp 0x18000e350
mov r15, qword [rsp + 0x50]
jmp 0x18001f7b5
mov ebx, 0xc00000ef
jmp 0x18000e366
cmp esi, 2
jne 0x18001f7a0
cmp qword [0x180096088], 0
jne 0x18001f798
mov edi, r14d
jmp 0x18001f7c5
mov edi, dword [0x180095ee8]
jmp 0x18001f7b5
cmp qword [0x180095ee0], 0
jne 0x18001f7af
mov edi, r14d
jmp 0x18001f7c5
mov edi, dword [0x180095eec]
test edi, 0xffffcfff
jne 0x18001f7f3
cmp edi, 0x3000
je 0x18001f7f3
test r12, r12
je 0x18001f7d9
cmp r13d, 4
jb 0x18001f7d9
mov dword [r12], edi
mov ebx, r14d
jmp 0x18001f7de
mov ebx, 0xc0000023
test r15, r15
je 0x18000e366
mov dword [r15], 4
jmp 0x18000e366
mov ebx, 0xc0000001
jmp 0x18000e366