Function at 0x14020638c
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x1405420e0]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rbx, rcx
lea r8, [0x1403ce9d8]
xor esi, esi
lea rcx, [rbp - 0x49]
mov qword [rbp - 0x71], rsi
mov rdi, rdx
call fcn.140067914
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1402063d7
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140068814
xorps xmm0, xmm0
lea rcx, [rbp - 0x49]
movdqu xmmword [rbp - 0x59], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x59], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
call fcn.140055f70
lea rdx, [rbp - 0x71]
lea rcx, [rbp - 0x69]
call fcn.1402072ec
mov dword [rbp - 0x79], eax
test eax, eax
je 0x1402064da
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402064c4
cmp qword [rbp - 0x51], 8
lea rax, str.Could_not_open_the_registry_key
mov qword [rbp - 9], rax
lea rdx, [0x1403cb630]
lea rax, [rbp - 0x79]
mov qword [rbp - 1], 0x40
mov qword [rbp + 7], rax
mov rcx, rsi
lea rax, [rbp - 0x69]
mov qword [rbp + 0xf], 4
cmovae rax, qword [rbp - 0x69]
test rax, rax
je 0x14020648d
mov rdx, rax
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], si
jne 0x140206484
lea eax, [rcx*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140482036]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
mov eax, dword [rbp - 0x79]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14020669a
mov rcx, qword [rbp - 0x71]
call qword [sym.imp.ntdll.dll_NtDeleteKey]
nop dword [rax + rax]
mov dword [rbp - 0x75], eax
test eax, eax
je 0x1402065da
cmp eax, 0xc0000034
je 0x1402065da
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1402065ce
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_delete_registry_subkey
mov qword [rbp - 9], rax
lea rax, [rbp - 0x75]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x42
mov qword [rbp + 0xf], 4
jb 0x140206540
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x1403cb630]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x140206565
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x14020655c
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0x1f], eax
mov qword [rbp + 0x17], r8
mov dword [rbp + 0x23], esi
jb 0x140206580
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x140206597
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x14020658e
lea eax, [rax*2 + 2]
mov qword [rbp + 0x27], rdx
mov dword [rbp + 0x2f], eax
mov dword [rbp + 0x33], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1404820a7]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001208
mov ebx, dword [rbp - 0x75]
bts ebx, 0x1c
jmp 0x14020669a
call fcn.1400550c0
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x140206698
cmp qword [rbx + 0x18], 8
lea rax, str.Deleted_registry_subkey
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x30
jb 0x14020660a
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x1403cb630]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x14020662f
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x140206626
cmp qword [rdi + 0x18], 8
lea eax, [rax*2 + 2]
mov dword [rbp + 0xf], eax
mov qword [rbp + 7], r8
mov dword [rbp + 0x13], esi
jb 0x14020664a
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x140206661
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x140206658
lea eax, [rax*2 + 2]
mov qword [rbp + 0x17], rdx
mov dword [rbp + 0x1f], eax
mov dword [rbp + 0x23], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x140482070]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001208
mov ebx, esi
lea rcx, [rbp - 0x69]
call fcn.140055f70
mov rcx, qword [rbp - 0x71]
test rcx, rcx
je 0x1402066b8
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.140356560
mov rbx, qword [rsp + 0x120]
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret