Function at 0x140075940
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x18]
sub rsp, 0x118
mov rax, qword [0x140110980]
xor rax, rsp
mov qword [rbp], rax
mov rsi, r9
mov rbx, r8
mov r14d, edx
mov r15, rcx
mov rdi, qword [rbp + 0x80]
mov dword [rdi], 2
lea eax, [rdx - 2]
xor r13d, r13d
cmp eax, 1
ja 0x140075ba2
mov qword [rsp + 0x30], r13
mov r8d, edx
lea rdx, [rbp - 0x20]
call fcn.14006fe48
nop
lea r8d, [r13 + 1]
lea rdx, [0x1400e2758]
mov rcx, rax
call fcn.1400064b8
mov qword [rbp - 0x48], 7
mov qword [rbp - 0x50], r13
mov word [rbp - 0x60], r13w
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.1400066ac
nop
or r12, 0xffffffffffffffff
mov r9, r12
xor r8d, r8d
lea rdx, [0x140110cb0]
lea rcx, [rbp - 0x60]
call fcn.1400065c8
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.1400066ac
nop
lea r8d, [r13 + 1]
lea rdx, [0x1400e2758]
lea rcx, [rsp + 0x78]
call fcn.1400064b8
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.1400066ac
nop
mov r9, r12
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400065c8
lea r12d, [r13 + 7]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400066ac
nop
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rbx, qword [rsp + 0x38]
mov edx, r14d
mov rcx, r15
call fcn.14006fdfc
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x102
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov dword [rdi], eax
cmp qword [rsp + 0x50], 8
jb 0x140075ad4
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r13
mov word [rsp + 0x38], r13w
cmp qword [rsp + 0x70], 8
jb 0x140075afd
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x68], r13
mov word [rsp + 0x58], r13w
cmp qword [rbp - 0x70], 8
jb 0x140075b25
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x70], r12
mov qword [rbp - 0x78], r13
mov word [rsp + 0x78], r13w
cmp qword [rbp - 0x48], 8
jb 0x140075b4a
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x50], r13
mov word [rbp - 0x60], r13w
cmp qword [rbp - 8], 8
jb 0x140075b6e
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
cmp dword [rdi], r13d
jne 0x140075b98
cmp qword [rsi + 0x18], 8
jb 0x140075b7d
mov rsi, qword [rsi]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140075bc9
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
mov dword [rdi], eax
lea rcx, [rsp + 0x30]
call fcn.140006130
cmp dword [rdi], r13d
sete al
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1400c2d60
add rsp, 0x118
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.Attempting_to_use_an_invalid_handle.
lea rcx, [rbp - 0x20]
call fcn.1400061b0
nop
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x60]
call fcn.140005a44
lea rdx, [0x140106f30]
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll__CxxThrowException
int3