Function at 0x14006aa50
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
test rcx, rcx
je 0x14006ad2a
mov r11, rsp
push rbp
push rsi
push r14
lea rbp, [r11 - 0x398]
sub rsp, 0x480
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r14d, r14d
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rdi
mov ebx, r14d
mov qword [rsp + 0x40], r14
lea rdi, [0x140325528]
mov rsi, rcx
nop dword [rax]
mov rcx, qword [rdi]
lea rax, [rsp + 0x40]
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
mov r8d, 4
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
inc ebx
lea rdi, [rdi + 8]
cmp ebx, 2
jb 0x14006aaa0
test eax, eax
jne 0x14006ad00
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0x160]
mov qword [rsp + 0x30], r14
xor edx, edx
mov qword [rsp + 0x28], r14
mov ebx, r14d
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x48], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x14006acf5
nop dword [rax + rax]
mov r8d, 1
mov dword [rsp + 0x48], 0x104
lea rdx, [0x140326df0]
inc ebx
lea rcx, [rbp + 0x160]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
je 0x14006acbd
mov rcx, qword [rsp + 0x40]
lea r8, [0x140323994]
lea rdx, [rbp + 0x160]
call fcn.14005ffc0
mov rdi, rax
test rax, rax
je 0x14006aca5
mov r9, rax
lea r8, [0x140326068]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14004ebd0
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9, rdi
lea r8, [0x1403271c0]
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14004ebd0
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9, rdi
lea r8, str.CLSID_s
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14004ebd0
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9, rdi
lea r8, str.WOW6432NodeCLSID_s
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14004ebd0
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9, rdi
lea r8, str.SOFTWAREClassesCLSID_s
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14004ebd0
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9, rdi
lea r8, str.SOFTWAREClassesWOW6432NodeCLSID_s
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14004ebd0
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov r9, rdi
lea r8, str.SOFTWAREWOW6432NodeClassesCLSID_s
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.14004ebd0
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, rdi
call fcn.14012a2d4
mov rcx, qword [rsp + 0x40]
lea rdx, [rbp + 0x160]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
cmove ebx, r14d
mov rcx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x38], r14
lea r8, [rbp + 0x160]
mov qword [rsp + 0x30], r14
mov edx, ebx
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x14006ab20
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x4a8]
mov rdi, qword [rsp + 0x4b0]
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x480
pop r14
pop rsi
pop rbp
ret