Function at 0x180010ab0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbp
push rsi
push r12
push r14
push r15
lea rbp, [r11 - 0x418]
sub rsp, 0x4f0
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x3d0], rax
mov r14, qword [rbp + 0x440]
or r15d, 0xffffffff
cmp byte [0x1800962f8], 0
mov r12, r9
mov dword [rsp + 0x40], r8d
mov esi, ecx
mov qword [rsp + 0x58], rdx
je 0x180020bfc
mov qword [r11 + 8], rbx
lea rcx, [0x180096140]
mov qword [r11 - 0x30], rdi
call qword [sym.imp.ntdll.dll_RtlEnterCriticalSection]
mov rdi, qword [0x1800960e8]
test rdi, rdi
jne 0x180020c06
cmp esi, 1
jne 0x180020c19
xor ebx, ebx
mov qword [rsp + 0x4e0], r13
mov dword [rsp + 0x30], 0x2080000
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x38], rax
lea r13, [0x180070210]
cmp esi, 1
jne 0x180010c9f
lea rdx, str.RegistryMachineSoftwarePoliciesMicrosoftWindowsSafer
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov rdi, rbx
mov rdx, r13
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov esi, eax
test eax, eax
js 0x180010bbf
lea rax, [rsp + 0x30]
mov dword [rbp - 0x80], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x70], rax
lea r8, [rbp - 0x80]
mov qword [rbp - 0x78], rdi
mov edx, 0x20019
mov dword [rbp - 0x68], 0x40
lea rcx, [rsp + 0x48]
movdqu xmmword [rbp - 0x60], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov esi, eax
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x180010bd9
lea rcx, [rbp + 0x1c0]
cmp rax, rcx
jne 0x180020c8b
test esi, esi
js 0x180010c32
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x50]
mov r8d, 1
mov dword [rsp + 0x20], 0x20c
lea rdx, [rsp + 0x70]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test eax, eax
jns 0x180020cab
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x180010c35
mov r15d, ebx
mov r13, qword [rsp + 0x4e0]
test r12, r12
je 0x180020cce
cmp dword [rsp + 0x40], 4
jb 0x180020cce
mov dword [r12], r15d
test r14, r14
je 0x180010c61
mov dword [r14], 4
lea rcx, [0x180096140]
call qword [sym.imp.ntdll.dll_RtlLeaveCriticalSection]
mov rdi, qword [rsp + 0x4e8]
mov eax, ebx
mov rbx, qword [rsp + 0x520]
mov rcx, qword [rbp + 0x3d0]
xor rcx, rsp
call fcn.180017170
add rsp, 0x4f0
pop r15
pop r14
pop r12
pop rsi
pop rbp
ret
cmp esi, 2
jne 0x180020c54
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov esi, eax
test eax, eax
js 0x180010bbf
movzx edi, word [rsp + 0x60]
add di, 0x78
cmp word [rsp + 0x32], di
jb 0x180020c23
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
lea rcx, [rsp + 0x60]
mov esi, eax
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test esi, esi
js 0x180010bbf
lea rdx, str.SoftwarePoliciesMicrosoftWindowsSafer
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov esi, eax
test eax, eax
jns 0x180010b6f
jmp 0x180010bbf
mov eax, 0xc0000001
jmp 0x180010c80
cmp esi, 3
je 0x180010b2f
mov ebx, 0xc0000030
jmp 0x180010c61
mov ebx, 0xc0000030
jmp 0x180010c61
mov rcx, qword gs:[0x60]
xor edx, edx
movzx r8d, di
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x180010c32
mov word [rsp + 0x32], di
jmp 0x180010cd1
cmp esi, 3
jne 0x180010c32
test rdi, rdi
je 0x180010b72
mov ecx, 0x5c
cmp cx, 0x5c
jne 0x180010b72
movzx eax, word [r13 + 2]
add r13, 2
movzx ecx, ax
test ax, ax
jne 0x180020c6b
jmp 0x180010b72
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 0x180010bd9
cmp dword [rbp - 0x4c], 4
jne 0x180020cc4
cmp dword [rbp - 0x44], 4
jne 0x180020cc4
mov ecx, dword [rbp - 0x48]
mov r15d, dword [rbp + rcx - 0x50]
jmp 0x180010c23
mov edi, 0xc0000225
jmp 0x180010c23
mov ebx, 0xc0000023
jmp 0x180010c55