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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x10d8]
mov eax, 0x11d8
call fcn.18002c7f0
sub rsp, rax
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov rax, qword [0x180066180]
xor rax, rsp
mov qword [rbp + 0x10c0], rax
mov dword [rsp + 0x58], r9d
mov qword [rsp + 0x50], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x40], rcx
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], ecx
mov qword [rsp + 0x70], rcx
mov ecx, dword [rbp + 0x1120]
mov dword [rbp - 0x80], ecx
mov rcx, rax
call fcn.180022360
mov ebx, eax
test eax, eax
js 0x18002392d
cmp byte [rsi], 0x7d
je 0x18002392d
mov dword [rsp + 0x48], 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 0x180023228
test edi, edi
je 0x180023302
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180022360
mov ebx, eax
test eax, eax
js 0x18002392d
cmp dword [rsp + 0x58], 0
je 0x180023302
xor eax, eax
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], eax
mov qword [rbp - 0x68], rax
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x180023280
cmp al, 0x5c
je 0x180023277
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
movzx eax, byte [rax]
test al, al
jne 0x180023261
jmp 0x180023280
test rcx, rcx
jne 0x1800238f8
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 0x1800232d4
add rbx, 8
lea rax, str.CLSID
cmp rbx, rax
jl 0x180023290
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], 0
mov qword [rbp - 0x68], 0
mov rdx, rsi
lea rcx, [rbp - 0x78]
call fcn.180002e10
test edi, edi
je 0x180023302
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.180022360
mov ebx, eax
test eax, eax
js 0x18002392d
mov rdx, rsi
mov rcx, rdi
call fcn.180022b20
jmp 0x1800235ca
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180023335
xor edi, edi
mov dword [rsp + 0x48], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180022360
mov ebx, eax
test eax, eax
js 0x18002392d
jmp 0x180023339
mov edi, dword [rsp + 0x48]
lea rdx, [0x180057440]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x180023445
lea rdx, [rbp + 0xc0]
mov rcx, qword [rsp + 0x40]
call fcn.180022360
mov ebx, eax
test eax, eax
js 0x18002392d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180022360
mov ebx, eax
test eax, eax
js 0x18002392d
cmp byte [rsi], 0x3d
jne 0x1800238f8
cmp dword [rsp + 0x58], 0
je 0x1800233c7
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x78], rax
xor eax, eax
mov dword [rbp - 0x70], eax
mov qword [rbp - 0x68], rax
mov r9, rsi
lea r8, [rbp + 0xc0]
lea rdx, [rbp - 0x78]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.1800224f0
mov ebx, eax
jmp 0x1800235cc
cmp dword [rbp + 0x1120], 0
jne 0x180023433
test edi, edi
je 0x180023433
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180023924
mov rdi, qword [rsp + 0x78]
lea rdx, [rbp + 0xc0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x1800238df
test rdi, rdi
je 0x180023433
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180022b20
jmp 0x1800231d9
mov rcx, rsi
movzx eax, byte [rsi]
test al, al
je 0x18002346f
nop
cmp al, 0x5c
je 0x180023466
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
movzx eax, byte [rax]
test al, al
jne 0x180023450
jmp 0x18002346f
test rcx, rcx
jne 0x1800238f8
cmp dword [rsp + 0x58], 0
je 0x180023626
mov qword [rsp + 0x48], 0
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x48]
test rbx, rbx
je 0x1800234b1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.180002fa0
jmp 0x1800234cd
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1800234fd
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1800234e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0
test eax, eax
je 0x180023598
jmp 0x180023502
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x48], 0
lea rax, [rsp + 0x48]
test rbx, rbx
je 0x180023539
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.180002fa0
mov rbx, qword [rsp + 0x50]
jmp 0x180023558
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x180023580
test rdi, rdi
je 0x18002356a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0
test eax, eax
je 0x180023598
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.18001d8a0
test eax, eax
jne 0x180023924
mov rdx, rsi
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call fcn.180022360
mov ebx, eax
test eax, eax
js 0x18002392d
cmp byte [rsi], 0x3d
jne 0x1800235d4
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1800224f0
mov ebx, eax
test eax, eax
js 0x18002392d
cmp byte [rsi], 0x7b
jne 0x1800231e3
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x1800235e1
cmp rax, 1
jne 0x1800231e3
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
call fcn.180023170
mov ebx, eax
test eax, eax
js 0x18002392d
mov rdx, rsi
mov rcx, rdi
jmp 0x1800231d4
cmp dword [rbp + 0x1120], 0
jne 0x1800236ba
xor ebx, ebx
mov qword [rsp + 0x78], rbx
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x180023668
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call fcn.180002fa0
jmp 0x180023689
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test eax, eax
jne 0x1800236bf
mov edi, ebx
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1800236a6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], ebx
test edi, edi
je 0x1800236c9
jmp 0x1800236bf
mov edi, 2
mov dword [rbp + 0x1120], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.18002b1b0
test eax, eax
je 0x180023706
cmp eax, 0xc
je 0x180023915
cmp eax, 0x16
je 0x18002390a
cmp eax, 0x22
je 0x18002390a
cmp eax, 0x50
jne 0x1800238ff
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180022360
mov ebx, eax
test eax, eax
js 0x18002392d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180022b20
mov ebx, eax
test eax, eax
js 0x18002392d
cmp byte [rsi], 0x7b
jne 0x180023798
or rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rsi + rax], 0
jne 0x180023740
cmp rax, 1
jne 0x180023798
mov eax, dword [rbp + 0x1120]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180023170
mov ebx, eax
test eax, eax
jns 0x180023781
cmp dword [rbp + 0x1120], 0
je 0x18002392d
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
call fcn.180022360
mov ebx, eax
test eax, eax
js 0x18002392d
mov eax, dword [rbp - 0x80]
mov dword [rbp + 0x1120], eax
cmp edi, 2
je 0x1800231e3
test edi, edi
je 0x1800237bb
test eax, eax
je 0x180023920
jmp 0x1800231e3
test eax, eax
je 0x180023824
mov rdx, qword [rsp + 0x60]
call fcn.180022ab0
test eax, eax
je 0x180023824
lea rdi, str.AppID
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1800231e3
add rdi, 8
lea rax, str.CLSID
cmp rdi, rax
jl 0x1800237e0
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1800231e3
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x60]
call fcn.180002e10
jmp 0x1800231e3
mov rdx, qword [rsp + 0x60]
call fcn.180022ab0
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180023849
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], 0
test eax, eax
jne 0x180023924
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1800231e3
test edi, edi
jne 0x1800231e3
cmp byte [0x18006a998], dil
jne 0x1800238b1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1800238a1
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18006a990], rax
jmp 0x1800238a8
mov rax, qword [0x18006a990]
mov byte [0x18006a998], 1
jmp 0x1800238b8
mov rax, qword [0x18006a990]
lea rdx, [rbp - 0x50]
mov rcx, qword [rsp + 0x50]
test rax, rax
je 0x1800238d0
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x1800238d6
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x180023924
jmp 0x1800231e3
mov ecx, eax
call fcn.180020e70
mov ebx, eax
test rdi, rdi
je 0x18002392d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18002392d
mov ebx, 0x80020009
jmp 0x18002392d
mov ecx, 0x80004005
call fcn.180002bd0
int3
mov ecx, 0x80070057
call fcn.180002bd0
int3
mov ecx, 0x8007000e
call fcn.180002bd0
int3
mov ecx, edi
jmp 0x180023926
mov ecx, eax
call fcn.180020e70
mov ebx, eax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x180023940
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10c0]
xor rcx, rsp
call fcn.1800289d0
add rsp, 0x11d8
pop rdi
pop rsi
pop rbx
pop rbp
ret