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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21f8]
mov eax, 0x22f8
call fcn.1800cd460
sub rsp, rax
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x1801c3938]
xor rax, rsp
mov qword [rbp + 0x21e0], rax
mov dword [rsp + 0x54], r9d
mov qword [rsp + 0x58], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov ecx, dword [rbp + 0x2240]
mov dword [rbp - 0x58], ecx
mov rcx, rax
call fcn.180058890
mov ebx, eax
test eax, eax
jns 0x180059698
jmp 0x180059e3d
mov ebx, eax
test eax, eax
js 0x180059e1f
cmp word [rsi], 0x7d
je 0x180059e1f
mov dword [rsp + 0x50], 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800596de
test edi, edi
je 0x1800597fa
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180058890
mov ebx, eax
test eax, eax
js 0x180059e1f
cmp dword [rsp + 0x54], 0
je 0x1800597fa
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebx
mov qword [rsp + 0x70], rbx
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180059742
nop dword [rax + rax]
cmp ax, 0x5c
je 0x180059739
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180059720
jmp 0x180059742
test rcx, rcx
jne 0x180059d14
lea rbx, str.AppID
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800597b2
add rbx, 8
lea rax, [0x1801493e0]
cmp rbx, rax
jl 0x180059750
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.180057e70
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
test edi, edi
je 0x1800597f2
mov rdx, rsi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.180058890
mov ebx, eax
test eax, eax
js 0x180059d43
mov rdx, rsi
mov rcx, rdi
call fcn.180058f40
mov ebx, eax
test eax, eax
js 0x180059d3e
mov dword [rsp + 0x68], 0
jmp 0x180059a40
mov dword [rsp + 0x68], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18005982d
xor edi, edi
mov dword [rsp + 0x50], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180058890
mov ebx, eax
test eax, eax
js 0x180059e1f
jmp 0x180059831
mov edi, dword [rsp + 0x50]
lea rdx, [0x180149288]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18005997a
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rsp + 0x30]
call fcn.180058890
mov ebx, eax
test eax, eax
js 0x180059e1f
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180058890
mov ebx, eax
test eax, eax
js 0x180059e1f
cmp word [rsi], 0x3d
jne 0x180059d91
cmp dword [rsp + 0x54], 0
je 0x1800598e3
xor ecx, ecx
mov qword [rbp - 0x70], rcx
mov dword [rbp - 0x68], ecx
mov qword [rbp - 0x60], rcx
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], ecx
mov qword [rbp - 0x60], rcx
mov r9, rsi
lea r8, [rbp + 0x1e0]
lea rdx, [rbp - 0x70]
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.180058a40
mov ebx, eax
xor eax, eax
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], eax
mov qword [rbp - 0x60], rax
test ebx, ebx
js 0x180059d48
mov dword [rbp - 0x68], eax
jmp 0x180059a40
cmp dword [rbp + 0x2240], 0
jne 0x180059968
test edi, edi
je 0x180059968
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov qword [rbp - 0x78], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x78]
call fcn.18003a1c0
test eax, eax
jne 0x180059d63
lea rdx, [rbp + 0x1e0]
mov rdi, qword [rsp + 0x78]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x18005994a
cmp eax, 2
jne 0x180059d50
test rdi, rdi
je 0x180059961
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180058f40
jmp 0x18005968e
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x1800599a7
cmp ax, 0x5c
je 0x18005999e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180059985
jmp 0x1800599a7
test rcx, rcx
jne 0x180059db7
cmp dword [rsp + 0x54], 0
je 0x180059a93
mov r9d, 0x2001f
mov r8, rsi
mov rbx, qword [rsp + 0x58]
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.18003a1c0
test eax, eax
je 0x180059a03
mov r9d, 0x20019
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.18003a1c0
test eax, eax
je 0x180059a03
mov r8, rsi
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.180057c90
test eax, eax
jne 0x180059db9
mov rdx, rsi
mov rdi, qword [rsp + 0x30]
mov rcx, rdi
call fcn.180058890
mov ebx, eax
test eax, eax
js 0x180059e1f
cmp word [rsi], 0x3d
jne 0x180059a40
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.180058a40
mov ebx, eax
test eax, eax
js 0x180059e1f
cmp word [rsi], 0x7b
jne 0x180059698
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x180059698
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x54]
mov r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, rdi
call fcn.180059610
mov ebx, eax
test eax, eax
js 0x180059e1f
mov rdx, rsi
mov rcx, rdi
call fcn.180058890
jmp 0x18005968e
cmp dword [rbp + 0x2240], 0
jne 0x180059abc
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.18003a1c0
mov edi, eax
test eax, eax
jne 0x180059ac1
jmp 0x180059acb
mov edi, 2
mov dword [rbp + 0x2240], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x30]
call fcn.1800c2fb0
test eax, eax
je 0x180059b08
cmp eax, 0xc
je 0x180059de4
cmp eax, 0x16
je 0x180059dd9
cmp eax, 0x22
je 0x180059dd9
cmp eax, 0x50
jne 0x180059dce
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180058890
mov ebx, eax
test eax, eax
js 0x180059e1f
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180058f40
mov ebx, eax
test eax, eax
js 0x180059e1f
cmp word [rsi], 0x7b
jne 0x180059b93
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x180059b93
mov eax, dword [rbp + 0x2240]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180059610
mov ebx, eax
test eax, eax
jns 0x180059b7c
cmp dword [rbp + 0x2240], 0
je 0x180059e1f
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call fcn.180058890
mov ebx, eax
test eax, eax
js 0x180059e1f
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0x2240], eax
cmp edi, 2
je 0x180059698
test edi, edi
je 0x180059bb6
test eax, eax
je 0x180059def
jmp 0x180059698
test eax, eax
je 0x180059c14
mov rcx, qword [rsp + 0x38]
call fcn.180058ee0
test eax, eax
je 0x180059c14
lea rdi, str.AppID
nop
mov rdx, qword [rdi]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180059698
add rdi, 8
lea rax, [0x1801493e0]
cmp rdi, rax
jl 0x180059bd0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x180059698
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x38]
call fcn.180057e70
jmp 0x180059698
mov rcx, qword [rsp + 0x38]
call fcn.180058ee0
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180059c39
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x40], 0
test eax, eax
jne 0x180059e0c
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x180059698
test edi, edi
jne 0x180059698
mov qword [rbp - 0x50], 0
mov dword [rbp - 0x48], edi
mov qword [rbp - 0x40], 0
mov rcx, qword [rsp + 0x58]
mov qword [rbp - 0x50], rcx
mov dword [rbp - 0x48], edi
mov qword [rbp - 0x40], 0
cmp byte [0x1801dbbf4], dil
jne 0x180059ccd
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180059cb8
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801dbbf8], rax
jmp 0x180059cbf
mov rax, qword [0x1801dbbf8]
mov byte [0x1801dbbf4], 1
mov rcx, qword [rsp + 0x58]
jmp 0x180059cd4
mov rax, qword [0x1801dbbf8]
lea rdx, [rbp - 0x30]
test rax, rax
je 0x180059ce7
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x180059ced
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rbp - 0x50], 0
mov dword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0
test eax, eax
jne 0x180059dfa
mov dword [rbp - 0x48], eax
jmp 0x180059698
mov dword [rsp + 0x68], ebx
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x180059d30
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], ebx
mov eax, 0x80020009
jmp 0x180059e45
jmp 0x180059e17
jmp 0x180059e17
mov dword [rbp - 0x68], eax
jmp 0x180059e1f
mov ecx, eax
call fcn.180057aa0
mov ebx, eax
test rdi, rdi
je 0x180059d85
mov rcx, rdi
jmp 0x180059d76
mov ecx, eax
call fcn.180057aa0
mov ebx, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180059d85
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
jmp 0x180059e1f
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x180059dad
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, 0x80020009
jmp 0x180059e3d
jmp 0x180059d91
mov ecx, eax
call fcn.180057aa0
mov ebx, eax
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180059e3b
jmp 0x180059e2c
mov ecx, 0x80004005
call fcn.180040c70
int3
mov ecx, 0x80070057
call fcn.180040c70
int3
mov ecx, 0x8007000e
call fcn.180040c70
int3
mov ecx, edi
call fcn.180057aa0
mov ebx, eax
jmp 0x180059e1f
mov ecx, eax
call fcn.180057aa0
mov ebx, eax
mov dword [rbp - 0x48], 0
jmp 0x180059e1f
mov ecx, eax
call fcn.180057aa0
mov ebx, eax
jmp 0x180059e1f
mov dword [rsp + 0x68], 0
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x180059e3b
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], 0
mov eax, ebx
mov dword [rsp + 0x40], 0
mov rcx, qword [rbp + 0x21e0]
xor rcx, rsp
call fcn.1800be9b0
add rsp, 0x22f8
pop rdi
pop rsi
pop rbx
pop rbp
ret