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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2c8]
sub rsp, 0x3a0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x290], rax
mov r14, rcx
xor r12d, r12d
mov esi, r12d
call fcn.140011f04
mov qword [rsp + 0x70], rax
lea r13d, [r12 + 1]
mov byte [rax + 0x41], r13b
mov rax, qword [rsp + 0x70]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x70]
mov qword [rax], rax
mov rax, qword [rsp + 0x70]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x78], r12
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x80]
call sub.msvcrt.dll_memset
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 + 0x80]
mov edx, esi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov r15d, eax
test eax, eax
jne 0x14001be68
cmp word [rbp + 0x80], 0x7b
jne 0x14001be68
mov rdi, r12
lea rbx, str.6D6087D7_61D2_495f_9293_5B7B1C3FCEAB
lea rdx, [rbp + 0x80]
mov rcx, qword [rbx]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14001bd20
add rdi, r13
add rbx, 0x18
lea rax, [0x14004f948]
cmp rbx, rax
jl 0x14001bcf4
mov ebx, r12d
jmp 0x14001bd2f
lea rax, [rdi + rdi*2]
lea rcx, [0x14004f4d0]
movzx ebx, word [rcx + rax*8]
test ebx, ebx
je 0x14001be68
xor edx, edx
mov r8d, 0xaa
lea rcx, [rbp - 0x30]
call sub.msvcrt.dll_memset
xor r9d, r9d
lea r8d, [r9 + 0x55]
lea rdx, [rbp - 0x30]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
jle 0x14001be68
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0xf013f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14001be68
cmp dword [rsp + 0x50], r13d
je 0x14001bdff
lea rcx, [rsp + 0x58]
call fcn.14001baa8
mov ecx, dword [rsp + 0x50]
test al, al
cmove ecx, r13d
mov dword [rsp + 0x50], ecx
cmp ecx, r13d
je 0x14001bdff
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x58]
call fcn.140011a68
nop
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x68]
call fcn.14001147c
nop
jmp 0x14001be4d
mov r8, qword [rsp + 0x58]
lea rdx, [rbp + 0x80]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RegCopyTreeW]
test eax, eax
jne 0x14001be5d
mov qword [rbp - 0x38], 7
mov qword [rbp - 0x40], r12
mov word [rbp - 0x50], r12w
lea rdx, [rbp + 0x80]
lea rcx, [rbp - 0x58]
call fcn.140011a68
nop
lea r8, [rbp - 0x58]
lea rdx, [rbp - 0x68]
lea rcx, [rsp + 0x68]
call fcn.14001147c
nop
cmp qword [rbp - 0x38], 8
jb 0x14001be5d
mov rcx, qword [rbp - 0x50]
call fcn.140035cb4
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, r13d
test r15d, r15d
je 0x14001bc8a
cmp qword [rsp + 0x78], r12
je 0x14001bef3
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x14003f370]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001bef3
mov rcx, qword [rsp + 0x70]
mov rax, qword [rcx]
mov qword [rsp + 0x58], rax
cmp rax, rcx
je 0x14001bee7
lea rdx, [rax + 0x20]
cmp qword [rax + 0x38], 8
jb 0x14001bec6
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_RegDeleteTreeW]
lea rcx, [rsp + 0x58]
call fcn.140010dc8
mov rax, qword [rsp + 0x58]
cmp rax, qword [rsp + 0x70]
jne 0x14001beb8
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rcx, [rsp + 0x68]
call fcn.140010f08
mov rcx, qword [rsp + 0x70]
call fcn.140035cb4
nop
mov rcx, qword [rbp + 0x290]
xor rcx, rsp
call fcn.1400362c0
lea r11, [rsp + 0x3a0]
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