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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
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 qword [rax + 0x20], rdi
mov rax, qword [0x14004b008]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
mov r15, rcx
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x64], r12d
mov dword [rsp + 0x60], 8
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.14001c790
mov esi, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000a2b8
or eax, 0xffffffff
jmp 0x14000a4de
mov eax, dword [rsp + 0x64]
test eax, eax
je 0x14000a4dc
mov r14d, r12d
mov r13d, 1
nop dword [rax]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1a0]
call fcn.14001c790
mov dword [rsp + 0x60], 0x104
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x1a0]
mov edx, r14d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x14000a4c2
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x1a0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a4c2
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.14001c790
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.Command
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000a48c
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 0x14000a481
call fcn.1400093c0
test rax, rax
je 0x14000a4d1
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x68], rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
test rax, 0xffffffffffff0000
jne 0x14000a410
movzx edi, cx
mov ecx, edi
call fcn.140009240
test rax, rax
je 0x14000a440
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14000aa40
jmp 0x14000a43b
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000a420
mov r8d, eax
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x68]
call fcn.14000ab50
mov rbx, qword [rsp + 0x68]
cmp dword [rbx - 0x10], 0
jl 0x14000a467
lea rdx, str.Win7UI
mov rcx, rbx
call fcn.14001a3e8
test rax, rax
je 0x14000a467
sub rax, rbx
sar rax, 1
cmp eax, 0xffffffff
cmovne esi, r13d
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000a481
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14000a49a
mov rcx, qword [rsp + 0x70]
call fcn.14000a050
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14000a4c2
xor r9d, r9d
mov r8d, 0x300
lea rdx, [rbp + 0x1a0]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
inc r14d
cmp r14d, dword [rsp + 0x64]
jae 0x14000a4dc
jmp 0x14000a2d0
mov ecx, 0x80004005
call fcn.140009170
int3
xor eax, eax
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140019260
lea r11, [rsp + 0x4c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret