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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x21e8]
mov eax, 0x22b0
call fcn.00422ec0
sub rsp, rax
xor eax, eax
mov r15, r8
mov r14d, eax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], eax
mov rdi, rdx
mov qword [rsp + 0x78], rax
mov r12, rcx
call fcn.00418370
mov ebx, eax
test eax, eax
js 0x418c7c
cmp word [rdi], 0x7d
je 0x418c6e
lea rdx, str.Delete
mov rcx, rdi
mov r13d, 1
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
lea rdx, str.ForceRemove
test eax, eax
mov esi, ebx
mov rcx, rdi
sete sil
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4185ab
test esi, esi
je 0x418684
mov rdx, rdi
mov rcx, r12
call fcn.00418370
xor edx, edx
mov ebx, eax
test eax, eax
js 0x418c6e
cmp dword [rbp + 0x2208], edx
je 0x418682
movzx eax, word [rdi]
mov rcx, rdi
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x78], edx
mov qword [rbp - 0x70], rdx
jmp 0x4185f3
cmp ax, 0x5c
je 0x4185fa
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x4185e1
jmp 0x418603
test rcx, rcx
jne 0x418cb2
lea rbx, [0x00494830]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x418645
add rbx, 8
lea rax, str.RegDeleteKeyTransactedW
cmp rbx, rax
jl 0x41860a
xor ebx, ebx
mov qword [rbp - 0x80], r15
mov rdx, rdi
mov dword [rbp - 0x78], ebx
lea rcx, [rbp - 0x80]
mov qword [rbp - 0x70], rbx
call fcn.00418120
jmp 0x418647
xor ebx, ebx
test esi, esi
je 0x418684
mov rdx, rdi
mov rcx, r12
call fcn.00418370
mov ebx, eax
test eax, eax
js 0x418c6e
mov rdx, rdi
mov rcx, r12
call fcn.00418090
xor edx, edx
mov ebx, eax
test eax, eax
js 0x418c6e
mov esi, dword [rbp + 0x2208]
jmp 0x418924
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4186b0
mov rdx, rdi
mov rcx, r12
mov r13d, ebx
call fcn.00418370
mov ebx, eax
test eax, eax
js 0x418c6e
lea rdx, [0x00494710]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x4187a7
lea rdx, [rbp + 0x1b0]
mov rcx, r12
call fcn.00418370
mov ebx, eax
test eax, eax
js 0x418c6e
mov rdx, rdi
mov rcx, r12
call fcn.00418370
xor edx, edx
mov ebx, eax
test eax, eax
js 0x418c6e
cmp word [rdi], 0x3d
jne 0x418cb2
mov esi, dword [rbp + 0x2208]
test esi, esi
je 0x418729
mov dword [rbp - 0x78], edx
lea r8, [rbp + 0x1b0]
mov qword [rbp - 0x70], rdx
lea rdx, [rbp - 0x80]
mov qword [rbp - 0x80], r15
jmp 0x41890d
cmp dword [rbp + 0x2210], edx
jne 0x41878d
test r13d, r13d
je 0x41878d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rdx
mov r9d, 0x20006
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x418c65
mov rsi, qword [rsp + 0x60]
lea rdx, [rbp + 0x1b0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x418c99
test rsi, rsi
je 0x41878d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.00418090
mov ebx, eax
test eax, eax
js 0x418c6e
jmp 0x418565
movzx eax, word [rdi]
mov rcx, rdi
jmp 0x4187c3
cmp ax, 0x5c
je 0x4187ca
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
xor edx, edx
movzx eax, word [rax]
test ax, ax
jne 0x4187af
jmp 0x4187d3
test rcx, rcx
jne 0x418cb2
mov esi, dword [rbp + 0x2208]
test esi, esi
je 0x418974
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov r13d, 0x2001f
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
jne 0x418834
mov eax, ebx
test r14, r14
je 0x41881e
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x70], ebx
test eax, eax
je 0x4188e8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x60], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41887e
mov eax, ebx
test r14, r14
je 0x41886c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x70], ebx
test eax, eax
je 0x4188e8
lea rax, [rbp - 0x68]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x40], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov rdx, rdi
mov qword [rsp + 0x30], rbx
mov rcx, r15
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x418c65
mov eax, edx
test r14, r14
je 0x4188d2
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x70], edx
test eax, eax
jne 0x418c65
mov rdx, rdi
mov rcx, r12
call fcn.00418370
xor edx, edx
mov ebx, eax
test eax, eax
js 0x418c6e
cmp word [rdi], 0x3d
jne 0x418924
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov r9, rdi
mov rcx, r12
call fcn.00417b70
xor edx, edx
mov ebx, eax
test eax, eax
js 0x418c6e
cmp word [rdi], 0x7b
jne 0x418565
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x418932
cmp rax, 1
jne 0x418565
mov dword [rsp + 0x20], edx
mov r9d, esi
mov rdx, rdi
mov r8, r14
mov rcx, r12
call fcn.0041850c
mov ebx, eax
test eax, eax
js 0x418c6e
mov rdx, rdi
mov rcx, r12
call fcn.00418370
jmp 0x418798
mov ebx, dword [rbp + 0x2210]
test ebx, ebx
jne 0x4189ce
mov qword [rsp + 0x60], rdx
lea rax, [rsp + 0x60]
mov rdx, rdi
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor edx, edx
mov esi, eax
test eax, eax
jne 0x4189d3
mov esi, edx
test r14, r14
je 0x4189be
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor edx, edx
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x68], r14
mov dword [rsp + 0x70], edx
jmp 0x4189d3
mov esi, 2
test esi, esi
lea rcx, [rbp - 0x60]
mov r15d, 1
mov r8, rdi
cmove r15d, ebx
mov edx, 0x104
or r9, 0xffffffffffffffff
call fcn.00435528
test eax, eax
je 0x418a1c
cmp eax, 0xc
je 0x418cbd
cmp eax, 0x16
je 0x418cd3
cmp eax, 0x22
je 0x418cd3
cmp eax, 0x50
jne 0x418cc8
mov rdx, rdi
mov rcx, r12
call fcn.00418370
mov ebx, eax
test eax, eax
js 0x418c6e
mov rdx, rdi
mov rcx, r12
call fcn.00418090
xor edx, edx
mov ebx, eax
test eax, eax
js 0x418c6e
cmp word [rdi], 0x7b
jne 0x418a9d
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x418a52
cmp rax, 1
jne 0x418a9d
xor r9d, r9d
mov dword [rsp + 0x20], r15d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.0041850c
mov ebx, eax
test eax, eax
jns 0x418a86
test r15d, r15d
je 0x418c6e
mov rdx, rdi
mov rcx, r12
call fcn.00418370
xor edx, edx
mov ebx, eax
test eax, eax
js 0x418c6e
cmp esi, 2
je 0x418ab2
test esi, esi
je 0x418abe
cmp dword [rbp + 0x2210], edx
je 0x418cb9
mov r15, qword [rbp + 0x2200]
jmp 0x418565
cmp dword [rbp + 0x2210], edx
je 0x418b67
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
xor r9d, r9d
mov qword [rsp + 0x48], rdx
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov rcx, r14
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x60], edx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x418b67
cmp dword [rsp + 0x60], edx
mov eax, edx
seta al
test eax, eax
je 0x418b67
lea rsi, [0x00494830]
mov rdx, qword [rsi]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x418ab2
add rsi, 8
lea rax, str.RegDeleteKeyTransactedW
cmp rsi, rax
jl 0x418b26
test r13d, r13d
je 0x418ab2
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x68]
call fcn.00418120
jmp 0x418ab2
mov qword [rsp + 0x58], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rdx
xor r9d, r9d
mov qword [rsp + 0x48], rdx
xor r8d, r8d
mov qword [rsp + 0x40], rdx
mov rcx, r14
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x60], edx
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x418bb9
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
test r14, r14
je 0x418bd3
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14d, edx
mov qword [rsp + 0x68], rdx
mov dword [rsp + 0x70], edx
test eax, eax
jne 0x418c65
test r13d, r13d
je 0x418ab2
test esi, esi
jne 0x418ab2
cmp byte [0x004eef78], dl
jne 0x418c33
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x418c23
lea rdx, [0x004948c8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x004eef70], rax
jmp 0x418c2a
mov rax, qword [0x004eef70]
mov byte [0x004eef78], 1
jmp 0x418c3a
mov rax, qword [0x004eef70]
mov r15, qword [rbp + 0x2200]
lea rdx, [rbp - 0x60]
mov rcx, r15
test rax, rax
je 0x418c57
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x418c5d
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x418565
mov ecx, eax
call fcn.00418360
mov ebx, eax
test r14, r14
je 0x418c7c
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x22f0]
add rsp, 0x22b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, eax
call fcn.00418360
mov ebx, eax
test rsi, rsi
je 0x418c6e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x418c6e
mov ebx, 0x80020009
jmp 0x418c6e
mov ecx, esi
jmp 0x418c67
mov ecx, 0x8007000e
call fcn.0041805c
int3
mov ecx, 0x80004005
call fcn.0041805c
int3
mov ecx, 0x80070057
call fcn.0041805c
int3