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

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x2228]
mov eax, 0x2328
call fcn.180009d80
sub rsp, rax
mov qword [rbp - 8], 0xfffffffffffffffe
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x2210], rax
mov dword [rbp - 0x80], r9d
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov rax, rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov ecx, dword [rbp + 0x2270]
mov dword [rbp - 0x58], ecx
mov rcx, rax
call fcn.180004180
mov ebx, eax
test eax, eax
js 0x180004cca
cmp word [rsi], 0x7d
je 0x180004cca
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 0x180004402
test edi, edi
je 0x18000450f
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180004180
mov ebx, eax
test eax, eax
js 0x180004cca
cmp dword [rbp - 0x80], 0
je 0x18000450f
xor edx, edx
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x180004462
nop dword [rax + rax]
cmp ax, 0x5c
je 0x180004459
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x180004440
jmp 0x180004462
test rcx, rcx
jne 0x180004c34
lea rbx, [0x18000c980]
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800044cb
add rbx, 8
lea rax, str.APPID
cmp rbx, rax
jl 0x180004470
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x68], 0
mov qword [rbp - 0x60], 0
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.180003d90
mov qword [rbp - 0x70], 0
mov dword [rbp - 0x68], 0
mov qword [rbp - 0x60], 0
test edi, edi
je 0x180004508
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.180004180
mov ebx, eax
test eax, eax
js 0x180004c3d
mov rdx, rsi
mov rcx, rdi
call fcn.180003c00
mov ebx, eax
test eax, eax
js 0x180004c3d
xor ecx, ecx
mov dword [rbp - 0x68], ecx
jmp 0x1800048e3
mov dword [rbp - 0x68], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180004542
xor edi, edi
mov dword [rsp + 0x50], edi
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180004180
mov ebx, eax
test eax, eax
js 0x180004cca
jmp 0x180004546
mov edi, dword [rsp + 0x50]
lea rdx, [0x18000c868]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1800046aa
lea rdx, [rbp + 0x210]
mov rcx, qword [rsp + 0x58]
call fcn.180004180
mov ebx, eax
test eax, eax
js 0x180004cca
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180004180
mov ebx, eax
test eax, eax
js 0x180004cca
cmp word [rsi], 0x3d
jne 0x180004c83
cmp dword [rbp - 0x80], 0
je 0x1800045f7
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov dword [rbp - 0x48], ecx
mov qword [rbp - 0x40], rcx
mov rax, qword [rsp + 0x78]
mov qword [rbp - 0x50], rax
mov dword [rbp - 0x48], ecx
mov qword [rbp - 0x40], rcx
mov r9, rsi
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x50]
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.1800036c0
mov ebx, eax
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov dword [rbp - 0x48], ecx
mov qword [rbp - 0x40], rcx
mov dword [rbp - 0x48], ecx
test eax, eax
js 0x180004cca
jmp 0x1800048e3
cmp dword [rbp + 0x2270], 0
jne 0x180004698
test edi, edi
je 0x180004698
mov qword [rbp - 0x20], 0
mov dword [rbp - 0x18], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x78], 0
lea rax, [rbp - 0x78]
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_RegOpenKeyExW]
test eax, eax
jne 0x180004c71
mov dword [rbp - 0x18], eax
mov rdi, qword [rbp - 0x78]
mov qword [rbp - 0x20], rdi
mov dword [rbp - 0x18], eax
lea rdx, [rbp + 0x210]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x180004c49
test rdi, rdi
je 0x180004691
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x20], 0
mov dword [rbp - 0x18], 0
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180003c00
jmp 0x1800043b2
mov rcx, rsi
movzx eax, word [rsi]
test ax, ax
je 0x1800046d7
cmp ax, 0x5c
je 0x1800046ce
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1800046b5
jmp 0x1800046d7
test rcx, rcx
jne 0x180004c83
cmp dword [rbp - 0x80], 0
je 0x180004932
xor edi, edi
mov qword [rsp + 0x50], rdi
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
test rax, rax
je 0x180004719
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x2001f
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180003cc0
jmp 0x180004738
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x180004773
mov eax, edi
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180004753
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], edi
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], 0
test eax, eax
je 0x1800048a4
jmp 0x180004778
mov rdi, qword [rsp + 0x60]
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1800047ad
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180003cc0
jmp 0x1800047cc
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_RegOpenKeyExW]
xor ecx, ecx
test eax, eax
jne 0x180004803
mov eax, ecx
test rdi, rdi
je 0x1800047e9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], ecx
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ecx
test eax, eax
je 0x1800048a4
mov qword [rsp + 0x50], rcx
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x180004835
lea rcx, [rbp - 0x54]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800033d0
jmp 0x18000486b
lea rax, [rbp - 0x54]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x180004cc1
xor ebx, ebx
mov eax, ebx
test rdi, rdi
je 0x18000488a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebx
mov rdi, qword [rsp + 0x50]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x68], ebx
test eax, eax
jne 0x180004cc1
mov rdx, rsi
mov rdi, qword [rsp + 0x58]
mov rcx, rdi
call fcn.180004180
mov ebx, eax
test eax, eax
js 0x180004cca
cmp word [rsi], 0x3d
jne 0x1800048e1
mov r9, rsi
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.1800036c0
mov ebx, eax
test eax, eax
js 0x180004cca
xor ecx, ecx
cmp word [rsi], 0x7b
jne 0x1800043bc
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x1800048f1
cmp rax, 1
jne 0x1800043bc
mov dword [rsp + 0x20], ecx
mov r9d, dword [rbp - 0x80]
mov r8, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, rdi
call fcn.180004340
mov ebx, eax
test eax, eax
js 0x180004cca
mov rdx, rsi
mov rcx, rdi
jmp 0x1800043ad
cmp dword [rbp + 0x2270], 0
jne 0x1800049cb
xor ebx, ebx
mov qword [rbp - 0x78], rbx
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x180004972
lea rcx, [rbp - 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
mov r8, rsi
mov rdx, qword [rsp + 0x78]
mov rcx, rax
call fcn.180003cc0
jmp 0x180004992
lea rax, [rbp - 0x78]
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_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x1800049d0
mov edi, ebx
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1800049b4
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], ebx
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], ebx
test edi, edi
je 0x1800049da
jmp 0x1800049d0
mov edi, 2
mov dword [rbp + 0x2270], 1
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp]
call qword [sym.imp.MSVCR120.dll_wcsncpy_s]
test eax, eax
je 0x180004a18
cmp eax, 0xc
je 0x180004ca0
cmp eax, 0x16
je 0x180004c95
cmp eax, 0x22
je 0x180004c95
cmp eax, 0x50
jne 0x180004c8a
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180004180
mov ebx, eax
test eax, eax
js 0x180004cca
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180003c00
mov ebx, eax
test eax, eax
js 0x180004cca
cmp word [rsi], 0x7b
jne 0x180004aa9
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], 0
jne 0x180004a50
cmp rax, 1
jne 0x180004aa9
mov eax, dword [rbp + 0x2270]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180004340
mov ebx, eax
test eax, eax
jns 0x180004a92
cmp dword [rbp + 0x2270], 0
je 0x180004cca
mov rdx, rsi
mov rcx, qword [rsp + 0x58]
call fcn.180004180
mov ebx, eax
test eax, eax
js 0x180004cca
mov eax, dword [rbp - 0x58]
mov dword [rbp + 0x2270], eax
cmp edi, 2
je 0x1800043bc
test edi, edi
je 0x180004acc
test eax, eax
je 0x180004cab
jmp 0x1800043bc
test eax, eax
je 0x180004b34
mov rdx, qword [rsp + 0x60]
call fcn.180003f70
test eax, eax
je 0x180004b34
lea rdi, [0x18000c980]
nop word [rax + rax]
mov rdx, qword [rdi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1800043bc
add rdi, 8
lea rax, str.APPID
cmp rdi, rax
jl 0x180004af0
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800043bc
lea rdx, [rbp]
lea rcx, [rsp + 0x60]
call fcn.180003d90
jmp 0x1800043bc
mov rdx, qword [rsp + 0x60]
call fcn.180003f70
mov edi, eax
xor eax, eax
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x180004b59
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov qword [rsp + 0x60], rcx
mov dword [rsp + 0x68], 0
test eax, eax
jne 0x180004cc1
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1800043bc
test edi, edi
jne 0x1800043bc
mov qword [rbp - 0x38], 0
mov dword [rbp - 0x30], edi
mov qword [rbp - 0x28], 0
mov rcx, qword [rsp + 0x78]
mov qword [rbp - 0x38], rcx
mov dword [rbp - 0x30], edi
mov qword [rbp - 0x28], 0
cmp byte [0x1800156e8], dil
jne 0x180004bed
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004bd8
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1800156e0], rax
jmp 0x180004bdf
mov rax, qword [0x1800156e0]
mov byte [0x1800156e8], 1
mov rcx, qword [rsp + 0x78]
jmp 0x180004bf4
mov rax, qword [0x1800156e0]
lea rdx, [rbp]
test rax, rax
je 0x180004c07
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x180004c0d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rbp - 0x38], 0
mov dword [rbp - 0x30], 0
mov qword [rbp - 0x28], 0
test eax, eax
jne 0x180004caf
mov dword [rbp - 0x30], eax
jmp 0x1800043bc
mov dword [rbp - 0x68], 0
jmp 0x180004c83
mov dword [rbp - 0x68], 0
jmp 0x180004cca
mov ecx, eax
call fcn.180004170
mov ebx, eax
test rdi, rdi
je 0x180004c68
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x20], 0
mov dword [rbp - 0x18], 0
jmp 0x180004cca
mov ecx, eax
call fcn.180004170
mov ebx, eax
mov dword [rbp - 0x18], 0
jmp 0x180004cca
mov ebx, 0x80020009
jmp 0x180004cca
mov ecx, 0x80004005
call fcn.180003be0
int3
mov ecx, 0x80070057
call fcn.180003be0
int3
mov ecx, 0x8007000e
call fcn.180003be0
int3
mov ecx, edi
jmp 0x180004cc3
mov ecx, eax
call fcn.180004170
mov ebx, eax
mov dword [rbp - 0x30], 0
jmp 0x180004cca
mov ecx, eax
call fcn.180004170
mov ebx, eax
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x180004ce6
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x68], 0
mov eax, ebx
mov rcx, qword [rbp + 0x2210]
xor rcx, rsp
call fcn.180008f70
add rsp, 0x2328
pop rdi
pop rsi
pop rbx
pop rbp
ret