Function at 0x180005200
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x21e8]
mov eax, 0x22e8
call fcn.1800171b0
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x1800366f0]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rbp - 0x70], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov qword [rbp - 0x78], 0
mov ecx, dword [rbp + 0x2230]
mov dword [rbp - 0x4c], ecx
mov rcx, rax
call fcn.1800032c0
mov ebx, eax
test eax, eax
jns 0x180005285
jmp 0x1800059af
mov ebx, eax
test eax, eax
js 0x18000599a
cmp word [rsi], 0x7d
je 0x18000599a
mov dword [rsp + 0x68], 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 0x1800052cb
test edi, edi
je 0x18000539b
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1800032c0
mov ebx, eax
test eax, eax
js 0x18000599a
cmp dword [rsp + 0x70], 0
je 0x18000539b
xor eax, eax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180005327
cmp ax, 0x5c
je 0x18000531e
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180005305
jmp 0x180005327
test rcx, rcx
jne 0x1800058fe
lea rbx, str.AppID
nop
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x18000536d
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x180005330
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
xor eax, eax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.180003730
test edi, edi
je 0x18000539b
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1800032c0
mov ebx, eax
test eax, eax
js 0x18000599a
mov rdx, rsi
mov rcx, rdi
call fcn.1800034e0
jmp 0x18000569c
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800053ce
xor edi, edi
mov dword [rsp + 0x68], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1800032c0
mov ebx, eax
test eax, eax
js 0x18000599a
jmp 0x1800053d2
mov edi, dword [rsp + 0x68]
lea rdx, [0x180027ae0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800054e1
lea rdx, [rbp + 0x1d0]
mov rcx, qword [rsp + 0x60]
call fcn.1800032c0
mov ebx, eax
test eax, eax
js 0x18000599a
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1800032c0
mov ebx, eax
test eax, eax
js 0x18000599a
cmp word [rsi], 0x3d
jne 0x180005950
cmp dword [rsp + 0x70], 0
je 0x180005468
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
xor eax, eax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov r9, rsi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x68]
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.180004d80
mov ebx, eax
test eax, eax
js 0x18000591b
jmp 0x1800056a6
cmp dword [rbp + 0x2230], 0
jne 0x1800054cf
test edi, edi
je 0x1800054cf
xor eax, eax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], eax
mov qword [rbp - 0x58], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x68]
call fcn.180002da0
test eax, eax
jne 0x180005936
lea rdx, [rbp + 0x1d0]
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1800054c1
cmp eax, 2
jne 0x18000591d
test rdi, rdi
je 0x1800054cf
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1800034e0
jmp 0x18000527b
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180005512
nop dword [rax]
cmp ax, 0x5c
je 0x180005509
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1800054f0
jmp 0x180005512
test rcx, rcx
jne 0x180005952
cmp dword [rsp + 0x70], 0
je 0x1800056f9
mov r9d, 0x2001f
mov r8, rsi
mov rdi, qword [rbp - 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.180002da0
test eax, eax
je 0x180005669
mov r9d, 0x20019
mov r8, rsi
mov rdx, rdi
lea rcx, [rsp + 0x78]
call fcn.180002da0
test eax, eax
je 0x180005669
mov qword [rsp + 0x68], 0
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x180005602
cmp qword [rbx], 0
je 0x1800055f3
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x180005597
mov eax, 1
xor ebx, ebx
jmp 0x18000563a
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800055f9
mov qword [rsp + 0x50], 0
mov rcx, qword [rbx]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp - 0x50]
mov qword [rsp + 0x40], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x38], rcx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call rax
jmp 0x18000563a
cmp dword [rbx + 8], 0
jne 0x180005602
mov eax, 1
xor ebx, ebx
jmp 0x18000563a
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180005954
mov eax, ebx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180005654
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], ebx
test eax, eax
jne 0x180005954
mov rdx, rsi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call fcn.1800032c0
mov ebx, eax
test eax, eax
js 0x18000599a
cmp word [rsi], 0x3d
jne 0x1800056a6
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.180004d80
test eax, eax
mov ebx, eax
js 0x18000599a
cmp word [rsi], 0x7b
jne 0x180005285
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x180005285
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, rdi
call fcn.180005200
mov ebx, eax
test eax, eax
js 0x18000599a
mov rdx, rsi
mov rcx, rdi
call fcn.1800032c0
jmp 0x18000527b
cmp dword [rbp + 0x2230], 0
jne 0x180005721
mov r9d, 0x20019
mov r8, rsi
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.180002da0
mov edi, eax
test eax, eax
jne 0x180005726
jmp 0x180005730
mov edi, 2
mov dword [rbp + 0x2230], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.180017a64
test eax, eax
je 0x18000576d
cmp eax, 0xc
je 0x180005975
cmp eax, 0x16
je 0x18000596a
cmp eax, 0x22
je 0x18000596a
cmp eax, 0x50
jne 0x18000595f
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1800032c0
mov ebx, eax
test eax, eax
js 0x18000599a
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1800034e0
mov ebx, eax
test eax, eax
js 0x18000599a
cmp word [rsi], 0x7b
jne 0x1800057f8
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1800057f8
mov eax, dword [rbp + 0x2230]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x78]
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.180005200
mov ebx, eax
test eax, eax
jns 0x1800057e1
cmp dword [rbp + 0x2230], 0
je 0x18000599a
mov rdx, rsi
mov rcx, qword [rsp + 0x60]
call fcn.1800032c0
mov ebx, eax
test eax, eax
js 0x18000599a
mov eax, dword [rbp - 0x4c]
mov dword [rbp + 0x2230], eax
cmp edi, 2
je 0x180005285
test edi, edi
je 0x18000581b
test eax, eax
je 0x180005980
jmp 0x180005285
test eax, eax
je 0x180005884
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.180003470
test eax, eax
je 0x180005884
lea rdi, str.AppID
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180005285
add rdi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rdi, rax
jl 0x180005840
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180005285
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.180003730
jmp 0x180005285
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x60]
call fcn.180003470
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1800058ae
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x80], 0
test eax, eax
jne 0x180005988
mov eax, dword [rsp + 0x68]
test eax, eax
je 0x180005285
test edi, edi
jne 0x180005285
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], edi
mov qword [rbp - 0x58], 0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.180002cf0
test eax, eax
jne 0x180005984
jmp 0x180005285
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x180005911
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x1800059af
jmp 0x18000599a
mov ecx, eax
call fcn.180002c20
mov ebx, eax
test rdi, rdi
je 0x18000599a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000599a
mov ecx, eax
call fcn.180002c20
mov ebx, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x18000599a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x18000599a
jmp 0x1800058fe
jmp 0x1800058fe
mov ecx, eax
call fcn.180002c20
mov ebx, eax
jmp 0x18000599a
mov ecx, 0x80004005
call fcn.180001000
int3
mov ecx, 0x80070057
call fcn.180001000
int3
mov ecx, 0x8007000e
call fcn.180001000
int3
mov ecx, edi
jmp 0x180005993
mov ecx, eax
jmp 0x180005993
mov ecx, eax
call fcn.180002c20
mov ebx, eax
jmp 0x18000599a
call fcn.180002c20
mov ebx, eax
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1800059ad
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.180017180
add rsp, 0x22e8
pop rdi
pop rsi
pop rbx
pop rbp
ret