Function at 0x140006d80
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x10e8]
mov eax, 0x11e8
call fcn.14001b970
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x140041480]
xor rax, rsp
mov qword [rbp + 0x10d0], rax
mov dword [rsp + 0x74], r9d
mov qword [rbp - 0x70], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor edi, edi
mov qword [rbp - 0x68], rdi
and dword [rbp - 0x60], edi
and qword [rbp - 0x58], rdi
mov ecx, dword [rbp + 0x1130]
mov dword [rbp - 0x50], ecx
mov rcx, rax
call fcn.14000384c
mov ebx, eax
test eax, eax
jns 0x140006df0
jmp 0x1400074cf
cmp byte [rsi], 0x7d
je 0x1400074bf
mov eax, 1
mov dword [rsp + 0x70], eax
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140006e39
test ebx, ebx
je 0x140006f0f
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000384c
mov ebx, eax
test eax, eax
js 0x1400074bf
cmp dword [rsp + 0x74], 0
je 0x140006f0f
and qword [rsp + 0x78], 0
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov rcx, rsi
mov al, byte [rsi]
jmp 0x140006e80
cmp al, 0x5c
je 0x140006e86
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140006e71
jmp 0x140006e8f
test rcx, rcx
jne 0x140007435
lea rbx, [0x140031a30]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140006ed5
add rbx, 8
lea rax, str.RegOpenKeyTransactedA
cmp rbx, rax
jl 0x140006e96
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140003f48
cmp dword [rsp + 0x60], 0
je 0x140006f0f
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000384c
mov ebx, eax
test eax, eax
js 0x1400074bf
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1400039a0
mov ebx, eax
test eax, eax
js 0x1400074bf
jmp 0x140007133
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140006f3e
and dword [rsp + 0x70], eax
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000384c
mov ebx, eax
test eax, eax
js 0x1400074bf
lea rdx, [0x1400319b4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14000705c
lea rdx, [rbp + 0xd0]
mov rcx, qword [rsp + 0x68]
call fcn.14000384c
mov ebx, eax
test eax, eax
js 0x1400074bf
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000384c
mov ebx, eax
test eax, eax
js 0x1400074bf
cmp byte [rsi], 0x3d
jne 0x14000746a
cmp dword [rsp + 0x74], 0
je 0x140006fd2
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov r9, rsi
lea r8, [rbp + 0xd0]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.14000684c
mov ebx, eax
test eax, eax
js 0x14000744d
jmp 0x140007133
cmp dword [rbp + 0x1130], 0
jne 0x140007040
cmp dword [rsp + 0x70], 0
je 0x140007040
and qword [rsp + 0x78], 0
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.1400034dc
test eax, eax
jne 0x14000744f
lea rdx, [rbp + 0xd0]
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x140007032
cmp eax, 2
jne 0x14000744f
test rbx, rbx
je 0x140007040
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1400039a0
mov ebx, eax
test eax, eax
js 0x1400074bf
jmp 0x140006df0
mov rcx, rsi
mov al, byte [rsi]
jmp 0x140007072
cmp al, 0x5c
je 0x140007078
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140007063
jmp 0x140007081
test rcx, rcx
jne 0x14000746c
cmp dword [rsp + 0x74], 0
je 0x140007188
mov r9d, 0x2001f
mov r8, rsi
mov rbx, qword [rbp - 0x70]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.1400034dc
xor edi, edi
test eax, eax
je 0x1400070f4
mov r9d, 0x20019
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.1400034dc
test eax, eax
je 0x1400070f4
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.1400033e8
test eax, eax
jne 0x14000746e
mov rdx, rsi
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call fcn.14000384c
mov ebx, eax
test eax, eax
js 0x140007482
cmp byte [rsi], 0x3d
jne 0x14000712f
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.14000684c
mov ebx, eax
test eax, eax
js 0x140007482
mov rdi, qword [rbp - 0x68]
cmp byte [rsi], 0x7b
jne 0x140006df0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 1
cmp eax, ecx
jne 0x140006df0
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x74]
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140006d80
mov ebx, eax
test eax, eax
js 0x1400074bf
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000384c
jmp 0x14000704d
mov ebx, dword [rbp + 0x1130]
test ebx, ebx
jne 0x1400071ae
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x68]
call fcn.1400034dc
mov rdi, qword [rbp - 0x68]
jmp 0x1400071b3
mov eax, 2
mov dword [rsp + 0x60], eax
test eax, eax
mov eax, 1
cmovne ebx, eax
mov dword [rbp + 0x1130], ebx
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14001b670
test eax, eax
je 0x140007204
cmp eax, 0xc
je 0x14000749e
cmp eax, 0x16
je 0x140007493
cmp eax, 0x22
je 0x140007493
cmp eax, 0x50
jne 0x140007488
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000384c
mov ebx, eax
test eax, eax
js 0x1400074bf
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.1400039a0
mov ebx, eax
test eax, eax
js 0x1400074bf
cmp byte [rsi], 0x7b
jne 0x140007290
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, 1
cmp eax, ecx
jne 0x140007290
mov eax, dword [rbp + 0x1130]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.140006d80
mov ebx, eax
test eax, eax
jns 0x140007279
cmp dword [rbp + 0x1130], 0
je 0x1400074bf
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14000384c
mov ebx, eax
test eax, eax
js 0x1400074bf
mov ecx, dword [rbp - 0x50]
mov dword [rbp + 0x1130], ecx
mov eax, dword [rsp + 0x60]
cmp eax, 2
je 0x140006df0
test eax, eax
je 0x1400072b7
test ecx, ecx
je 0x1400074a9
jmp 0x140006df0
test ecx, ecx
je 0x140007374
and dword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140007374
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x140007374
lea rax, [0x140031a30]
mov qword [rsp + 0x60], rax
mov rdx, qword [rax]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140006df0
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x60], rax
lea rcx, str.RegOpenKeyTransactedA
cmp rax, rcx
jl 0x140007324
cmp dword [rsp + 0x70], 0
je 0x140006df0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.140003f48
mov rdi, qword [rbp - 0x68]
jmp 0x140006df0
and dword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1400073c9
and dword [rsp + 0x60], 0
jmp 0x1400073d6
xor ecx, ecx
cmp dword [rsp + 0x60], ecx
seta cl
mov dword [rsp + 0x60], ecx
xor eax, eax
test rdi, rdi
je 0x1400073ec
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov qword [rbp - 0x68], rdi
and dword [rbp - 0x60], 0
test eax, eax
jne 0x1400074b4
cmp dword [rsp + 0x70], eax
je 0x140006df0
cmp dword [rsp + 0x60], eax
jne 0x140006df0
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x78], rax
and dword [rbp - 0x80], 0
and qword [rbp - 0x78], 0
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.140003350
test eax, eax
jne 0x1400074a9
jmp 0x140006df0
test rdi, rdi
je 0x140007443
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1400074cf
jmp 0x1400074bf
mov ecx, eax
call fcn.140003040
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400074bf
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400074bf
jmp 0x140007435
jmp 0x140007435
mov ecx, eax
call fcn.140003040
mov ebx, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400074cd
jmp 0x1400074c7
mov rdi, qword [rbp - 0x68]
jmp 0x1400074bf
mov ecx, 0x80004005
call fcn.140003000
int3
mov ecx, 0x80070057
call fcn.140003000
int3
mov ecx, 0x8007000e
call fcn.140003000
int3
mov ecx, eax
call fcn.140003040
mov ebx, eax
jmp 0x1400074bf
mov ecx, eax
call fcn.140003040
mov ebx, eax
jmp 0x1400074bf
test rdi, rdi
je 0x1400074cd
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10d0]
xor rcx, rsp
call fcn.14001b940
add rsp, 0x11e8
pop rdi
pop rsi
pop rbx
pop rbp
ret