Function at 0x140004958
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 - 0x21d8]
mov eax, 0x22d8
call fcn.14001c470
sub rsp, rax
mov rax, qword [0x14002c010]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x60], r9d
mov r14, r8
mov qword [rsp + 0x68], r8
mov rdi, rdx
mov r13, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x78], xmm0
mov r15d, eax
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], rax
call fcn.1400047bc
test eax, eax
mov ebx, eax
js 0x140004d0f
cmp word [rdi], 0x7d
je 0x140004d0f
mov r12d, 1
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
je 0x140004a06
test esi, esi
jne 0x140004ad8
mov rdx, rdi
mov rcx, r13
call fcn.1400047bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004d0f
cmp dword [rsp + 0x60], edx
je 0x140004ad6
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x60], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140004a4d
cmp ax, 0x5c
je 0x140004a54
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004a3b
jmp 0x140004a5d
test rcx, rcx
jne 0x1400050c8
lea rbx, [0x140027460]
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
je 0x140004a9d
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x140004a64
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], ecx
mov qword [rbp - 0x60], rcx
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140004574
test esi, esi
jne 0x140004ad6
mov rdx, rdi
mov rcx, r13
call fcn.1400047bc
mov ebx, eax
test eax, eax
js 0x140004d0f
mov rdx, rdi
mov rcx, r13
call fcn.1400043c4
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004d0f
mov esi, dword [rsp + 0x60]
jmp 0x140004d80
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140004b04
mov r12d, ebx
mov rdx, rdi
mov rcx, r13
call fcn.1400047bc
mov ebx, eax
test eax, eax
js 0x140004d0f
lea rdx, [0x140027330]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140004c02
lea rdx, [rbp + 0x1c0]
mov rcx, r13
call fcn.1400047bc
mov ebx, eax
test eax, eax
js 0x140004d0f
mov rdx, rdi
mov rcx, r13
call fcn.1400047bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004d0f
cmp word [rdi], 0x3d
jne 0x1400050c8
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140004b8f
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x70], r14
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov r9, rdi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.140003dc0
mov ebx, eax
xor edx, edx
jmp 0x140004d7c
cmp dword [rbp + 0x2240], edx
jne 0x140004bf2
test r12d, r12d
je 0x140004bf2
mov qword [rbp - 0x68], rdx
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x60], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.14000447c
test eax, eax
jne 0x1400050a7
lea rdx, [rbp + 0x1c0]
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140005090
test rsi, rsi
je 0x140004bf2
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r13
call fcn.1400043c4
jmp 0x1400049bc
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140004c1c
cmp ax, 0x5c
je 0x140004c23
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004c0a
jmp 0x140004c2c
test rcx, rcx
jne 0x1400050c8
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140004dcb
mov r15d, 0x2001f
mov r9d, r15d
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.14000447c
xor ebx, ebx
test eax, eax
je 0x140004d42
lea r9d, [r15 - 6]
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.14000447c
test eax, eax
je 0x140004d42
mov qword [rsp + 0x70], rbx
mov rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x58]
test rcx, rcx
je 0x140004ca5
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov r8, rdi
mov rdx, r14
call fcn.140003ca4
jmp 0x140004cd4
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x140004cfd
mov eax, edx
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140004cee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r15, qword [rsp + 0x70]
mov qword [rsp + 0x78], r15
mov dword [rbp - 0x80], edx
jmp 0x140004d02
mov r15, qword [rsp + 0x78]
test eax, eax
je 0x140004d47
mov ecx, eax
call fcn.1400047ac
mov ebx, eax
test r15, r15
je 0x140004d1d
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.140007000
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r15, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, r13
call fcn.1400047bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004d0f
cmp word [rdi], 0x3d
jne 0x140004d80
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r13
call fcn.140003dc0
mov ebx, eax
xor edx, edx
mov r15, qword [rsp + 0x78]
test eax, eax
js 0x140004d0f
cmp word [rdi], 0x7b
jne 0x1400049c6
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140004d8e
cmp rax, 1
jne 0x1400049c6
mov dword [rsp + 0x20], edx
mov r9d, esi
mov r8, r15
mov rdx, rdi
mov rcx, r13
call fcn.140004958
mov ebx, eax
test eax, eax
js 0x140004d0f
mov rdx, rdi
mov rcx, r13
jmp 0x1400049b7
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x140004df4
mov r9d, 0x20019
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.14000447c
mov esi, eax
mov r15, qword [rsp + 0x78]
jmp 0x140004df9
mov esi, 2
mov r14d, 1
test esi, esi
cmove r14d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call fcn.1400105f8
test eax, eax
je 0x140004e42
cmp eax, 0xc
je 0x1400050d9
cmp eax, 0x16
je 0x1400050ef
cmp eax, 0x22
je 0x1400050ef
cmp eax, 0x50
jne 0x1400050e4
mov rdx, rdi
mov rcx, r13
call fcn.1400047bc
mov ebx, eax
test eax, eax
js 0x140004d0f
mov rdx, rdi
mov rcx, r13
call fcn.1400043c4
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004d0f
cmp word [rdi], 0x7b
jne 0x140004ec3
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140004e78
cmp rax, 1
jne 0x140004ec3
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rdi
mov rcx, r13
call fcn.140004958
mov ebx, eax
test eax, eax
jns 0x140004eac
test r14d, r14d
je 0x140004d0f
mov rdx, rdi
mov rcx, r13
call fcn.1400047bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140004d0f
cmp esi, 2
je 0x140004ed8
test esi, esi
je 0x140004ee2
cmp dword [rbp + 0x2240], edx
je 0x1400050d2
mov r14, qword [rsp + 0x68]
jmp 0x1400049c6
cmp dword [rbp + 0x2240], edx
je 0x140004f90
mov dword [rsp + 0x70], 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 + 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]
xor edx, edx
test eax, eax
jne 0x140004f90
mov eax, edx
cmp dword [rsp + 0x70], edx
seta al
test eax, eax
je 0x140004f90
lea rsi, [0x140027460]
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140004ed8
add rsi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rsi, rax
jl 0x140004f4a
test r12d, r12d
je 0x140004ed8
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.140004574
mov r15, qword [rsp + 0x78]
jmp 0x140004ed8
mov dword [rsp + 0x70], 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 + 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]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x140004fe2
cmp dword [rsp + 0x70], edx
seta sil
mov eax, edx
test r15, r15
je 0x140004ffc
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r15d, edx
mov qword [rsp + 0x78], rdx
mov dword [rbp - 0x80], edx
test eax, eax
jne 0x140004d06
test r12d, r12d
je 0x140004ed8
test esi, esi
jne 0x140004ed8
cmp byte [0x14002e790], dl
jne 0x14000505b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000504b
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14002e788], rax
jmp 0x140005052
mov rax, qword [0x14002e788]
mov byte [0x14002e790], 1
jmp 0x140005062
mov rax, qword [0x14002e788]
lea rdx, [rbp - 0x50]
mov r14, qword [rsp + 0x68]
mov rcx, r14
test rax, rax
je 0x14000507d
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140005083
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140004d06
jmp 0x1400049c6
mov ecx, eax
call fcn.1400047ac
mov ebx, eax
test rsi, rsi
je 0x140004d0f
mov rcx, rsi
jmp 0x1400050bd
mov ecx, eax
call fcn.1400047ac
mov ebx, eax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140004d0f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004d0f
mov ebx, 0x80020009
jmp 0x140004d0f
mov ecx, esi
jmp 0x140004d08
mov ecx, 0x8007000e
call fcn.140001994
int3
mov ecx, 0x80004005
call fcn.140001994
int3
mov ecx, 0x80070057
call fcn.140001994
int3