Function at 0x180006274
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x10e8]
mov eax, 0x11e8
call fcn.18001a640
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x180029008]
xor rax, rsp
mov qword [rbp + 0x10d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rbp - 0x70], r8
mov rdi, rdx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov qword [rsp + 0x78], rsi
and dword [rbp - 0x80], esi
and qword [rbp - 0x78], rsi
call fcn.180005414
mov ebx, eax
test eax, eax
js 0x180006a31
cmp byte [rdi], 0x7d
je 0x180006a2c
mov eax, 1
mov dword [rsp + 0x74], eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x18000631e
test ebx, ebx
je 0x1800063f1
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005414
mov ebx, eax
test eax, eax
js 0x180006a2c
cmp dword [rsp + 0x70], 0
je 0x1800063f1
and qword [rbp - 0x68], 0
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov rcx, rdi
mov al, byte [rdi]
jmp 0x180006364
cmp al, 0x5c
je 0x18000636a
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x180006355
jmp 0x180006373
test rcx, rcx
jne 0x1800069f0
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1800063b7
add rbx, 8
lea rax, [0x1800253a0]
cmp rbx, rax
jl 0x18000637a
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.18000428c
cmp dword [rsp + 0x60], 0
je 0x1800063f1
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005414
mov ebx, eax
test eax, eax
js 0x180006a2c
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005c44
mov ebx, eax
test eax, eax
js 0x180006a2c
jmp 0x1800066d9
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180006420
and dword [rsp + 0x74], eax
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005414
mov ebx, eax
test eax, eax
js 0x180006a2c
lea rdx, [0x180025430]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x18000652f
lea rdx, [rbp + 0xd0]
mov rcx, qword [rsp + 0x68]
call fcn.180005414
mov ebx, eax
test eax, eax
js 0x180006a2c
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005414
mov ebx, eax
test eax, eax
js 0x180006a2c
cmp byte [rdi], 0x3d
jne 0x1800069f0
cmp dword [rsp + 0x70], 0
je 0x1800064aa
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov r9, rdi
lea r8, [rbp + 0xd0]
lea rdx, [rbp - 0x68]
mov rcx, qword [rsp + 0x68]
call fcn.18000557c
mov ebx, eax
jmp 0x1800063e4
cmp dword [rbp + 0x1130], 0
jne 0x180006513
cmp dword [rsp + 0x74], 0
je 0x180006513
and qword [rbp - 0x68], 0
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x68]
call fcn.1800041a8
test eax, eax
jne 0x1800069d6
lea rdx, [rbp + 0xd0]
mov rsi, qword [rbp - 0x68]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x1800069c3
test rsi, rsi
je 0x180006513
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005c44
mov ebx, eax
test eax, eax
js 0x180006a2c
jmp 0x1800069b4
mov rcx, rdi
mov al, byte [rdi]
jmp 0x180006545
cmp al, 0x5c
je 0x18000654b
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x180006536
jmp 0x180006554
test rcx, rcx
jne 0x1800069f7
cmp dword [rsp + 0x70], 0
je 0x180006734
mov r9d, 0x2001f
mov r8, rdi
mov rsi, qword [rbp - 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1800041a8
test eax, eax
je 0x180006694
mov r9d, 0x20019
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.1800041a8
xor ecx, ecx
test eax, eax
je 0x180006694
mov qword [rsp + 0x60], rcx
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x18000662e
cmp qword [rbx], rcx
je 0x180006622
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x180006627
lea rdx, str.RegCreateKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor ecx, ecx
test rax, rax
je 0x180006627
mov qword [rsp + 0x50], rcx
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call r10
jmp 0x180006664
cmp dword [rbx + 8], ecx
jne 0x18000662e
mov eax, 1
jmp 0x180006664
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x180006a23
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18000667c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
and dword [rbp - 0x80], 0
test eax, eax
jne 0x180006a23
jmp 0x180006699
mov rsi, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005414
mov ebx, eax
test eax, eax
js 0x180006a2c
cmp byte [rdi], 0x3d
jne 0x1800066d9
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.18000557c
mov ebx, eax
test eax, eax
js 0x180006a2c
mov rsi, qword [rsp + 0x78]
cmp byte [rdi], 0x7b
jne 0x1800069b4
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x1800066e6
mov ecx, 1
cmp rax, rcx
jne 0x1800069b4
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, rsi
mov rdx, rdi
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call fcn.180006274
mov ebx, eax
test eax, eax
js 0x180006a2c
mov rdx, rdi
mov rcx, rsi
call fcn.180005414
jmp 0x180006520
mov ebx, dword [rbp + 0x1130]
test ebx, ebx
jne 0x180006759
mov r9d, 0x20019
mov r8, rdi
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.1800041a8
mov esi, eax
jmp 0x18000675e
mov esi, 2
mov eax, ebx
test esi, esi
mov ecx, 1
cmovne eax, ecx
mov dword [rsp + 0x60], eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.18000f694
test eax, eax
je 0x1800067ab
cmp eax, 0xc
je 0x180006a14
cmp eax, 0x16
je 0x180006a09
cmp eax, 0x22
je 0x180006a09
cmp eax, 0x50
jne 0x1800069fe
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005414
mov ebx, eax
test eax, eax
js 0x180006a2c
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005c44
mov ebx, eax
test eax, eax
js 0x180006a2c
cmp byte [rdi], 0x7b
jne 0x18000683a
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x1800067e2
mov ecx, 1
cmp rax, rcx
jne 0x18000683a
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180006274
mov ebx, eax
test eax, eax
jns 0x180006823
cmp dword [rsp + 0x60], 0
je 0x180006a2c
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.180005414
mov ebx, eax
test eax, eax
js 0x180006a2c
cmp esi, 2
je 0x1800069b4
test esi, esi
je 0x180006859
cmp dword [rbp + 0x1130], 0
je 0x180006a1f
jmp 0x1800069b4
cmp dword [rbp + 0x1130], 0
je 0x18000690b
and dword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x18000690b
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x18000690b
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1800069b4
add rsi, 8
lea rax, [0x1800253a0]
cmp rsi, rax
jl 0x1800068c8
cmp dword [rsp + 0x74], 0
je 0x1800069b4
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.18000428c
jmp 0x1800069b4
and dword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
test eax, eax
jne 0x180006965
cmp dword [rsp + 0x60], esi
seta sil
xor eax, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18000697d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x78], 0
and dword [rbp - 0x80], 0
test eax, eax
jne 0x180006a23
cmp dword [rsp + 0x74], eax
je 0x1800069b4
test esi, esi
jne 0x1800069b4
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
and dword [rbp - 0x60], esi
and qword [rbp - 0x58], 0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.1800040ac
test eax, eax
jne 0x180006a23
cmp byte [rdi], 0x7d
je 0x180006a2c
mov rsi, qword [rsp + 0x78]
jmp 0x1800062de
mov ecx, eax
call fcn.180003ee4
mov ebx, eax
test rsi, rsi
je 0x180006a2c
mov rcx, rsi
jmp 0x1800069e8
mov ecx, eax
call fcn.180003ee4
mov ebx, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x180006a2c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180006a2c
mov ebx, 0x80020009
jmp 0x180006a31
mov ebx, 0x80020009
jmp 0x180006a2c
mov ecx, 0x80004005
call fcn.180003e1c
int3
mov ecx, 0x80070057
call fcn.180003e1c
int3
mov ecx, 0x8007000e
call fcn.180003e1c
int3
mov ecx, esi
jmp 0x180006a25
mov ecx, eax
call fcn.180003ee4
mov ebx, eax
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x180006a3f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10d0]
xor rcx, rsp
call fcn.1800095a0
add rsp, 0x11e8
pop rdi
pop rsi
pop rbx
pop rbp
ret