Function at 0x14001c944
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.140169460
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x74], r9d
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x68], rcx
xor ecx, ecx
mov edi, ecx
mov qword [rbp - 0x68], rcx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rcx
mov ecx, dword [rbp + reloc.ADVAPI32.dll_TraceEvent]
mov dword [rbp - 0x50], ecx
mov rcx, rax
call fcn.14001bd90
mov ebx, eax
test eax, eax
jns 0x14001c9b8
jmp 0x14001d0d3
cmp word [rsi], 0x7d
je 0x14001d0c3
mov eax, 1
mov dword [rsp + 0x70], eax
lea rdx, [0x140001b00]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
mov ebx, ecx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, [0x140001ad0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001ca04
test ebx, ebx
je 0x14001cad6
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001bd90
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001d0c3
cmp dword [rsp + 0x74], edx
je 0x14001cad6
mov qword [rbp - 0x80], rdx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x70], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x14001ca4d
cmp ax, 0x5c
je 0x14001ca54
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14001ca3b
jmp 0x14001ca5d
test rcx, rcx
jne 0x14001d040
lea rbx, [0x140003070]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001ca99
add rbx, 8
lea rax, [0x1400030d0]
cmp rbx, rax
jl 0x14001ca64
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14001b17c
xor ebx, ebx
cmp dword [rsp + 0x60], ebx
je 0x14001cad8
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001bd90
mov ebx, eax
test eax, eax
js 0x14001d0c3
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001c478
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001d0c3
jmp 0x14001cd06
xor ebx, ebx
lea rdx, [0x140001ae8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001cb09
mov dword [rsp + 0x70], ebx
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001bd90
mov ebx, eax
test eax, eax
js 0x14001d0c3
xor ebx, ebx
lea rdx, [0x140001ac8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001cc40
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x68]
call fcn.14001bd90
mov ebx, eax
test eax, eax
js 0x14001d0c3
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001bd90
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001d0c3
cmp word [rsi], 0x3d
jne 0x14001d071
cmp dword [rsp + 0x74], edx
je 0x14001cb9f
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x70], rdx
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
mov r9, rsi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x80]
mov rcx, qword [rsp + 0x68]
call fcn.14001bf3c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001d055
jmp 0x14001cd06
cmp dword [rbp + reloc.ADVAPI32.dll_TraceEvent], edx
jne 0x14001cc24
cmp dword [rsp + 0x70], edx
je 0x14001cc24
mov qword [rbp - 0x80], rdx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x70], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x80]
call fcn.14001b008
test eax, eax
jne 0x14001d057
mov rbx, qword [rbp - 0x80]
test rbx, rbx
jne 0x14001cbf9
lea r8, [0x1400019c8]
mov edx, 0x14ea
lea rcx, [0x1400019a8]
call fcn.1400a8be8
lea rdx, [rbp + 0x1d0]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14001cc16
cmp eax, 2
jne 0x14001d057
test rbx, rbx
je 0x14001cc24
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001c478
mov ebx, eax
test eax, eax
js 0x14001d0c3
jmp 0x14001c9b8
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x14001cc5a
cmp ax, 0x5c
je 0x14001cc61
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14001cc48
jmp 0x14001cc6a
test rcx, rcx
jne 0x14001d073
cmp dword [rsp + 0x74], ebx
je 0x14001cd60
mov r9d, 0x2001f
mov r8, rsi
mov rbx, qword [rsp + 0x78]
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14001b008
test eax, eax
je 0x14001ccc2
mov r9d, 0x20019
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14001b008
test eax, eax
je 0x14001ccc2
mov r8, rsi
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14001af54
test eax, eax
jne 0x14001d075
mov rdx, rsi
mov rdi, qword [rsp + 0x68]
mov rcx, rdi
call fcn.14001bd90
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001d089
cmp word [rsi], 0x3d
jne 0x14001cd02
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x68]
mov rcx, rdi
call fcn.14001bf3c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001d089
mov rdi, qword [rbp - 0x68]
cmp word [rsi], 0x7b
jne 0x14001c9b8
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], dx
jne 0x14001cd14
mov ecx, 1
cmp rax, rcx
jne 0x14001c9b8
mov dword [rsp + 0x20], edx
mov r9d, dword [rsp + 0x74]
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001c944
mov ebx, eax
test eax, eax
js 0x14001d0c3
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001bd90
jmp 0x14001cc31
mov ebx, dword [rbp + reloc.ADVAPI32.dll_TraceEvent]
test ebx, ebx
jne 0x14001cd87
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x68]
call fcn.14001b008
mov rdi, qword [rbp - 0x68]
jmp 0x14001cd8c
mov eax, 2
mov dword [rsp + 0x60], eax
test eax, eax
mov eax, 1
cmovne ebx, eax
mov dword [rbp + reloc.ADVAPI32.dll_TraceEvent], ebx
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.msvcrt.dll_wcsncpy_s]
test eax, eax
je 0x14001cdde
cmp eax, 0xc
je 0x14001d0a5
cmp eax, 0x16
je 0x14001d09a
cmp eax, 0x22
je 0x14001d09a
cmp eax, 0x50
jne 0x14001d08f
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001bd90
mov ebx, eax
test eax, eax
js 0x14001d0c3
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001c478
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001d0c3
cmp word [rsi], 0x7b
jne 0x14001ce75
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], dx
jne 0x14001ce18
mov ecx, 1
cmp rax, rcx
jne 0x14001ce75
mov eax, dword [rbp + reloc.ADVAPI32.dll_TraceEvent]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rdi
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001c944
mov ebx, eax
xor edx, edx
test eax, eax
jns 0x14001ce5c
cmp dword [rbp + reloc.ADVAPI32.dll_TraceEvent], edx
je 0x14001d0c3
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call fcn.14001bd90
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14001d0c3
mov ecx, dword [rbp - 0x50]
mov dword [rbp + reloc.ADVAPI32.dll_TraceEvent], ecx
mov eax, dword [rsp + 0x60]
cmp eax, 2
je 0x14001c9b8
test eax, eax
je 0x14001ce9c
test ecx, ecx
je 0x14001d0ba
jmp 0x14001c9b8
test ecx, ecx
je 0x14001cf72
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
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]
xor edx, edx
test eax, eax
je 0x14001cf08
lea r8, [0x14000190c]
mov edx, 0x428
lea rcx, [0x140001b30]
call fcn.1400a8be8
xor edx, edx
jmp 0x14001cf72
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
test eax, eax
je 0x14001cf72
lea rax, [0x140003070]
mov qword [rsp + 0x60], rax
mov rdx, qword [rax]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x14001c9b8
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x60], rax
lea rcx, [0x1400030d0]
cmp rax, rcx
jl 0x14001cf21
cmp dword [rsp + 0x70], edx
je 0x14001c9b8
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.14001b17c
mov rdi, qword [rbp - 0x68]
jmp 0x14001c9b8
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
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]
xor edx, edx
test eax, eax
je 0x14001cfda
lea r8, [0x14000190c]
mov edx, 0x428
lea rcx, [0x140001b30]
call fcn.1400a8be8
xor edx, edx
mov dword [rsp + 0x60], edx
jmp 0x14001cfe7
mov eax, edx
cmp dword [rsp + 0x60], edx
seta al
mov dword [rsp + 0x60], eax
test rdi, rdi
je 0x14001d005
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov edi, edx
mov qword [rbp - 0x68], rdx
test eax, eax
jne 0x14001d0b0
cmp dword [rsp + 0x70], edx
je 0x14001c9b8
cmp dword [rsp + 0x60], edx
jne 0x14001c9b8
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x70], rdx
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x80], rax
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.14001ae80
test eax, eax
jne 0x14001d0ba
jmp 0x14001c9b8
test rdi, rdi
je 0x14001d04e
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x14001d0d3
jmp 0x14001d0c3
mov ecx, eax
call fcn.14001ae34
mov ebx, eax
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14001d0c3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14001d0c3
jmp 0x14001d040
jmp 0x14001d040
mov ecx, eax
call fcn.14001ae34
mov ebx, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14001d0d1
jmp 0x14001d0cb
mov rdi, qword [rbp - 0x68]
jmp 0x14001d0c3
mov ecx, 0x80004005
call fcn.14001ad98
int3
mov ecx, 0x80070057
call fcn.14001ad98
int3
mov ecx, 0x8007000e
call fcn.14001ad98
int3
mov ecx, eax
call fcn.14001ae34
nop
jmp 0x14001d0d3
mov ecx, eax
call fcn.14001ae34
mov ebx, eax
test rdi, rdi
je 0x14001d0d1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.140168920
add rsp, 0x22e8
pop rdi
pop rsi
pop rbx
pop rbp
ret