Function at 0x1400187d4
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21d8]
mov eax, 0x22d8
call fcn.140040840
sub rsp, rax
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
xor eax, eax
mov dword [rsp + 0x68], r9d
mov r14d, eax
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], eax
mov r15, r8
mov qword [rbp - 0x60], rax
mov rdi, rdx
mov qword [rsp + 0x70], r8
mov r12, rcx
call fcn.14001861c
mov ebx, eax
test eax, eax
js 0x140018c0b
cmp word [rdi], 0x7d
je 0x140018bfd
mov eax, 1
lea rdx, str.Delete
mov rcx, rdi
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
lea rdx, str.ForceRemove
test eax, eax
mov esi, ebx
mov rcx, rdi
sete sil
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140018881
test esi, esi
je 0x140018959
mov rdx, rdi
mov rcx, r12
call fcn.14001861c
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140018bfd
cmp dword [rsp + 0x68], edx
je 0x140018957
movzx eax, word [rdi]
mov rcx, rdi
mov qword [rsp + 0x78], rdx
mov dword [rbp - 0x80], edx
mov qword [rbp - 0x78], rdx
jmp 0x1400188c8
cmp ax, 0x5c
je 0x1400188cf
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400188b6
jmp 0x1400188d8
test rcx, rcx
jne 0x140018f67
lea rbx, [0x14005d520]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14001891c
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x1400188df
xor ebx, ebx
mov qword [rsp + 0x78], r15
mov rdx, rdi
mov dword [rbp - 0x80], ebx
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x78], rbx
call fcn.140018404
jmp 0x14001891e
xor ebx, ebx
test esi, esi
je 0x140018959
mov rdx, rdi
mov rcx, r12
call fcn.14001861c
mov ebx, eax
test eax, eax
js 0x140018bfd
mov rdx, rdi
mov rcx, r12
call fcn.140018280
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140018bfd
mov esi, dword [rsp + 0x68]
jmp 0x140018c6b
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140018985
mov rdx, rdi
mov rcx, r12
mov r13d, ebx
call fcn.14001861c
mov ebx, eax
test eax, eax
js 0x140018bfd
lea rdx, [0x14005d3f0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140018a86
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.14001861c
mov ebx, eax
test eax, eax
js 0x140018bfd
mov rdx, rdi
mov rcx, r12
call fcn.14001861c
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140018bfd
cmp word [rdi], 0x3d
jne 0x140018f67
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140018a07
mov dword [rbp - 0x80], edx
lea r8, [rbp + 0x1c0]
mov qword [rbp - 0x78], rdx
mov r9, rdi
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x78], r15
mov rcx, r12
call fcn.140017dec
jmp 0x140018c63
cmp dword [rbp + 0x2240], edx
jne 0x140018a6c
test r13d, r13d
je 0x140018a6c
mov qword [rsp + 0x78], rdx
lea rcx, [rsp + 0x78]
mov dword [rbp - 0x80], edx
mov r9d, 0x20006
mov qword [rbp - 0x78], rdx
xor r8d, r8d
mov rdx, r15
call fcn.140018324
test eax, eax
jne 0x140018f45
mov rsi, qword [rsp + 0x78]
lea rdx, [rbp + 0x1c0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140018f2e
test rsi, rsi
je 0x140018a6c
mov rcx, rsi
call qword [0x140057c38]
mov rdx, rdi
mov rcx, r12
call fcn.140018280
mov ebx, eax
test eax, eax
js 0x140018bfd
jmp 0x140018839
movzx eax, word [rdi]
mov rcx, rdi
jmp 0x140018aa0
cmp ax, 0x5c
je 0x140018aa7
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140018a8e
jmp 0x140018ab0
test rcx, rcx
jne 0x140018f67
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140018cbf
mov r13d, 0x2001f
lea rcx, [rbp - 0x70]
mov r9d, r13d
mov r8, rdi
mov rdx, r15
call fcn.140018324
xor r14d, r14d
test eax, eax
je 0x140018c30
lea r9d, [r13 - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140018324
test eax, eax
je 0x140018c30
mov rbx, qword [rbp - 0x60]
mov qword [rsp + 0x60], r14
test rbx, rbx
je 0x140018b93
cmp qword [rbx], r14
je 0x140018b86
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edx, edx
test rax, rax
jne 0x140018b2d
lea eax, [rdx + 1]
jmp 0x140018bc9
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov r10, rax
test rax, rax
je 0x140018b8c
mov rax, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x50], rcx
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rdi
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ecx
mov rcx, r15
call r10
jmp 0x140018bc7
cmp dword [rbx + 8], r14d
jne 0x140018b93
mov eax, 1
jmp 0x140018bc7
lea rax, [rbp - 0x58]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov rdx, rdi
mov qword [rsp + 0x38], rax
mov rcx, r15
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x140018f71
mov rcx, qword [rbp - 0x70]
mov eax, edx
test rcx, rcx
je 0x140018be4
call qword [0x140057c38]
xor edx, edx
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], edx
test eax, eax
je 0x140018c34
mov ecx, eax
call fcn.14001860c
mov ebx, eax
test r14, r14
je 0x140018c0b
mov rcx, r14
call qword [0x140057c38]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.1400408d0
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rbp - 0x70]
mov rdx, rdi
mov rcx, r12
call fcn.14001861c
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140018bfd
cmp word [rdi], 0x3d
jne 0x140018c6b
mov r9, rdi
lea rdx, [rbp - 0x70]
xor r8d, r8d
mov rcx, r12
call fcn.140017dec
mov r14, qword [rbp - 0x70]
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140018bfd
cmp word [rdi], 0x7b
jne 0x140018839
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140018c79
mov ecx, 1
cmp rax, rcx
jne 0x140018839
mov dword [rsp + 0x20], edx
mov r9d, esi
mov rdx, rdi
mov r8, r14
mov rcx, r12
call fcn.1400187d4
mov ebx, eax
test eax, eax
js 0x140018bfd
mov rdx, rdi
mov rcx, r12
call fcn.14001861c
jmp 0x140018a77
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x140018ce6
mov r9d, 0x20019
lea rcx, [rbp - 0x70]
mov r8, rdi
mov rdx, r15
call fcn.140018324
mov r14, qword [rbp - 0x70]
mov esi, eax
jmp 0x140018ceb
mov esi, 2
mov eax, 1
lea rcx, [rbp - 0x50]
test esi, esi
mov r15d, ebx
mov r8, rdi
mov edx, 0x104
cmovne r15d, eax
or r9, 0xffffffffffffffff
call fcn.1400464d0
test eax, eax
je 0x140018d36
cmp eax, 0xc
je 0x140018f81
cmp eax, 0x16
je 0x140018f97
cmp eax, 0x22
je 0x140018f97
cmp eax, 0x50
jne 0x140018f8c
mov rdx, rdi
mov rcx, r12
call fcn.14001861c
mov ebx, eax
test eax, eax
js 0x140018bfd
mov rdx, rdi
mov rcx, r12
call fcn.140018280
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140018bfd
cmp word [rdi], 0x7b
jne 0x140018dbb
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140018d6c
mov ecx, 1
cmp rax, rcx
jne 0x140018dbb
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.1400187d4
mov ebx, eax
test eax, eax
jns 0x140018da4
test r15d, r15d
je 0x140018bfd
mov rdx, rdi
mov rcx, r12
call fcn.14001861c
xor edx, edx
mov ebx, eax
test eax, eax
js 0x140018bfd
cmp esi, 2
je 0x140018dd0
test esi, esi
je 0x140018dda
cmp dword [rbp + 0x2240], edx
je 0x140018f7a
mov r15, qword [rsp + 0x70]
jmp 0x140018839
cmp dword [rbp + 0x2240], edx
je 0x140018e7b
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
xor r9d, r9d
mov qword [rsp + 0x48], rdx
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov rcx, r14
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x60], edx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x140018e7b
cmp dword [rsp + 0x60], edx
jbe 0x140018e7b
lea rsi, [0x14005d520]
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140018dd0
add rsi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rsi, rax
jl 0x140018e3b
test r13d, r13d
je 0x140018dd0
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.140018404
mov r14, qword [rbp - 0x70]
jmp 0x140018dd0
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
xor r9d, r9d
mov qword [rsp + 0x48], rdx
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov rcx, r14
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x60], edx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x140018ecd
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
test r14, r14
je 0x140018ee6
mov rcx, r14
call qword [0x140057c38]
xor edx, edx
mov r14d, edx
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], edx
test eax, eax
jne 0x140018bf4
mov r15, qword [rsp + 0x70]
test r13d, r13d
je 0x140018839
test esi, esi
jne 0x140018839
mov dword [rbp - 0x80], edx
lea rcx, [rsp + 0x78]
mov qword [rbp - 0x78], rdx
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x78], r15
call fcn.140018510
test eax, eax
jne 0x140018bf4
jmp 0x140018839
mov ecx, eax
call fcn.14001860c
mov ebx, eax
test rsi, rsi
je 0x140018bfd
mov rcx, rsi
jmp 0x140018f5c
mov ecx, eax
call fcn.14001860c
mov rcx, qword [rsp + 0x78]
mov ebx, eax
test rcx, rcx
je 0x140018bfd
call qword [0x140057c38]
jmp 0x140018bfd
mov ebx, 0x80020009
jmp 0x140018bfd
mov r14, qword [rbp - 0x70]
jmp 0x140018bf4
mov ecx, esi
jmp 0x140018bf6
mov ecx, 0x8007000e
call fcn.140002198
int3
mov ecx, 0x80004005
call fcn.140002198
int3
mov ecx, 0x80070057
call fcn.140002198
int3