Function at 0x1401c6f70
Capabilities:
Delete registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov rax, qword [0x14044e770]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
lea rdx, [rbp - 0x41]
mov rcx, rdi
mov qword [rbp - 0x41], rsi
call fcn.1401c760c
mov dword [rbp - 0x49], eax
test eax, eax
je 0x1401c7061
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401c704b
cmp qword [rdi + 0x18], 8
lea rax, str.Could_not_open_the_registry_key
mov qword [rbp - 9], rax
lea rax, [rbp - 0x49]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x40
mov qword [rbp + 0xf], 4
jb 0x1401c6ff5
mov rdi, qword [rdi]
lea rdx, [0x14030cae0]
mov rcx, rsi
test rdi, rdi
je 0x1401c7014
mov rdx, rdi
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rdi + rcx*2], si
jne 0x1401c700b
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, [0x14039bacc]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov eax, dword [rbp - 0x49]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1401c72d4
cmp qword [rbx + 0x18], 8
mov rdx, rbx
jb 0x1401c706e
mov rdx, qword [rbx]
lea rcx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_RtlCreateUnicodeString]
test al, al
jne 0x1401c710c
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401c7102
cmp qword [rbx + 0x18], 8
lea rax, str.Could_not_create_a_UNICODE_STRING_to_hold_valueName
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x68
jb 0x1401c70ac
mov rbx, qword [rbx]
lea rdx, [0x14030cae0]
mov rcx, rsi
test rbx, rbx
je 0x1401c70cb
mov rdx, rbx
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rbx + rcx*2], si
jne 0x1401c70c2
lea eax, [rcx*2 + 2]
mov qword [rbp + 7], rdx
mov dword [rbp + 0xf], eax
mov dword [rbp + 0x13], esi
lea rax, [rbp - 0x29]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x14039ba6c]
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov rcx, r10
call fcn.140001158
mov ebx, 0x80070057
jmp 0x1401c72ca
mov rcx, qword [rbp - 0x41]
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_NtDeleteValueKey]
mov dword [rbp - 0x45], eax
test eax, eax
je 0x1401c720a
cmp eax, 0xc0000034
je 0x1401c720a
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 3
jbe 0x1401c71fe
cmp qword [rbx + 0x18], 8
lea rax, str.Failed_to_delete_registry_value
mov qword [rbp - 9], rax
lea rax, [rbp - 0x45]
mov qword [rbp + 7], rax
mov qword [rbp - 1], 0x40
mov qword [rbp + 0xf], 4
jb 0x1401c7170
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x14030cae0]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x1401c7195
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401c718c
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 0x1401c71b0
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x1401c71c7
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401c71be
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, [0x14039ba2b]
xor r8d, r8d
mov dword [rsp + 0x20], 6
mov rcx, r10
call fcn.140001158
mov ebx, dword [rbp - 0x45]
bts ebx, 0x1c
jmp 0x1401c72ca
call fcn.14004acb4
mov r10, qword [rax + 8]
cmp dword [r10], 4
jbe 0x1401c72c8
cmp qword [rbx + 0x18], 8
lea rax, str.Delete_registry_value
mov qword [rbp - 9], rax
mov qword [rbp - 1], 0x2c
jb 0x1401c723a
mov rbx, qword [rbx]
or rcx, 0xffffffffffffffff
lea rdx, [0x14030cae0]
mov r8, rdx
mov rax, rsi
test rbx, rbx
je 0x1401c725f
mov r8, rbx
mov rax, rcx
inc rax
cmp word [rbx + rax*2], si
jne 0x1401c7256
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 0x1401c727a
mov rdi, qword [rdi]
mov rax, rsi
test rdi, rdi
je 0x1401c7291
mov rdx, rdi
mov rax, rcx
inc rax
cmp word [rdi + rax*2], si
jne 0x1401c7288
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, [0x14039b9f1]
xor r8d, r8d
mov dword [rsp + 0x20], 5
mov rcx, r10
call fcn.140001158
mov ebx, esi
lea rcx, [rbp - 0x39]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x1401c72e3
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1402ae860
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret