Function at 0x14000aaa0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3e8]
sub rsp, 0x4c0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x64], r15d
mov edi, r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000ab35
lea eax, [r15 - 1]
jmp 0x14000ad4c
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x14000ad4a
mov esi, r15d
mov r12d, 1
nop word [rax + rax]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.14001b960
mov dword [rsp + 0x60], 0x104
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x1a0]
mov edx, esi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000ad3e
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ad3e
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.14001b960
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.Command
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000ad08
mov dword [rsp + 0x60], 0x104
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000acfd
call fcn.140009d20
mov rdx, rax
test rax, rax
je 0x14000ad77
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov rcx, rdx
call qword [0x140033700]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x70]
cmp rax, 0x10000
jae 0x14000ac87
lea rax, [rbp - 0x70]
movzx edx, ax
lea rcx, [rsp + 0x70]
call fcn.14000b2f0
jmp 0x14000acae
lea rcx, [rbp - 0x70]
mov rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000ac92
mov r8d, eax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.14000b510
nop
mov rbx, qword [rsp + 0x70]
cmp dword [rbx - 0x10], 0
jl 0x14000acda
lea rdx, str.Win7UI
mov rcx, rbx
call fcn.14001b1ac
test rax, rax
je 0x14000acda
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
cmovne edi, r12d
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000acfd
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140033700]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14000ad16
mov rcx, qword [rsp + 0x68]
call fcn.14000a930
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x14000ad3e
xor r9d, r9d
mov r8d, 0x300
lea rdx, [rbp + 0x1a0]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
inc esi
cmp esi, dword [rsp + 0x64]
jb 0x14000ab50
xor eax, eax
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140019b40
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140009b70
int3