Function at 0x18002f8f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r15
lea rbp, [rsp - 0x1c8]
sub rsp, 0x2c8
mov rax, qword [0x180093630]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rax, rcx
lea rsi, [0x18007c4c0]
xor ecx, ecx
lea r13, [0x18007c5b8]
mov qword [rsp + 0x50], rcx
mov r15, r9
mov dword [rsp + 0x30], ecx
mov ebx, edx
mov edi, ecx
test rax, rax
je 0x18002fd02
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18002fd02
movzx edx, word [rax]
test dx, dx
je 0x18002fd02
test r9, r9
jne 0x18002f96a
mov eax, 0xc0000005
jmp 0x18002f9e1
mov qword [rsp + 0x2c0], r14
lea r14, [rcx - 2]
movzx eax, dx
shr rax, 1
lea r14, [r14 + rax*2]
cmp r14, rcx
jb 0x18002f9a4
movzx eax, word [r14]
cmp ax, 0x5c
je 0x18002f9a4
cmp ax, 0x2f
je 0x18002f9a4
cmp ax, 0x2e
je 0x18002f9ab
sub r14, 2
cmp r14, rcx
jae 0x18002f985
mov eax, 0xc0000225
jmp 0x18002f9d9
mov qword [rsp + 0x308], r12
add r14, 2
mov rax, r14
movzx r12d, dx
sub rax, rcx
shr r12d, 1
sar rax, 1
sub r12d, eax
jne 0x18002fa00
mov eax, 0xc0000225
mov r12, qword [rsp + 0x308]
mov r14, qword [rsp + 0x2c0]
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.180017170
add rsp, 0x2c8
pop r15
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r8b, r8b
je 0x18002fa25
lea rdx, [0x18007c758]
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x18002fa25
xor eax, eax
mov byte [r15], dil
mov ebx, eax
jmp 0x18002fceb
mov dword [rsp + 0x38], 0x2080000
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
cmp ebx, 1
jne 0x18002fa52
lea rdx, str.RegistryMachineSoftwarePoliciesMicrosoftWindowsSafer
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
jmp 0x18002faf3
cmp ebx, 2
jne 0x18002fb14
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlFormatCurrentUserKeyPath]
mov ebx, eax
test eax, eax
js 0x18002fb74
movzx ebx, word [rsp + 0x58]
add bx, 0x76
cmp word [rsp + 0x3a], bx
jae 0x18002fab2
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 + 0x40], rax
test rax, rax
jne 0x18002faad
mov ebx, 0xc0000017
jmp 0x18002fceb
mov word [rsp + 0x3a], bx
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
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 0x18002fb74
lea rdx, str.SoftwarePoliciesMicrosoftWindowsSafer
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
test eax, eax
js 0x18002fb74
cmp word [rsp + 0x38], di
jbe 0x18002fb1d
lea rdx, [0x18006ff34]
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
test eax, eax
js 0x18002fb74
jmp 0x18002fb1d
cmp ebx, 3
jne 0x18002fce6
lea rdx, str.CodeIdentifiers
lea rcx, [rsp + 0x38]
call qword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
mov ebx, eax
test eax, eax
js 0x18002fb74
xor eax, eax
mov dword [rsp + 0x68], 0x30
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x68]
lea rax, [rsp + 0x38]
mov dword [rbp - 0x80], 0x40
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
mov edx, 0x20019
lea rcx, [rsp + 0x50]
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x18002fba1
lea rcx, [rbp - 0x60]
cmp rax, rcx
je 0x18002fba1
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rsp + 0x40]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test ebx, ebx
jns 0x18002fbb6
cmp ebx, 0xc0000034
jne 0x18002fceb
jmp 0x18002fc73
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, [0x18006cc18]
mov eax, dword [rsp + 0x30]
mov r9, rdi
mov r8d, 2
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x18002fbee
test rdi, rdi
jne 0x18002fc56
cmp ebx, 0x80000005
je 0x18002fbfe
cmp ebx, 0xc0000023
jne 0x18002fc66
mov eax, dword [rsp + 0x48]
cmp eax, dword [rsp + 0x30]
jbe 0x18002fc66
test rdi, rdi
je 0x18002fc29
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [rsp + 0x48]
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x30], eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x18002fbb6
jmp 0x18002faa3
mov eax, dword [rdi + 8]
lea r13, [rdi + 0xc]
add r13, rax
lea rsi, [rdi + 0xc]
jmp 0x18002fc6e
cmp ebx, 0xc0000034
jne 0x18002fcc1
cmp rsi, r13
jae 0x18002fcb9
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x18002fc77
mov eax, ebx
lea rcx, [rsi + rax*2]
cmp rcx, r13
jbe 0x18002fc95
mov rbx, r13
sub rbx, rsi
sar rbx, 1
cmp ebx, r12d
jne 0x18002fcad
mov r8d, r12d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x18002fce0
lea eax, [rbx + 1]
lea rsi, [rsi + rax*2]
cmp rsi, r13
jb 0x18002fc73
mov byte [r15], 0
xor eax, eax
mov ebx, eax
test rdi, rdi
je 0x18002fceb
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x18002fceb
mov byte [r15], 1
jmp 0x18002fcbd
mov ebx, 0xc00000ef
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18002fcfb
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
jmp 0x18002f9d1
mov eax, 0xc000000d
jmp 0x18002f9e1