Function at 0x1800063dc
Capabilities:
Delete registry key
Delete registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x21e8]
mov eax, 0x22b0
call fcn.180020db0
sub rsp, rax
mov r15, r8
mov rdi, rdx
mov r12, rcx
xor eax, eax
mov r14d, eax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov qword [rbp - 0x70], rax
call fcn.1800056d8
test eax, eax
mov ebx, eax
js 0x180006b50
cmp word [rdi], 0x7d
je 0x180006b50
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, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180006478
test esi, esi
je 0x180006566
mov rdx, rdi
mov rcx, r12
call fcn.1800056d8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x180006b50
cmp dword [rbp + 0x2208], edx
je 0x180006564
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x70], edx
mov qword [rsp + 0x78], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x1800064c3
cmp ax, 0x5c
je 0x1800064ca
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1800064b1
jmp 0x1800064d3
test rcx, rcx
jne 0x180006b7b
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180006527
add rbx, 8
lea rax, [0x18002f860]
cmp rbx, rax
jl 0x1800064da
mov qword [rsp + 0x68], r15
xor ebx, ebx
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x78], rbx
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.180004f80
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x78], rbx
jmp 0x180006529
xor ebx, ebx
test esi, esi
je 0x180006562
mov rdx, rdi
mov rcx, r12
call fcn.1800056d8
mov ebx, eax
test eax, eax
js 0x180006b82
mov rdx, rdi
mov rcx, r12
call fcn.180005de8
mov ebx, eax
test eax, eax
js 0x180006b50
mov esi, dword [rbp + 0x2208]
jmp 0x18000681d
jmp 0x180006566
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180006592
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.1800056d8
mov ebx, eax
test eax, eax
js 0x180006b50
lea rdx, [0x18002f6d0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x1800066ab
lea rdx, [rbp + 0x1b0]
mov rcx, r12
call fcn.1800056d8
mov ebx, eax
test eax, eax
js 0x180006b50
mov rdx, rdi
mov rcx, r12
call fcn.1800056d8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x180006b50
cmp word [rdi], 0x3d
jne 0x180006b7b
mov esi, dword [rbp + 0x2208]
test esi, esi
je 0x18000661c
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], edx
mov qword [rsp + 0x78], rdx
mov r9, rdi
lea r8, [rbp + 0x1b0]
lea rdx, [rsp + 0x68]
mov rcx, r12
call fcn.180005894
mov ebx, eax
jmp 0x180006815
cmp dword [rbp + 0x2210], edx
jne 0x18000669b
test r13d, r13d
je 0x18000669b
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x70], edx
mov qword [rsp + 0x78], rdx
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
test eax, eax
jne 0x180006b9d
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], edx
lea rdx, [rbp + 0x1b0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x180006b84
test rsi, rsi
je 0x18000669b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.180005de8
jmp 0x180006428
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x1800066c7
cmp ax, 0x5c
je 0x1800066ce
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x1800066b3
jmp 0x1800066d7
test rcx, rcx
jne 0x180006b7b
mov esi, dword [rbp + 0x2208]
test esi, esi
je 0x180006865
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r13d, 0x2001f
mov r9d, r13d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x180006736
mov eax, ebx
test r14, r14
je 0x180006722
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], ebx
test eax, eax
je 0x1800067e6
mov qword [rsp + 0x60], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x18000677e
mov eax, ebx
test r14, r14
je 0x18000676e
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], ebx
test eax, eax
je 0x1800067e6
mov qword [rsp + 0x60], rbx
lea rax, [rbp - 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x180006b47
mov eax, edx
test r14, r14
je 0x1800067d2
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], edx
test eax, eax
jne 0x180006b47
mov rdx, rdi
mov rcx, r12
call fcn.1800056d8
mov ebx, eax
test eax, eax
js 0x180006b50
cmp word [rdi], 0x3d
jne 0x18000681d
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r12
call fcn.180005894
mov ebx, eax
test eax, eax
js 0x180006b50
cmp word [rdi], 0x7b
jne 0x180006432
mov rcx, rdi
call fcn.18000e92c
cmp rax, 1
jne 0x180006432
xor eax, eax
mov dword [rsp + 0x20], eax
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.1800063dc
mov ebx, eax
test eax, eax
js 0x180006b50
mov rdx, rdi
mov rcx, r12
jmp 0x180006423
mov ebx, dword [rbp + 0x2210]
test ebx, ebx
jne 0x1800068bd
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor edx, edx
test eax, eax
jne 0x1800068c2
mov esi, edx
test r14, r14
je 0x1800068af
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor edx, edx
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], edx
jmp 0x1800068c2
mov esi, 2
mov r15d, 1
test esi, esi
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x60]
call fcn.18000e840
test eax, eax
je 0x18000690b
cmp eax, 0xc
je 0x180006bb3
cmp eax, 0x16
je 0x180006ba8
cmp eax, 0x22
je 0x180006ba8
cmp eax, 0x50
jne 0x180006bbe
mov rdx, rdi
mov rcx, r12
call fcn.1800056d8
mov ebx, eax
test eax, eax
js 0x180006b50
mov rdx, rdi
mov rcx, r12
call fcn.180005de8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x180006b50
cmp word [rdi], 0x7b
jne 0x18000698b
mov rcx, rdi
call fcn.18000e92c
cmp rax, 1
jne 0x180006989
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.1800063dc
mov ebx, eax
test eax, eax
jns 0x180006970
test r15d, r15d
je 0x180006b50
mov rdx, rdi
mov rcx, r12
call fcn.1800056d8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x180006b50
jmp 0x18000698b
xor edx, edx
cmp esi, 2
je 0x180006a3f
test esi, esi
je 0x1800069ab
cmp dword [rbp + 0x2210], edx
jne 0x180006a3f
mov ecx, esi
jmp 0x180006b49
cmp dword [rbp + 0x2210], edx
je 0x180006a4b
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x180006a4b
cmp dword [rsp + 0x60], edx
jbe 0x180006a4b
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180006a3f
add rsi, 8
lea rax, [0x18002f860]
cmp rsi, rax
jl 0x180006a0c
test r13d, r13d
je 0x180006a3f
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.180004f80
mov r15, qword [rbp + 0x2200]
jmp 0x180006432
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, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x180006a9d
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
test r14, r14
je 0x180006ab6
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14d, edx
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x78], edx
test eax, eax
jne 0x180006b47
test r13d, r13d
je 0x180006a3f
test esi, esi
jne 0x180006a3f
cmp byte [0x180037af8], dl
jne 0x180006b15
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180006b05
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180037af0], rax
jmp 0x180006b0c
mov rax, qword [0x180037af0]
mov byte [0x180037af8], 1
jmp 0x180006b1c
mov rax, qword [0x180037af0]
lea rdx, [rbp - 0x60]
mov r15, qword [rbp + 0x2200]
mov rcx, r15
test rax, rax
je 0x180006b39
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x180006b3f
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x180006432
mov ecx, eax
call fcn.180004ce4
mov ebx, eax
test r14, r14
je 0x180006b5e
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x22f0]
add rsp, 0x22b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ebx, 0x80020009
jmp 0x180006b50
jmp 0x180006b50
mov ecx, eax
call fcn.180004ce4
mov ebx, eax
test rsi, rsi
je 0x180006b50
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180006b50
mov ecx, eax
call fcn.180004ce4
mov ebx, eax
jmp 0x180006b50
mov ecx, 0x80070057
call fcn.180004ca0
int3
mov ecx, 0x8007000e
call fcn.180004ca0
int3
mov ecx, 0x80004005
call fcn.180004ca0
int3