Function at 0x140066070
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2228]
mov eax, 0x2328
call fcn.14007eb70
sub rsp, rax
mov rax, qword [0x1400dbc58]
xor rax, rsp
mov qword [rbp + 0x2210], rax
mov dword [rsp + 0x68], r9d
mov qword [rbp - 0x78], r8
mov rdi, rdx
mov r12, rcx
xor esi, esi
mov r14d, esi
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], esi
mov r15d, esi
mov qword [rbp - 0x80], rsi
call fcn.14006539c
mov ebx, eax
test eax, eax
js 0x14006656e
cmp word [rdi], 0x7d
je 0x14006656e
mov r13d, 1
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov esi, ebx
test eax, eax
sete sil
lea rdx, [0x1400c52b0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14006611c
test esi, esi
je 0x140066206
mov rdx, rdi
mov rcx, r12
call fcn.14006539c
mov ebx, eax
test eax, eax
js 0x14006656e
xor ebx, ebx
cmp dword [rsp + 0x68], ebx
je 0x140066206
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140066162
cmp ax, 0x5c
je 0x140066169
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140066150
jmp 0x140066172
test rcx, rcx
jne 0x140066937
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400661c3
add rbx, 8
lea rax, str._evtname
cmp rbx, rax
jl 0x140066179
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x70], rax
xor ebx, ebx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.14006593c
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
jmp 0x1400661c5
xor ebx, ebx
test esi, esi
je 0x140066203
mov rdx, rdi
mov rcx, r12
call fcn.14006539c
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x140066944
mov rdx, rdi
mov rcx, r12
call fcn.1400669b0
mov ebx, eax
mov dword [rbp - 0x68], r15d
test eax, eax
js 0x14006656e
mov esi, dword [rsp + 0x68]
jmp 0x1400665e4
mov dword [rbp - 0x68], ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140066232
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.14006539c
mov ebx, eax
test eax, eax
js 0x14006656e
lea rdx, [0x1400c52a8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140066378
lea rdx, [rbp + 0x210]
mov rcx, r12
call fcn.14006539c
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x14006656e
mov rdx, rdi
mov rcx, r12
call fcn.14006539c
mov ebx, eax
test eax, eax
js 0x14006656e
cmp word [rdi], 0x3d
jne 0x14006693a
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x1400662d6
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], r15
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], r15
mov r9, rdi
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x50]
mov rcx, r12
call fcn.140064560
mov ebx, eax
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r15d
mov qword [rbp - 0x40], r15
mov dword [rbp - 0x48], r15d
jmp 0x1400665e0
cmp dword [rbp + 0x2290], r15d
jne 0x14006635e
test r13d, r13d
je 0x14006635e
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], r15d
mov qword [rbp - 0x10], r15
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006696a
mov dword [rbp - 0x18], r15d
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x20], rsi
mov dword [rbp - 0x18], r15d
lea rdx, [rbp + 0x210]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14006694d
test rsi, rsi
je 0x14006635a
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], r15d
mov rdx, rdi
mov rcx, r12
call fcn.1400669b0
mov ebx, eax
test eax, eax
js 0x14006656e
jmp 0x140066924
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140066392
cmp ax, 0x5c
je 0x140066399
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140066380
jmp 0x1400663a2
test rcx, rcx
jne 0x14006693a
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140066636
xor r13d, r13d
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x60]
mov rbx, qword [rbp - 0x78]
test r15, r15
je 0x1400663e4
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140065c74
jmp 0x1400663fe
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140066434
mov eax, r13d
test r14, r14
je 0x140066418
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r13d
test eax, eax
je 0x1400665ac
mov qword [rsp + 0x60], r13
lea rax, [rsp + 0x60]
test r15, r15
je 0x140066463
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140065c74
jmp 0x14006647d
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400664b3
mov eax, r13d
test r14, r14
je 0x140066497
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r13
mov dword [rsp + 0x78], r13d
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r13d
test eax, eax
je 0x1400665ac
mov qword [rsp + 0x60], r13
lea rax, [rbp - 0x58]
test r15, r15
je 0x1400664fd
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 0x2001f
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140065aa8
xor r15d, r15d
jmp 0x140066533
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140066565
mov eax, r15d
test r14, r14
je 0x14006654d
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r15d
test eax, eax
je 0x1400665af
mov ecx, eax
call fcn.140064bc0
mov ebx, eax
xor edi, edi
test r14, r14
je 0x140066583
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], edi
mov eax, ebx
mov rcx, qword [rbp + 0x2210]
xor rcx, rsp
call fcn.14007e630
add rsp, 0x2328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r15d, r15d
mov rdx, rdi
mov rcx, r12
call fcn.14006539c
mov ebx, eax
test eax, eax
js 0x14006656e
cmp word [rdi], 0x3d
jne 0x1400665e4
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.140064560
mov ebx, eax
mov r14, qword [rsp + 0x70]
test eax, eax
js 0x14006656e
cmp word [rdi], 0x7b
jne 0x140066924
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1400665f2
cmp rax, 1
jne 0x140066924
mov dword [rsp + 0x20], r15d
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140066070
mov ebx, eax
test eax, eax
js 0x14006656e
mov rdx, rdi
mov rcx, r12
call fcn.14006539c
jmp 0x140066369
mov ebx, dword [rbp + 0x2290]
xor eax, eax
test ebx, ebx
jne 0x1400666c6
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x60]
test r15, r15
je 0x140066676
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, qword [rbp - 0x78]
mov rcx, r15
call fcn.140065c74
jmp 0x140066691
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor eax, eax
test esi, esi
jne 0x1400666cb
mov esi, eax
test r14, r14
je 0x1400666b2
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], eax
jmp 0x1400666cb
mov esi, 2
mov r15d, 1
test esi, esi
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x140066715
cmp eax, 0xc
je 0x14006698e
cmp eax, 0x16
je 0x1400669a4
cmp eax, 0x22
je 0x1400669a4
cmp eax, 0x50
jne 0x140066999
mov rdx, rdi
mov rcx, r12
call fcn.14006539c
mov ebx, eax
test eax, eax
js 0x14006656e
mov rdx, rdi
mov rcx, r12
call fcn.1400669b0
mov ebx, eax
xor ecx, ecx
test eax, eax
js 0x14006656e
cmp word [rdi], 0x7b
jne 0x140066799
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], cx
jne 0x14006674b
cmp rax, 1
jne 0x140066799
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.140066070
mov ebx, eax
test eax, eax
jns 0x14006677f
test r15d, r15d
je 0x14006656e
mov rdx, rdi
mov rcx, r12
call fcn.14006539c
mov ebx, eax
xor r15d, r15d
test eax, eax
js 0x14006656e
jmp 0x14006679c
xor r15d, r15d
cmp esi, 2
je 0x140066924
test esi, esi
je 0x1400667bd
cmp dword [rbp + 0x2290], r15d
jne 0x140066924
mov ecx, esi
jmp 0x140066567
cmp dword [rbp + 0x2290], r15d
je 0x140066865
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x140066865
cmp dword [rsp + 0x60], r15d
jbe 0x140066865
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140066924
add rsi, 8
lea rax, str._evtname
cmp rsi, rax
jl 0x14006681f
test r13d, r13d
je 0x140066924
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.14006593c
mov r14, qword [rsp + 0x70]
jmp 0x140066924
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov esi, r15d
test eax, eax
jne 0x1400668b8
cmp dword [rsp + 0x60], r15d
seta sil
mov eax, r15d
test r14, r14
je 0x1400668d1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, r15
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x78], r15d
test eax, eax
jne 0x140066565
test r13d, r13d
je 0x140066924
test esi, esi
jne 0x140066924
mov qword [rbp - 0x38], r15
mov dword [rbp - 0x30], r15d
mov qword [rbp - 0x28], r15
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x38], rax
mov dword [rbp - 0x30], r15d
mov qword [rbp - 0x28], r15
lea rdx, [rbp]
lea rcx, [rbp - 0x38]
call fcn.140064cfc
mov qword [rbp - 0x38], r15
mov dword [rbp - 0x30], r15d
mov qword [rbp - 0x28], r15
test eax, eax
jne 0x14006697c
mov dword [rbp - 0x30], r15d
cmp word [rdi], 0x7d
je 0x14006656e
mov r15, qword [rbp - 0x80]
jmp 0x1400660e0
mov dword [rbp - 0x68], ebx
mov ebx, 0x80020009
jmp 0x14006656e
mov dword [rbp - 0x68], r15d
jmp 0x14006656e
mov ecx, eax
call fcn.140064bc0
mov ebx, eax
test rsi, rsi
je 0x140066973
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x20], r15
jmp 0x140066973
mov ecx, eax
call fcn.140064bc0
mov ebx, eax
mov dword [rbp - 0x18], r15d
jmp 0x14006656e
mov ecx, eax
call fcn.140064bc0
mov ebx, eax
mov dword [rbp - 0x30], r15d
jmp 0x14006656e
mov ecx, 0x8007000e
call fcn.140006c40
int3
mov ecx, 0x80004005
call fcn.140006c40
int3
mov ecx, 0x80070057
call fcn.140006c40
int3