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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
movaps xmmword [rsp + 0xa0], xmm6
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x98], rax
xor ebp, ebp
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
test eax, eax
jne 0x14018f743
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140115e50
mov eax, ebp
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsp + 0x90]
mov qword [rax], 0
mov r9d, esi
or r9d, 8
mov qword [rsp + 0x20], rax
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14018f77c
cmp eax, 2
je 0x14018f715
mov ebp, eax
jmp 0x14018f715
movabs r15, 0x7fffffffffffffef
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rsp + 0x70], xmm0
mov rcx, rdi
call fcn.1401124ec
cmp rax, r15
ja 0x14018f977
mov rbp, rax
cmp rax, 0xb
jae 0x14018f7ce
lea r14, [rsp + 0x70]
mov byte [r14 + 0x17], bpl
test rbp, rbp
jne 0x14018f7fb
jmp 0x14018f80c
lea r12, [rbp + 8]
and r12, 0xfffffffffffffff8
lea rcx, [r12 + r12]
call fcn.140112048
mov r14, rax
mov qword [rsp + 0x70], rax
add r15, 0x11
or r15, r12
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x78], rbp
mov r8, rbp
add r8, rbp
mov rcx, r14
mov rdx, rdi
call fcn.1401178b0
mov word [r14 + rbp*2], 0
mov al, byte [rsp + 0x87]
test al, al
mov rcx, qword [rsp + 0x78]
movzx r14d, al
mov rdx, r14
cmovs rdx, rcx
test rdx, rdx
je 0x14018f865
test al, al
jns 0x14018f83c
mov rbp, qword [rsp + 0x70]
jmp 0x14018f841
lea rbp, [rsp + 0x70]
cmp word [rbp + rdx*2 - 2], 0x5c
je 0x14018f865
lea rbp, [rsp + 0x70]
mov rcx, rbp
mov dx, 0x5c
call fcn.1400bf6c0
mov al, byte [rbp + 0x17]
mov rcx, qword [rbp + 8]
movzx r14d, al
xorps xmm6, xmm6
lea r15, [rsp + 0x50]
movaps xmmword [r15], xmm6
test al, al
cmovs r14, rcx
mov qword [r15 + 0x10], 0
lea r12, [rsp + 0x4c]
mov rbp, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea r13, [rsp + 0x70]
mov dword [rsp + 0x4c], 0x104
mov edx, 0x104
mov rcx, r15
call fcn.1401627d0
mov rcx, qword [rsp + 0x90]
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
mov r8, rax
mov r9, r12
call rbp
test eax, eax
jne 0x14018f927
mov edx, dword [rsp + 0x4c]
mov rcx, r15
xor r8d, r8d
call fcn.1400edcba
mov rcx, r13
mov rdx, r14
xor r8d, r8d
call fcn.1400edcba
movzx r8d, byte [rsp + 0x67]
mov rdx, r15
test r8b, r8b
jns 0x14018f8fa
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov rcx, r13
call fcn.1400ebd2e
cmp byte [rsp + 0x87], 0
mov rdx, r13
jns 0x14018f914
mov rdx, qword [rsp + 0x70]
mov rcx, rbx
mov r8d, esi
call fcn.14018f6d0
test eax, eax
je 0x14018f890
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
mov rdx, rdi
mov r8d, esi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
mov ebp, eax
cmp byte [rsp + 0x67], 0
jns 0x14018f95a
mov rcx, qword [rsp + 0x50]
call fcn.140112038
cmp byte [rsp + 0x87], 0
jns 0x14018f715
mov rcx, qword [rsp + 0x70]
call fcn.140112038
jmp 0x14018f715
lea rcx, [rsp + 0x70]
call fcn.1401573b4
int3