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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2228]
mov eax, 0x2328
call fcn.180013970
sub rsp, rax
mov rax, qword [0x180021018]
xor rax, rsp
mov qword [rbp + 0x2210], rax
mov dword [rsp + 0x60], r9d
mov r14, r8
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov r13, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], rax
xor r15d, r15d
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], rax
call fcn.180004d20
mov ebx, eax
test eax, eax
js 0x180005391
cmp word [rsi], 0x7d
je 0x180005391
mov r12d, 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 0x180004f86
test edi, edi
je 0x18000509b
mov rdx, rsi
mov rcx, r13
call fcn.180004d20
mov ebx, eax
test eax, eax
js 0x180005391
cmp dword [rsp + 0x60], 0
je 0x18000509b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rax
xor edx, edx
mov qword [rbp - 0x68], rdx
mov dword [rbp - 0x60], edx
mov qword [rbp - 0x58], rdx
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180004ff2
nop dword [rax + rax]
cmp ax, 0x5c
je 0x180004fe9
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180004fd0
jmp 0x180004ff2
test rcx, rcx
jne 0x18000577f
lea rbx, [0x18001a970]
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180005056
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x180005000
mov qword [rbp - 0x68], r14
mov dword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.180004a20
mov qword [rbp - 0x68], 0
mov dword [rbp - 0x60], 0
mov qword [rbp - 0x58], 0
test edi, edi
je 0x180005094
mov rdx, rsi
mov rcx, r13
call fcn.180004d20
mov ebx, eax
test eax, eax
js 0x180005790
mov rdx, rsi
mov rcx, r13
call fcn.180004850
mov ebx, eax
test eax, eax
js 0x180005790
xor r12d, r12d
mov dword [rbp - 0x60], r12d
mov edi, dword [rsp + 0x60]
jmp 0x180005411
mov dword [rbp - 0x60], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800050c7
xor r12d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.180004d20
mov ebx, eax
test eax, eax
js 0x180005391
lea rdx, [0x18001a840]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180005200
lea rdx, [rbp + 0x210]
mov rcx, r13
call fcn.180004d20
mov ebx, eax
test eax, eax
js 0x180005391
mov rdx, rsi
mov rcx, r13
call fcn.180004d20
mov ebx, eax
test eax, eax
js 0x180005391
cmp word [rsi], 0x3d
jne 0x180005786
mov edi, dword [rsp + 0x60]
test edi, edi
je 0x180005174
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
xor r12d, r12d
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x48], r12d
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x50], r14
mov dword [rbp - 0x48], r12d
mov qword [rbp - 0x40], r12
mov r9, rsi
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x50]
mov rcx, r13
call fcn.180004220
mov ebx, eax
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x48], r12d
mov qword [rbp - 0x40], r12
mov dword [rbp - 0x48], r12d
jmp 0x18000540d
cmp dword [rbp + 0x2290], 0
jne 0x1800051f0
test r12d, r12d
je 0x1800051f0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rax
xor r12d, r12d
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x30], r12d
mov qword [rbp - 0x28], r12
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x38]
call fcn.180004910
test eax, eax
jne 0x1800057c0
lea rdx, [rbp + 0x210]
mov rdi, qword [rbp - 0x38]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x18000579c
test rdi, rdi
je 0x1800051ec
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x30], r12d
mov rdx, rsi
mov rcx, r13
call fcn.180004850
jmp 0x180004f38
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180005232
nop dword [rax + rax]
cmp ax, 0x5c
je 0x180005229
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180005210
jmp 0x180005232
test rcx, rcx
jne 0x180005786
mov edi, dword [rsp + 0x60]
test edi, edi
je 0x180005461
mov r9d, UnmapViewOfFile
mov r8, rsi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.180004910
test eax, eax
je 0x1800053d4
mov r9d, 0x20019
mov r8, rsi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.180004910
test eax, eax
je 0x1800053d4
xor r12d, r12d
mov qword [rsp + 0x70], r12
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x180005318
cmp qword [rbx], r12
je 0x18000530b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800057e5
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x180005311
mov qword [rsp + 0x50], r12
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], UnmapViewOfFile
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
mov rax, r10
call qword [case.0x18000a30c.0]
jmp 0x18000534f
cmp dword [rbx + 8], r12d
jne 0x180005318
mov eax, 1
jmp 0x18000534f
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], UnmapViewOfFile
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x18000537f
mov eax, r12d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18000536b
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], r12
mov dword [rbp - 0x80], r12d
mov r15, qword [rsp + 0x70]
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x80], r12d
jmp 0x180005384
mov r15, qword [rsp + 0x78]
test eax, eax
je 0x1800053dc
mov ecx, eax
call fcn.180004d10
mov ebx, eax
test r15, r15
je 0x1800053a8
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x78], 0
mov dword [rbp - 0x80], 0
mov eax, ebx
mov rcx, qword [rbp + 0x2210]
xor rcx, rsp
call fcn.180011d80
add rsp, 0x2328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r15, qword [rsp + 0x78]
xor r12d, r12d
mov rdx, rsi
mov rcx, r13
call fcn.180004d20
mov ebx, eax
test eax, eax
js 0x180005391
cmp word [rsi], 0x3d
jne 0x180005411
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r13
call fcn.180004220
mov ebx, eax
mov r15, qword [rsp + 0x78]
test eax, eax
js 0x180005391
cmp word [rsi], 0x7b
jne 0x180004f42
mov rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x180005422
cmp rax, 1
jne 0x180004f42
mov dword [rsp + 0x20], r12d
mov r9d, edi
mov r8, r15
mov rdx, rsi
mov rcx, r13
call fcn.180004ed0
mov ebx, eax
test eax, eax
js 0x180005391
mov rdx, rsi
mov rcx, r13
jmp 0x180004f33
mov ebx, dword [rbp + 0x2290]
test ebx, ebx
jne 0x18000548a
mov r9d, 0x20019
mov r8, rsi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.180004910
mov edi, eax
mov r15, qword [rsp + 0x78]
jmp 0x18000548f
mov edi, 2
mov r14d, 1
test edi, edi
cmove r14d, ebx
mov r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x1800054dc
cmp eax, 0xc
je 0x18000580d
cmp eax, 0x16
je 0x180005823
cmp eax, 0x22
je 0x180005823
cmp eax, 0x50
jne 0x180005818
mov rdx, rsi
mov rcx, r13
call fcn.180004d20
mov ebx, eax
test eax, eax
js 0x180005391
mov rdx, rsi
mov rcx, r13
call fcn.180004850
mov ebx, eax
test eax, eax
js 0x180005391
cmp word [rsi], 0x7b
jne 0x18000555d
mov rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x180005513
cmp rax, 1
jne 0x18000555d
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rsi
mov rcx, r13
call fcn.180004ed0
mov ebx, eax
test eax, eax
jns 0x180005548
test r14d, r14d
je 0x180005391
mov rdx, rsi
mov rcx, r13
call fcn.180004d20
mov ebx, eax
test eax, eax
js 0x180005391
cmp edi, 2
je 0x180005573
test edi, edi
je 0x18000557d
cmp dword [rbp + 0x2290], 0
je 0x1800057f4
mov r14, qword [rsp + 0x68]
jmp 0x180004f42
xor r14d, r14d
cmp dword [rbp + 0x2290], r14d
je 0x18000563b
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x18000563b
mov eax, r14d
cmp dword [rsp + 0x70], eax
seta al
test eax, eax
je 0x18000563b
lea rdi, [0x18001a970]
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x180005573
add rdi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rdi, rax
jl 0x1800055f0
test r12d, r12d
je 0x180005573
lea rdx, [rbp]
lea rcx, [rsp + 0x78]
call fcn.180004a20
mov r15, qword [rsp + 0x78]
mov r14, qword [rsp + 0x68]
jmp 0x180004f42
mov dword [rsp + 0x70], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, r14d
test eax, eax
jne 0x18000568d
cmp dword [rsp + 0x70], eax
seta dil
mov eax, r14d
test r15, r15
je 0x1800056a6
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, r14
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r14d
test eax, eax
jne 0x180005388
test r12d, r12d
je 0x180005573
test edi, edi
jne 0x180005573
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rax
xor r12d, r12d
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], r12d
mov qword [rbp - 0x10], r12
mov r14, qword [rsp + 0x68]
mov qword [rbp - 0x20], r14
mov dword [rbp - 0x18], r12d
mov qword [rbp - 0x10], r12
cmp byte [0x180022448], r12b
jne 0x18000573b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000572b
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180022440], rax
mov byte [0x180022448], 1
jmp 0x180005742
mov rax, qword [0x180022440]
mov byte [0x180022448], 1
jmp 0x180005742
mov rax, qword [0x180022440]
lea rdx, [rbp]
mov rcx, r14
test rax, rax
je 0x18000575c
xor r9d, r9d
xor r8d, r8d
call qword [case.0x18000a30c.0]
jmp 0x180005762
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], r12d
mov qword [rbp - 0x10], r12
test eax, eax
jne 0x1800057fb
mov dword [rbp - 0x18], r12d
jmp 0x180004f42
mov dword [rbp - 0x60], 0
mov ebx, 0x80020009
jmp 0x180005391
mov dword [rbp - 0x60], 0
jmp 0x180005391
mov ecx, eax
call fcn.180004d10
mov ebx, eax
test rdi, rdi
je 0x1800057dc
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x30], r12d
jmp 0x180005391
mov ecx, eax
call fcn.180004d10
mov ebx, eax
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x1800057dc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x30], r12d
jmp 0x180005391
mov eax, 1
mov r15, qword [rsp + 0x78]
jmp 0x180005388
mov ecx, edi
jmp 0x18000538a
mov ecx, eax
call fcn.180004d10
mov ebx, eax
mov dword [rbp - 0x18], r12d
jmp 0x180005391
mov ecx, 0x8007000e
call fcn.180004820
int3
mov ecx, 0x80004005
call fcn.180004820
int3
mov ecx, 0x80070057
call fcn.180004820
int3