Function at 0x18001de40
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.1800231b0
sub rsp, rax
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov rax, qword [0x1800960d0]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x60], r9d
mov rsi, r8
mov qword [rsp + 0x68], r8
mov r15, rdx
mov r14, rcx
xor edi, edi
mov r12d, edi
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x70], edi
mov qword [rbp - 0x68], rdi
call fcn.18001cf00
mov ebx, eax
test eax, eax
js 0x18001e5b3
cmp word [r15], 0x7d
je 0x18001e5b3
mov ecx, 1
mov r13d, ecx
lea rdx, str.Delete
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18001def2
test edi, edi
je 0x18001dfdc
mov rdx, r15
mov rcx, r14
call fcn.18001cf00
mov ebx, eax
test eax, eax
js 0x18001e5b3
cmp dword [rsp + 0x60], 0
je 0x18001dfdc
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], rax
mov rcx, r15
movzx eax, word [r15]
test ax, ax
je 0x18001df52
nop dword [rax]
cmp ax, 0x5c
je 0x18001df49
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x18001df30
jmp 0x18001df52
test rcx, rcx
jne 0x18001e8b6
lea rbx, str.AppID
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18001dfa2
add rbx, 8
lea rax, [0x180072630]
cmp rbx, rax
jl 0x18001df60
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], 0
mov qword [rbp - 0x80], 0
mov rdx, r15
lea rcx, [rsp + 0x70]
call fcn.18001d610
test edi, edi
je 0x18001dfdc
mov rdx, r15
mov rcx, r14
call fcn.18001cf00
mov ebx, eax
test eax, eax
js 0x18001e5b3
mov rdx, r15
mov rcx, r14
call fcn.18001e900
mov ebx, eax
test eax, eax
js 0x18001e5b3
mov edi, dword [rsp + 0x60]
xor r13d, r13d
jmp 0x18001e621
lea rdx, str.NoRemove
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18001e008
xor r13d, r13d
mov rdx, r15
mov rcx, r14
call fcn.18001cf00
mov ebx, eax
test eax, eax
js 0x18001e5b3
lea rdx, [0x180072580]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18001e43b
lea rbx, [rbp + 0x1d0]
nop word [rax + rax]
mov rdi, qword [r14]
movzx eax, word [rdi]
cmp ax, 9
jb 0x18001e05c
cmp ax, 0xa
jbe 0x18001e04e
cmp ax, 0xd
je 0x18001e04e
cmp ax, 0x20
jne 0x18001e05c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x18001e030
xor ecx, ecx
cmp cx, ax
je 0x18001e8b6
mov edx, 0x27
cmp dx, ax
jne 0x18001e150
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov rdx, rax
mov qword [r14], rax
movzx eax, word [rax]
xor edi, edi
cmp di, ax
je 0x18001e12f
mov ecx, 0x27
cmp cx, ax
jne 0x18001e0b3
mov rcx, rdx
call qword [sym.imp.USER32.dll_CharNextW]
mov ecx, 0x27
cmp cx, word [rax]
jne 0x18001e12f
mov rdi, qword [r14]
mov eax, 0x27
cmp ax, word [rdi]
jne 0x18001e0cf
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
mov rdi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov rdx, rax
mov qword [r14], rax
mov rcx, rax
sub rcx, rdi
sar rcx, 1
lea rax, [rcx + 1]
lea rax, [rbx + rax*2]
lea r8, [rbp + 0x21d0]
cmp rax, r8
jae 0x18001e8b6
test ecx, ecx
jle 0x18001e121
sub rdi, rbx
mov ecx, ecx
nop dword [rax + rax]
movzx eax, word [rbx + rdi]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x18001e110
movzx eax, word [rdx]
xor edi, edi
cmp di, ax
jne 0x18001e092
mov rcx, qword [r14]
cmp di, word [rcx]
je 0x18001e8b6
mov word [rbx], di
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x18001e1d2
cmp ax, 0x20
ja 0x18001e169
movzx eax, ax
movabs rdx, 0x100002600
bt rdx, rax
jb 0x18001e1cf
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [rbp + 0x21d0]
cmp rcx, rax
jae 0x18001e8b6
test edx, edx
jle 0x18001e1c1
sub rdi, rbx
mov ecx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x18001e1b0
movzx eax, word [r8]
mov rdi, r8
xor ecx, ecx
cmp cx, ax
jne 0x18001e150
mov word [rbx], cx
mov rbx, r15
nop word [rax + rax]
mov rdi, qword [r14]
movzx eax, word [rdi]
cmp ax, 9
jb 0x18001e20c
cmp ax, 0xa
jbe 0x18001e1fe
cmp ax, 0xd
je 0x18001e1fe
cmp ax, 0x20
jne 0x18001e20c
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
jmp 0x18001e1e0
xor ecx, ecx
cmp cx, ax
je 0x18001e8b6
mov edx, 0x27
cmp dx, ax
jne 0x18001e302
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
movzx eax, word [rax]
xor edi, edi
cmp di, ax
je 0x18001e2e3
mov ecx, 0x27
cmp cx, ax
jne 0x18001e263
mov rcx, r8
call qword [sym.imp.USER32.dll_CharNextW]
mov ecx, 0x27
cmp cx, word [rax]
jne 0x18001e2e3
mov rdi, qword [r14]
mov eax, 0x27
cmp ax, word [rdi]
jne 0x18001e27f
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
mov rdi, rax
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [r15 + 0x2000]
cmp rcx, rax
jae 0x18001e8b6
test edx, edx
jle 0x18001e2d4
sub rdi, rbx
mov ecx, edx
nop dword [rax + rax]
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x18001e2c0
mov r8, qword [r14]
movzx eax, word [r8]
xor edi, edi
cmp di, ax
jne 0x18001e242
mov rax, qword [r14]
cmp di, word [rax]
je 0x18001e8b6
mov word [rbx], di
mov rcx, qword [r14]
call qword [sym.imp.USER32.dll_CharNextW]
mov qword [r14], rax
xor ecx, ecx
jmp 0x18001e376
cmp ax, 0x20
ja 0x18001e318
movabs rdx, 0x100002600
bt rdx, rax
jb 0x18001e373
mov rcx, rdi
call qword [sym.imp.USER32.dll_CharNextW]
mov r8, rax
mov qword [r14], rax
mov rdx, rax
sub rdx, rdi
sar rdx, 1
lea rcx, [rdx + 1]
lea rcx, [rbx + rcx*2]
lea rax, [r15 + 0x2000]
cmp rcx, rax
jae 0x18001e8b6
test edx, edx
jle 0x18001e365
sub rdi, rbx
mov ecx, edx
movzx eax, word [rdi + rbx]
mov word [rbx], ax
add rbx, 2
sub rcx, 1
jne 0x18001e351
mov r8, qword [r14]
movzx eax, word [r8]
mov rdi, r8
xor ecx, ecx
cmp cx, ax
jne 0x18001e302
mov word [rbx], cx
cmp word [r15], 0x3d
jne 0x18001e8b6
mov edi, dword [rsp + 0x60]
test edi, edi
je 0x18001e3b8
mov qword [rsp + 0x70], rsi
xor r13d, r13d
mov dword [rsp + 0x78], r13d
mov qword [rbp - 0x80], r13
mov r9, r15
lea r8, [rbp + 0x1d0]
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.18001bba0
mov ebx, eax
jmp 0x18001e61d
cmp dword [rbp + 0x2250], 0
jne 0x18001e41f
test r13d, r13d
je 0x18001e41f
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], ecx
mov qword [rbp - 0x80], rcx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.18001d0f0
test eax, eax
jne 0x18001e894
lea rdx, [rbp + 0x1d0]
mov rdi, qword [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x18001e874
test rdi, rdi
je 0x18001e41f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, r15
mov rcx, r14
call fcn.18001e900
mov ebx, eax
test eax, eax
js 0x18001e5b3
xor edi, edi
jmp 0x18001dead
mov rcx, r15
movzx eax, word [r15]
test ax, ax
je 0x18001e469
cmp ax, 0x5c
je 0x18001e460
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x18001e447
jmp 0x18001e469
test rcx, rcx
jne 0x18001e8b6
mov edi, dword [rsp + 0x60]
test edi, edi
je 0x18001e684
mov r9d, 0x2001f
mov r8, r15
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.18001d0f0
test eax, eax
je 0x18001e5e6
mov r9d, 0x20019
mov r8, r15
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.18001d0f0
test eax, eax
je 0x18001e5e6
xor r13d, r13d
mov qword [rbp - 0x58], r13
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x18001e54a
cmp qword [rbx], r13
je 0x18001e53d
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x18001e4e3
lea eax, [r13 + 1]
jmp 0x18001e580
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x18001e543
mov qword [rsp + 0x50], r13
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call r10
jmp 0x18001e580
cmp dword [rbx + 8], r13d
jne 0x18001e54a
mov eax, 1
jmp 0x18001e580
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18001e8c0
mov eax, r13d
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x18001e59a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, qword [rbp - 0x58]
mov qword [rbp - 0x78], r12
mov dword [rbp - 0x70], r13d
test eax, eax
je 0x18001e5ed
mov ecx, eax
call fcn.18001c2d0
mov ebx, eax
test r12, r12
je 0x18001e5c1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.180023170
add rsp, 0x22e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r12, qword [rbp - 0x78]
xor r13d, r13d
mov rdx, r15
mov rcx, r14
call fcn.18001cf00
mov ebx, eax
test eax, eax
js 0x18001e5b3
cmp word [r15], 0x3d
jne 0x18001e621
mov r9, r15
xor r8d, r8d
lea rdx, [rbp - 0x78]
mov rcx, r14
call fcn.18001bba0
mov ebx, eax
mov r12, qword [rbp - 0x78]
test eax, eax
js 0x18001e5b3
cmp word [r15], 0x7b
jne 0x18001e795
mov rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], 0
jne 0x18001e633
cmp rax, 1
jne 0x18001e795
mov dword [rsp + 0x20], r13d
mov r9d, edi
mov r8, r12
mov rdx, r15
mov rcx, r14
call fcn.18001de40
mov ebx, eax
test eax, eax
js 0x18001e5b3
mov rdx, r15
mov rcx, r14
call fcn.18001cf00
mov ebx, eax
test eax, eax
js 0x18001e5b3
xor edi, edi
jmp 0x18001dead
mov ebx, dword [rbp + 0x2250]
test ebx, ebx
jne 0x18001e6ab
mov r9d, 0x20019
mov r8, r15
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.18001d0f0
mov edi, eax
mov r12, qword [rbp - 0x78]
jmp 0x18001e6b0
mov edi, 2
mov esi, ebx
test edi, edi
mov eax, 1
cmovne esi, eax
lea r9, [rax - 2]
mov r8, r15
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.180052810
test eax, eax
je 0x18001e6f9
cmp eax, 0xc
je 0x18001e8e6
cmp eax, 0x16
je 0x18001e8db
cmp eax, 0x22
je 0x18001e8db
cmp eax, 0x50
jne 0x18001e8d0
mov rdx, r15
mov rcx, r14
call fcn.18001cf00
mov ebx, eax
test eax, eax
js 0x18001e5b3
mov rdx, r15
mov rcx, r14
call fcn.18001e900
mov ebx, eax
test eax, eax
js 0x18001e5b3
cmp word [r15], 0x7b
jne 0x18001e77a
mov rax, 0xffffffffffffffff
inc rax
cmp word [r15 + rax*2], 0
jne 0x18001e731
cmp rax, 1
jne 0x18001e77a
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8, r12
mov rdx, r15
mov rcx, r14
call fcn.18001de40
mov ebx, eax
test eax, eax
jns 0x18001e765
test esi, esi
je 0x18001e5b3
mov rdx, r15
mov rcx, r14
call fcn.18001cf00
mov ebx, eax
test eax, eax
js 0x18001e5b3
cmp edi, 2
je 0x18001e790
test edi, edi
je 0x18001e79c
cmp dword [rbp + 0x2250], 0
je 0x18001e8c9
mov rsi, qword [rsp + 0x68]
xor edi, edi
jmp 0x18001dead
cmp dword [rbp + 0x2250], 0
je 0x18001e803
mov rdx, r12
mov rcx, r14
call fcn.18001cb60
test eax, eax
je 0x18001e803
lea rdi, str.AppID
nop dword [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18001e790
add rdi, 8
lea rax, [0x180072630]
cmp rdi, rax
jl 0x18001e7c0
test r13d, r13d
je 0x18001e790
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x78]
call fcn.18001d610
mov r12, qword [rbp - 0x78]
mov rsi, qword [rsp + 0x68]
xor edi, edi
jmp 0x18001dead
mov rdx, r12
mov rcx, r14
call fcn.18001cb60
mov edi, eax
xor esi, esi
mov eax, esi
test r12, r12
je 0x18001e829
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12d, esi
mov qword [rbp - 0x78], rsi
mov dword [rbp - 0x70], esi
test eax, eax
jne 0x18001e5aa
mov rsi, qword [rsp + 0x68]
test r13d, r13d
je 0x18001e795
test edi, edi
jne 0x18001e795
mov qword [rsp + 0x70], rsi
xor edi, edi
mov dword [rsp + 0x78], edi
mov qword [rbp - 0x80], rdi
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x70]
call fcn.18001c680
test eax, eax
jne 0x18001e5aa
jmp 0x18001dead
mov ecx, eax
call fcn.18001c2d0
mov ebx, eax
test rdi, rdi
je 0x18001e5b3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18001e5b3
mov ecx, eax
call fcn.18001c2d0
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18001e5b3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18001e5b3
mov ebx, 0x80020009
jmp 0x18001e5b3
mov r12, qword [rbp - 0x78]
jmp 0x18001e5aa
mov ecx, edi
jmp 0x18001e5ac
mov ecx, 0x80004005
call fcn.18001c2e0
int3
mov ecx, 0x80070057
call fcn.18001c2e0
int3
mov ecx, 0x8007000e
call fcn.18001c2e0
int3