Function at 0x14004b5ac
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.140245900
sub rsp, rax
mov rax, qword [0x1403b9010]
xor rax, rsp
mov qword [rbp + 0x2210], rax
mov dword [rsp + 0x68], r9d
mov r15, r8
mov qword [rbp - 0x78], r8
mov rdi, rdx
mov r13, rcx
xor esi, esi
mov r14d, esi
mov qword [rsp + 0x70], rsi
mov dword [rsp + 0x78], esi
mov qword [rbp - 0x80], rsi
call fcn.14004b3f0
test eax, eax
mov ebx, eax
js 0x14004beb5
cmp word [rdi], 0x7d
je 0x14004beb5
mov r12d, 1
lea rdx, [0x14037ed50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov esi, ebx
test eax, eax
sete sil
lea rdx, [0x14037ed60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14004b658
test esi, esi
je 0x14004b744
mov rdx, rdi
mov rcx, r13
call fcn.14004b3f0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004beb5
cmp dword [rsp + 0x68], edx
je 0x14004b742
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14004b6a0
cmp ax, 0x5c
je 0x14004b6a7
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x14004b68c
jmp 0x14004b6b0
test rcx, rcx
jne 0x14004be5d
lea rbx, [0x14037eec0]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14004b6fd
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x14004b6b7
mov qword [rbp - 0x70], r15
xor ebx, ebx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.14004b150
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov qword [rbp - 0x60], rbx
jmp 0x14004b6ff
xor ebx, ebx
test esi, esi
je 0x14004b73d
mov rdx, rdi
mov rcx, r13
call fcn.14004b3f0
mov ebx, eax
xor r12d, r12d
test eax, eax
js 0x14004be67
mov rdx, rdi
mov rcx, r13
call fcn.14004aff0
mov ebx, eax
mov dword [rbp - 0x68], r12d
test eax, eax
js 0x14004beb5
mov esi, dword [rsp + 0x68]
jmp 0x14004bac1
mov dword [rbp - 0x68], ebx
jmp 0x14004b744
xor ebx, ebx
lea rdx, [0x14037ed78]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14004b770
mov r12d, ebx
mov rdx, rdi
mov rcx, r13
call fcn.14004b3f0
mov ebx, eax
test eax, eax
js 0x14004beb5
lea rdx, [0x14037ed90]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14004b8af
lea rdx, [rbp + 0x210]
mov rcx, r13
call fcn.14004b3f0
mov ebx, eax
test eax, eax
js 0x14004beb5
mov rdx, rdi
mov rcx, r13
call fcn.14004b3f0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004beb5
cmp word [rdi], 0x3d
jne 0x14004be60
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x14004b812
xor r12d, r12d
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x48], r12d
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x50], r15
mov dword [rbp - 0x48], r12d
mov qword [rbp - 0x40], r12
mov r9, rdi
lea r8, [rbp + 0x210]
lea rdx, [rbp - 0x50]
mov rcx, r13
call fcn.14004aa14
mov ebx, eax
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x48], r12d
mov qword [rbp - 0x40], r12
mov dword [rbp - 0x48], r12d
jmp 0x14004bab9
cmp dword [rbp + 0x2290], edx
jne 0x14004b89f
test r12d, r12d
je 0x14004b89f
xor r12d, r12d
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x30], r12d
mov qword [rbp - 0x28], r12
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004be8a
mov dword [rbp - 0x30], r12d
mov rsi, qword [rsp + 0x60]
mov qword [rbp - 0x38], rsi
mov dword [rbp - 0x30], r12d
lea rdx, [rbp + 0x210]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x14004be6d
test rsi, rsi
je 0x14004b89b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x38], r12
mov dword [rbp - 0x30], r12d
mov rdx, rdi
mov rcx, r13
call fcn.14004aff0
jmp 0x14004b608
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x14004b8c9
cmp ax, 0x5c
je 0x14004b8d0
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14004b8b7
jmp 0x14004b8d9
test rcx, rcx
jne 0x14004be60
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x14004bb0e
xor r12d, r12d
mov qword [rsp + 0x60], r12
mov rbx, qword [rbp - 0x80]
lea rax, [rsp + 0x60]
test rbx, rbx
je 0x14004b91b
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
xor r9d, r9d
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.14004b098
jmp 0x14004b935
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004b96b
mov eax, r12d
test r14, r14
je 0x14004b94f
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r12d
test eax, eax
je 0x14004ba84
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
test rbx, rbx
je 0x14004b99a
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.14004b098
jmp 0x14004b9b4
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14004b9ea
mov eax, r12d
test r14, r14
je 0x14004b9ce
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r12d
test eax, eax
je 0x14004ba84
mov qword [rsp + 0x60], r12
lea rax, [rbp - 0x58]
test rbx, rbx
je 0x14004ba17
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov r8, rdi
mov rdx, r15
mov rcx, rbx
call fcn.14004a920
jmp 0x14004ba4a
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14004beac
mov eax, r12d
test r14, r14
je 0x14004ba68
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], r12
mov dword [rsp + 0x78], r12d
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], r12d
test eax, eax
jne 0x14004beac
mov rdx, rdi
mov rcx, r13
call fcn.14004b3f0
mov ebx, eax
test eax, eax
js 0x14004beb5
cmp word [rdi], 0x3d
jne 0x14004bac1
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r13
call fcn.14004aa14
mov ebx, eax
mov r14, qword [rsp + 0x70]
test eax, eax
js 0x14004beb5
cmp word [rdi], 0x7b
jne 0x14004b612
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r12w
jne 0x14004bacf
cmp rax, 1
jne 0x14004b612
mov dword [rsp + 0x20], r12d
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r13
call fcn.14004b5ac
mov ebx, eax
test eax, eax
js 0x14004beb5
mov rdx, rdi
mov rcx, r13
jmp 0x14004b603
mov ebx, dword [rbp + 0x2290]
xor ecx, ecx
test ebx, ebx
jne 0x14004bba5
mov qword [rsp + 0x60], rcx
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x14004bb51
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x20019
xor r9d, r9d
mov r8, rdi
mov rdx, r15
mov rcx, rax
call fcn.14004b098
jmp 0x14004bb70
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor ecx, ecx
test eax, eax
jne 0x14004bbaa
mov esi, ecx
test r14, r14
je 0x14004bb91
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor ecx, ecx
mov qword [rsp + 0x70], rcx
mov dword [rsp + 0x78], ecx
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x70], r14
mov dword [rsp + 0x78], ecx
jmp 0x14004bbaa
mov esi, 2
mov r15d, 1
test esi, esi
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp]
call fcn.140071048
test eax, eax
je 0x14004bbf3
cmp eax, 0xc
je 0x14004bef3
cmp eax, 0x16
je 0x14004bf09
cmp eax, 0x22
je 0x14004bf09
cmp eax, 0x50
jne 0x14004befe
mov rdx, rdi
mov rcx, r13
call fcn.14004b3f0
mov ebx, eax
test eax, eax
js 0x14004beb5
mov rdx, rdi
mov rcx, r13
call fcn.14004aff0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004beb5
cmp word [rdi], 0x7b
jne 0x14004bc74
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x14004bc29
cmp rax, 1
jne 0x14004bc74
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r13
call fcn.14004b5ac
mov ebx, eax
test eax, eax
jns 0x14004bc5d
test r15d, r15d
je 0x14004beb5
mov rdx, rdi
mov rcx, r13
call fcn.14004b3f0
mov ebx, eax
xor edx, edx
test eax, eax
js 0x14004beb5
cmp esi, 2
je 0x14004bc89
test esi, esi
je 0x14004bc92
cmp dword [rbp + 0x2290], edx
je 0x14004be99
mov r15, qword [rbp - 0x78]
jmp 0x14004b612
cmp dword [rbp + 0x2290], edx
je 0x14004bd35
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x14004bd35
cmp dword [rsp + 0x60], edx
jbe 0x14004bd35
lea rsi, [0x14037eec0]
mov rdx, qword [rsi]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14004bc89
add rsi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rsi, rax
jl 0x14004bcf3
test r12d, r12d
je 0x14004bc89
lea rdx, [rbp]
lea rcx, [rsp + 0x70]
call fcn.14004b150
mov r14, qword [rsp + 0x70]
jmp 0x14004bc89
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x14004bd87
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
test r14, r14
je 0x14004bda1
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14d, edx
mov qword [rsp + 0x70], rdx
mov dword [rsp + 0x78], edx
test eax, eax
jne 0x14004beac
test r12d, r12d
je 0x14004bc89
xor r12d, r12d
test esi, esi
jne 0x14004bc89
mov qword [rbp - 0x20], r12
mov dword [rbp - 0x18], r12d
mov qword [rbp - 0x10], r12
mov r15, qword [rbp - 0x78]
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], r12d
mov qword [rbp - 0x10], r12
cmp byte [0x1403e5eb8], r12b
jne 0x14004be21
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004be11
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1403e5eb0], rax
jmp 0x14004be18
mov rax, qword [0x1403e5eb0]
mov byte [0x1403e5eb8], 1
jmp 0x14004be28
mov rax, qword [0x1403e5eb0]
lea rdx, [rbp]
mov rcx, r15
test rax, rax
je 0x14004be3e
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x14004be44
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 0x14004be9d
mov dword [rbp - 0x18], r12d
jmp 0x14004b612
mov dword [rbp - 0x68], edx
mov ebx, 0x80020009
jmp 0x14004beb5
mov dword [rbp - 0x68], r12d
jmp 0x14004beb5
mov ecx, eax
call fcn.14004b3e0
mov ebx, eax
test rsi, rsi
je 0x14004be93
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x38], r12
jmp 0x14004be93
mov ecx, eax
call fcn.14004b3e0
mov ebx, eax
mov dword [rbp - 0x30], r12d
jmp 0x14004beb5
mov ecx, esi
jmp 0x14004beae
mov ecx, eax
call fcn.14004b3e0
mov ebx, eax
mov dword [rbp - 0x18], r12d
jmp 0x14004beb5
mov ecx, eax
call fcn.14004b3e0
mov ebx, eax
xor edi, edi
test r14, r14
je 0x14004beca
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x78], edi
mov eax, ebx
mov rcx, qword [rbp + 0x2210]
xor rcx, rsp
call fcn.14005f5e0
add rsp, 0x2328
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140034ce8
int3
mov ecx, 0x80004005
call fcn.140034ce8
int3
mov ecx, 0x80070057
call fcn.140034ce8
int3