Function at 0x18001ac1c
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x248]
sub rsp, 0x348
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rsi, qword [rbp + 0x2b0]
lea rbx, [rbp - 0x60]
xor r13d, r13d
mov r14, r9
mov qword [rsp + 0x48], r13
mov r15, r8
mov edi, r13d
mov r12b, r13b
test rcx, rcx
jne 0x180033928
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
test edi, edi
js 0x18001ad68
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x80], rax
lea r8, [rsp + 0x70]
mov qword [rsp + 0x78], r13
mov edx, 0x20019
mov dword [rbp - 0x78], 0x40
lea rcx, [rsp + 0x48]
movdqu xmmword [rbp - 0x70], xmm0
call qword [sym.imp.ntdll.dll_NtOpenKey]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x18001ad68
mov rdx, r15
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rbp - 0x60]
mov r15d, 1
mov dword [rsp + 0x20], 0x80
mov r8d, r15d
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0x80000005
je 0x180033962
test edi, edi
js 0x18001ad68
mov eax, dword [rbx + 4]
test eax, eax
je 0x1800339d4
cmp eax, 2
jbe 0x1800339de
cmp eax, 4
ja 0x1800339c6
mov eax, dword [rbx + 0xc]
cmp dword [rsi], eax
jb 0x18001adb2
mov edx, dword [rbx + 8]
mov r8d, eax
add rdx, rbx
mov rcx, r14
call sub.ntdll.dll_memcpy
mov eax, dword [rbx + 0xc]
mov dword [rsi], eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18001ad83
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
mov qword [rsp + 0x48], r13
test r12b, r12b
jne 0x180033a46
mov eax, edi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.180024680
add rsp, 0x348
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edi, 0x80000005
jmp 0x18001ad66
mov qword [rsp + 0x30], r13
lea rax, [rbp + 0x20]
mov r8, rdx
mov dword [rsp + 0x28], 0x208
lea rdx, str.TargetNtPath
mov qword [rsp + 0x20], rax
xor r9d, r9d
call qword [sym.imp.ntdll.dll_RtlGetPersistedStateLocation]
nop dword [rax + rax]
mov edi, eax
lea rdx, [rbp + 0x20]
jmp 0x18001ac71
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8d, dword [rsp + 0x40]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x18001ad68
mov ecx, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x20], ecx
mov r9, rbx
mov rcx, qword [rsp + 0x48]
mov r8d, r15d
mov r12b, r15b
call qword [sym.imp.ntdll.dll_NtQueryValueKey]
nop dword [rax + rax]
mov edi, eax
jmp 0x18001ad2a
cmp eax, 7
je 0x1800339de
cmp eax, 0xb
je 0x18001ad4b
mov edi, 0xc00000e5
jmp 0x18001ad68
mov eax, dword [rbx + 0xc]
cmp eax, 2
jb 0x180033a3c
mov r9d, dword [rbx + 8]
and eax, 0xfffffffe
mov edx, eax
add rax, r9
mov dword [rbx + 0xc], edx
cmp word [rax + rbx - 2], r13w
jne 0x180033a03
add edx, 0xfffffffe
mov dword [rbx + 0xc], edx
mov eax, dword [rsi]
lea rcx, [rdx + 2]
mov r8d, edx
cmp rax, rcx
jb 0x180033a2f
test r14, r14
je 0x180033a2f
lea rdx, [r9 + rbx]
mov rcx, r14
call sub.ntdll.dll_memcpy
mov eax, dword [rbx + 0xc]
mov word [rax + r14], r13w
mov edx, dword [rbx + 0xc]
jmp 0x180033a34
mov edi, 0x80000005
lea eax, [rdx + 2]
jmp 0x18001ad66
mov edi, 0xc0000034
jmp 0x18001ad68
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
nop
jmp 0x18001ad8c