Function at 0x140001160
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push r13
push r14
lea rbp, [rsp - 8]
sub rsp, 0x108
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp - 0x18], rax
xor r13d, r13d
mov r14, r8
mov qword [rsp + 0x48], r13
mov rbx, rcx
test r8, r8
je 0x140001197
mov dword [r8], r13d
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x68], r13d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x68]
mov dword [rbp - 0x78], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x68], rax
lea r8, [rbp - 0x78]
mov qword [rbp - 0x70], rbx
mov edx, 0x20019
mov dword [rbp - 0x60], 0x40
lea rcx, [rsp + 0x50]
movdqu xmmword [rbp - 0x58], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x14000147b
mov rbx, qword [rsp + 0x50]
lea rdx, str.Description
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x48], r13
mov qword [rbp - 0x80], r13
mov dword [rsp + 0x78], r13d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x78]
mov dword [rbp - 0x48], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x38], rax
lea r8, [rbp - 0x48]
mov qword [rbp - 0x40], rbx
mov edx, 0x20019
mov dword [rbp - 0x30], 0x40
lea rcx, [rsp + 0x48]
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
mov ebx, eax
test eax, eax
js 0x14000146e
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x100], rdi
lea r8, [rsp + 0x38]
lea rdx, str.System
mov qword [rsp + 0x38], r13
xor dil, dil
mov dword [rsp + 0x30], r13d
call section..text
test eax, eax
js 0x14000145b
cmp dword [rsp + 0x30], 4
jne 0x1400012a1
mov rax, qword [rsp + 0x38]
cmp dword [rax], 1
sete dil
mov rax, qword gs:[0x30]
xor edx, edx
mov r8, qword [rsp + 0x38]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test dil, dil
je 0x14000145b
mov qword [rsp + 0x148], rsi
lea rdx, str.TreatAsSystem
mov qword [rsp + 0xf8], r12
lea rcx, [rsp + 0x58]
mov r12, qword [rsp + 0x48]
mov rsi, r13
mov qword [rsp + 0xf0], r15
mov r15d, r13d
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x60], r13
mov dword [rsp + 0x58], r13d
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x58]
mov rcx, r12
mov dword [rsp + 0x20], r13d
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
cmp eax, 0xc0000023
jne 0x140001407
mov rax, qword gs:[0x30]
mov edx, 8
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140001402
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x58]
mov dword [rsp + 0x20], r9d
mov r8d, 2
mov r9, rdi
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov ebx, eax
test eax, eax
js 0x1400013e4
mov rax, qword gs:[0x30]
mov edx, 8
mov r8d, dword [rdi + 8]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x1400013df
mov r8d, dword [rdi + 8]
lea rdx, [rdi + 0xc]
mov rcx, rax
call fcn.140008720
mov r15d, dword [rdi + 8]
mov rsi, rbx
mov ebx, r13d
jmp 0x1400013e4
mov ebx, 0xc0000017
mov rax, qword gs:[0x30]
mov r8, rdi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x140001407
mov ebx, 0xc0000017
mov r12, qword [rsp + 0xf8]
test ebx, ebx
js 0x140001446
cmp r15d, 4
jne 0x140001428
cmp dword [rsi], 1
jne 0x140001428
mov dword [r14], 1
mov ebx, r13d
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000144b
mov ebx, 0xc0000232
mov rsi, qword [rsp + 0x148]
mov r15, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
mov rdi, qword [rsp + 0x100]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1400081d0
add rsp, 0x108
pop r14
pop r13
pop rbx
pop rbp
ret