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

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov eax, 0x11e8
call fcn.180041f20
sub rsp, rax
mov qword [rsp + 0xb8], 0xfffffffffffffffe
mov rax, qword [0x18009b4d0]
xor rax, rsp
mov qword [rsp + 0x11d0], rax
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x58], rcx
xor ebp, ebp
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], ebp
mov ecx, dword [rsp + 0x1230]
mov dword [rsp + 0x90], ecx
mov rcx, rax
call fcn.180005540
mov ebx, eax
test eax, eax
jns 0x180007ff1
jmp 0x18000887a
cmp byte [rsi], 0x7d
je 0x18000886a
nop word [rax + rax]
mov dword [rsp + 0x50], 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x18000803c
test edi, edi
je 0x18000815d
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180005540
mov ebx, eax
test eax, eax
js 0x18000886a
cmp dword [rsp + 0x60], 0
je 0x18000815d
xor eax, eax
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], eax
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x18000809e
nop dword [rax]
cmp al, 0x5c
je 0x180008095
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x180008080
jmp 0x18000809e
test rcx, rcx
jne 0x18000876b
lea rbx, str.AppID
nop word [rax + rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x18000810f
add rbx, 8
lea rax, [0x18004aca0]
cmp rbx, rax
jl 0x1800080b0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
mov rdx, rsi
lea rcx, [rsp + 0x80]
call fcn.180005da0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x88], 0
test edi, edi
je 0x180008152
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.180005540
mov ebx, eax
test eax, eax
js 0x18000886a
mov rdx, rsi
mov rcx, rdi
call fcn.180005790
mov ebx, eax
test eax, eax
js 0x18000886a
mov dword [rsp + 0x88], 0
jmp 0x18000845a
mov dword [rsp + 0x88], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180008190
xor edi, edi
mov dword [rsp + 0x50], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180005540
mov ebx, eax
test eax, eax
js 0x18000886a
jmp 0x180008194
mov edi, dword [rsp + 0x50]
lea rdx, [0x18004aa04]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1800082da
lea rdx, [rsp + 0x1d0]
mov rcx, qword [rsp + 0x58]
call fcn.180005540
mov ebx, eax
test eax, eax
js 0x18000886a
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180005540
mov ebx, eax
test eax, eax
js 0x18000886a
cmp byte [rsi], 0x3d
jne 0x1800087c6
cmp dword [rsp + 0x60], 0
je 0x18000824e
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], 0
mov r9, rsi
lea r8, [rsp + 0x1d0]
lea rdx, [rsp + 0xa0]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.180007a60
mov ebx, eax
xor eax, eax
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0xa8], eax
test ebx, ebx
js 0x180008783
mov dword [rsp + 0xa8], eax
jmp 0x18000845a
cmp dword [rsp + 0x1230], 0
jne 0x1800082be
test edi, edi
je 0x1800082be
mov qword [rsp + 0x50], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800087b8
mov rdi, qword [rsp + 0x50]
lea rdx, [rsp + 0x1d0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x1800082b0
cmp eax, 2
jne 0x180008798
test rdi, rdi
je 0x1800082be
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180005790
mov ebx, eax
test eax, eax
js 0x18000886a
jmp 0x18000875d
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x180008302
cmp al, 0x5c
je 0x1800082f9
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x1800082e4
jmp 0x180008302
test rcx, rcx
jne 0x1800087de
cmp dword [rsp + 0x60], 0
je 0x1800084b4
xor edi, edi
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180008362
mov eax, edi
test rbp, rbp
je 0x18000834c
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], edi
test eax, eax
je 0x180008419
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800083ac
mov eax, edi
test rbp, rbp
je 0x18000839a
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], edi
test eax, eax
je 0x180008419
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1800087fd
mov eax, edi
test rbp, rbp
je 0x180008403
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], edi
test eax, eax
jne 0x1800087fd
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.180005540
mov ebx, eax
test eax, eax
js 0x18000886a
cmp byte [rsi], 0x3d
jne 0x18000845a
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.180007a60
mov ebx, eax
test eax, eax
js 0x1800087f6
mov rbp, qword [rsp + 0x68]
cmp byte [rsi], 0x7b
jne 0x18000875d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x18000875d
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x60]
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.180007f80
mov ebx, eax
test eax, eax
js 0x18000886a
mov rdx, rsi
mov rcx, rdi
call fcn.180005540
mov ebx, eax
test eax, eax
js 0x18000886a
jmp 0x18000875d
cmp dword [rsp + 0x1230], 0
jne 0x18000851b
xor ebx, ebx
mov qword [rsp + 0x98], rbx
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test eax, eax
jne 0x180008515
mov edi, ebx
test rbp, rbp
je 0x180008504
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbp, qword [rsp + 0x98]
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], ebx
test edi, edi
je 0x18000852b
jmp 0x180008520
mov edi, 2
mov dword [rsp + 0x1230], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call fcn.180022ef8
test eax, eax
je 0x18000856c
cmp eax, 0xc
je 0x18000882e
cmp eax, 0x16
je 0x180008823
cmp eax, 0x22
je 0x180008823
cmp eax, 0x50
jne 0x180008818
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180005540
mov ebx, eax
test eax, eax
js 0x18000886a
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180005790
mov ebx, eax
test eax, eax
js 0x18000886a
cmp byte [rsi], 0x7b
jne 0x1800085f6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jne 0x1800085f6
mov eax, dword [rsp + 0x1230]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbp
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180007f80
mov ebx, eax
test eax, eax
jns 0x1800085df
cmp dword [rsp + 0x1230], 0
je 0x18000886a
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180005540
mov ebx, eax
test eax, eax
js 0x18000886a
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x1230], eax
cmp edi, 2
je 0x18000875d
test edi, edi
je 0x18000861e
test eax, eax
je 0x180008839
jmp 0x18000875d
test eax, eax
je 0x180008691
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call fcn.180005720
test eax, eax
je 0x180008691
lea rdi, str.AppID
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x18000875d
add rdi, 8
lea rax, [0x18004aca0]
cmp rdi, rax
jl 0x180008640
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18000875d
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.180005da0
mov rbp, qword [rsp + 0x68]
jmp 0x18000875d
mov rdx, rbp
mov rcx, qword [rsp + 0x58]
call fcn.180005720
mov edi, eax
xor eax, eax
test rbp, rbp
je 0x1800086b7
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], 0
test eax, eax
jne 0x18000884f
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x18000875d
test edi, edi
jne 0x18000875d
cmp byte [0x18009cb20], dil
jne 0x18000871f
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x18000870f
lea rdx, [0x18004adb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18009cb18], rax
jmp 0x180008716
mov rax, qword [0x18009cb18]
mov byte [0x18009cb20], 1
jmp 0x180008726
mov rax, qword [0x18009cb18]
test rax, rax
je 0x180008742
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
call rax
jmp 0x180008755
lea rdx, [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x180008844
cmp byte [rsi], 0x7d
je 0x18000886a
jmp 0x180008000
test rbp, rbp
je 0x180008779
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000887a
test rbp, rbp
je 0x180008791
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x18000887a
mov ecx, eax
call fcn.180004b50
mov ebx, eax
test rdi, rdi
je 0x18000886a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000886a
mov ecx, eax
call fcn.180004b50
mov ebx, eax
jmp 0x18000886a
test rbp, rbp
je 0x1800087d4
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000887a
test rbp, rbp
je 0x1800087ec
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x18000887a
mov rbp, qword [rsp + 0x68]
jmp 0x18000886a
mov ecx, eax
call fcn.180004b50
mov ebx, eax
test rbp, rbp
je 0x180008814
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x18000887a
mov ecx, 0x80004005
call fcn.180003100
int3
mov ecx, 0x80070057
call fcn.180003100
int3
mov ecx, 0x8007000e
call fcn.180003100
int3
mov ecx, edi
call fcn.180004b50
mov ebx, eax
jmp 0x18000886a
mov ecx, eax
call fcn.180004b50
mov ebx, eax
jmp 0x18000886a
mov ecx, eax
call fcn.180004b50
mov ebx, eax
test rbp, rbp
je 0x180008866
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x18000887a
test rbp, rbp
je 0x180008878
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x11d0]
xor rcx, rsp
call fcn.180022070
add rsp, 0x11e8
pop rdi
pop rsi
pop rbp
pop rbx
ret