Function at 0x14000ac90
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
xor ebx, ebx
mov dword [rsp + 0x30], 0x790073
mov r15, rcx
mov dword [rbp + 0x1f8], ebx
lea rcx, [rbp - 0x60]
mov qword [rbp + 0x200], rbx
lea rdx, str.REGISTRY_
mov dword [rsp + 0x34], 0x740073
mov edi, ebx
mov dword [rsp + 0x38], 0x6d0065
mov esi, ebx
mov dword [rsp + 0x3c], 0x320033
mov dword [rsp + 0x40], 0x5c
call fcn.140001a5c
lea rdx, str.MACHINESOFTWAREMicrosoftWindows_NTCurrentVersion
lea rcx, [rbp - 0x60]
call fcn.140001a20
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x58]
mov dword [rsp + 0x68], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x78], rax
lea r8, [rsp + 0x68]
mov qword [rsp + 0x70], rbx
mov edx, 0x20019
mov dword [rbp - 0x80], 0x40
lea rcx, [rbp + 0x200]
movdqu xmmword [rbp - 0x78], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
test eax, eax
js 0x14000aebe
mov r14, qword [r15 + 0x20]
mov r13d, ebx
mov r12, qword [rbp + 0x200]
mov dword [rbp + 0x1f0], ebx
test r14, r14
jne 0x14000ad8b
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov r14, qword [rcx + 0x30]
lea rdx, str.SystemRoot
lea rcx, [rsp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor r9d, r9d
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x48]
mov rcx, r12
mov dword [rsp + 0x20], ebx
lea r8d, [r9 + 2]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
cmp eax, 0xc0000023
jne 0x14000ae78
mov r8d, dword [rbp + 0x1f0]
mov edx, 8
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000af3d
mov edx, dword [rbp + 0x1f0]
lea rax, [rbp + 0x1f0]
mov qword [rsp + 0x28], rax
mov r9, rbx
mov dword [rsp + 0x20], edx
mov r8d, 2
lea rdx, [rsp + 0x48]
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
mov edi, eax
test eax, eax
js 0x14000ae6a
cmp dword [rbx + 4], 1
jne 0x14000ae65
mov r8d, dword [rbx + 8]
mov edx, 8
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x14000ae5e
mov r8d, dword [rbx + 8]
lea rdx, [rbx + 0xc]
mov rcx, rax
call fcn.140010ee0
mov r13d, dword [rbx + 8]
mov rsi, rdi
xor edi, edi
jmp 0x14000ae6a
mov edi, 0xc0000017
jmp 0x14000ae6a
mov edi, 0xc0000024
mov r8, rbx
xor edx, edx
mov rcx, r14
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test edi, edi
js 0x14000aeb8
test rsi, rsi
je 0x14000aeb8
mov ebx, r13d
mov r12d, 0x5c
shr rbx, 1
mov edx, 0x104
movzx r14d, word [rsi + rbx*2 - 2]
lea rax, [rbx + 1]
cmp r14w, r12w
cmove rax, rbx
add rax, 9
cmp rax, rdx
jb 0x14000af01
lea ecx, [r12 + 0x13]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [rbp + 0x1f8]
mov rcx, qword [rbp + 0x200]
test rcx, rcx
je 0x14000aed0
call qword [sym.imp.ntdll.dll_NtClose]
test rsi, rsi
je 0x14000aee4
mov rcx, qword [r15 + 0x20]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbx, qword [rsp + 0x308]
mov eax, edi
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r9, rbx
lea rcx, [r15 + 0x60]
mov r8, rsi
call fcn.140001a9c
cmp r14w, r12w
je 0x14000af1c
mov word [r15 + rbx*2 + 0x5e], r12w
lea rcx, [r15 + 0x26a]
lea rdx, [r15 + 0x60]
call fcn.140001a5c
lea rdx, [rsp + 0x30]
call fcn.140001a20
mov edi, 1
jmp 0x14000aebe
mov edi, esi
jmp 0x14000aebe