Function at 0x140058de2
Capabilities:
Delete registry key

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov qword [rbp + 0xb8], rdx
mov qword [rbp + 0x98], 0
call fcn.1400bbfe0
mov rax, qword [rbp + 0xb0]
mov rdx, rax
lea rcx, [rbp + 0xb0]
call fcn.1400bc3a0
mov rdx, qword [rbp + 0xb8]
lea rax, [rbp + 0xb8]
mov rcx, rax
call fcn.1400bc3a0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x48], 0
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call fcn.140059b0f
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0xb8]
mov qword [rbp + 0x88], rax
lea rax, [0x140679d5c]
mov qword [rbp + 0x80], rax
mov rdx, qword [rbp + 0x88]
mov rax, qword [rbp + 0x80]
mov rcx, rax
call fcn.1400bc410
test eax, eax
je 0x140058fb9
mov eax, dword [0x1406a35dc]
test eax, eax
je 0x140058f7c
lea rdx, str.Advapi32.dll
mov rcx, 0xffffffffffffffff
call fcn.14008c058
mov qword [rbp + 0x10], rax
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140058f79
mov rax, qword [rbp - 0x40]
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call fcn.14008c0e0
mov qword [rbp + 8], rax
mov rax, qword [rbp + 8]
mov qword [rbp - 0x38], rax
mov rax, qword [0x1406a35c8]
mov qword [rbp], rax
mov rax, qword [0x1406a31b0]
mov qword [rbp - 8], rax
mov eax, dword [0x1406a3604]
or eax, 0xf003f
cdqe
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x38]
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
mov rdx, qword [rbp]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
call fcn.14008d810
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call fcn.14008c16c
mov qword [rbp - 0x20], rax
jmp 0x140058fb4
nop
jmp 0x140058fb4
nop
mov rax, qword [0x1406a35c8]
mov qword [rbp + 0x28], rax
mov rax, qword [0x1406a31b0]
mov qword [rbp + 0x20], rax
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rbp + 0x18], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x30], rax
jmp 0x1400590c4
jmp 0x1400590c4
nop
mov rax, qword [0x1406a35c8]
mov qword [rbp + 0x78], rax
lea rax, [rbp - 0x28]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0xb8]
mov rcx, rax
mov rdx, qword [rbp + 0x70]
mov rax, qword [rbp + 0x78]
mov r8, rdx
mov rdx, rax
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [rbp + 0x6c], eax
mov eax, dword [rbp + 0x6c]
cdqe
mov qword [rbp - 0x48], rax
mov eax, dword [0x1406a35dc]
test eax, eax
je 0x14005909c
lea rdx, str.Advapi32.dll
mov rcx, 0xffffffffffffffff
call fcn.14008c058
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x140059099
mov rax, qword [0x1406a31b0]
mov qword [rbp + 0x48], rax
mov eax, dword [0x1406a3604]
or eax, 0xf003f
cdqe
mov qword [rbp + 0x40], rax
mov rcx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x40]
mov r8, qword [rbp + 0x48]
mov qword [rsp + 0x28], 0
mov rdx, qword [rbp + 0x40]
mov qword [rsp + 0x20], rdx
mov r9, r8
mov r8, rcx
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call fcn.14008cd24
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call fcn.14008c16c
mov qword [rbp + 0x30], rax
jmp 0x1400590c4
nop
jmp 0x1400590c4
nop
mov rax, qword [0x1406a31b0]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp - 0x28]
mov rdx, qword [rbp + 0x60]
mov rcx, rax
call sub.ADVAPI32.dll_RegDeleteKeyW
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
test rax, rax
jne 0x1400590da
mov qword [rbp + 0x98], 1
jmp 0x1400590e6
nop
mov qword [rbp + 0x98], 0
mov rax, qword [rbp + 0xb8]
mov rcx, rax
call fcn.1400bc370
mov rax, qword [rbp + 0xb0]
mov rcx, rax
call fcn.1400bc370
mov rax, qword [rbp + 0x98]
add rsp, 0x120
pop rbp
ret