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

Disassembly:
push rbx
push rbp
push rsi
mov eax, 0x22f0
call fcn.1400961d0
sub rsp, rax
mov rax, qword [0x1401786a0]
xor rax, rsp
mov qword [rsp + 0x22d0], rax
mov rax, rcx
mov qword [rsp + 0x58], rcx
mov ecx, dword [rsp + 0x2330]
xor ebp, ebp
mov dword [rsp + 0x90], ecx
mov rcx, rax
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x78], r8
mov rsi, rdx
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], ebp
call fcn.140062f80
mov ebx, eax
test eax, eax
js 0x14006553a
cmp word [rsi], 0x7d
mov qword [rsp + 0x22e8], rdi
je 0x140065530
lea rdx, str.Delete
mov rcx, rsi
mov dword [rsp + 0x50], 1
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edi, edi
lea rdx, str.ForceRemove
test eax, eax
mov rcx, rsi
sete dil
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400653e1
test edi, edi
je 0x1400654f5
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.140062f80
mov ebx, eax
test eax, eax
js 0x140065522
cmp dword [rsp + 0x60], 0
je 0x1400654f5
xor eax, eax
mov rcx, rsi
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], eax
movzx eax, word [rsi]
test ax, ax
je 0x140065442
nop
cmp ax, 0x5c
je 0x140065439
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x140065420
jmp 0x140065442
test rcx, rcx
jne 0x140065b71
lea rbx, str.Pz_t_
nop dword [rax]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400654af
lea rax, [0x140097d40]
add rbx, 8
cmp rbx, rax
jl 0x140065450
mov rax, qword [rsp + 0x78]
lea rcx, [rsp + 0x80]
mov rdx, rsi
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x88], 0
call fcn.140063670
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x88], 0
test edi, edi
je 0x1400654ea
mov rdi, qword [rsp + 0x58]
mov rdx, rsi
mov rcx, rdi
call fcn.140062f80
mov ebx, eax
test eax, eax
js 0x140065522
mov rdx, rsi
mov rcx, rdi
call fcn.140063210
mov ebx, eax
test eax, eax
js 0x140065522
mov dword [rsp + 0x88], 0
jmp 0x14006581e
mov dword [rsp + 0x88], 0
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140065555
mov rcx, qword [rsp + 0x58]
xor edi, edi
mov rdx, rsi
mov dword [rsp + 0x50], edi
call fcn.140062f80
mov ebx, eax
test eax, eax
jns 0x140065559
test rbp, rbp
je 0x140065530
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rdi, qword [rsp + 0x22e8]
mov rcx, qword [rsp + 0x22d0]
xor rcx, rsp
call fcn.1400762d0
add rsp, 0x22f0
pop rsi
pop rbp
pop rbx
ret
mov edi, dword [rsp + 0x50]
lea rdx, [0x140097aa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140065698
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x2d0]
call fcn.140062f80
mov ebx, eax
test eax, eax
js 0x140065522
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.140062f80
mov ebx, eax
test eax, eax
js 0x140065522
cmp word [rsi], 0x3d
jne 0x140065b71
cmp dword [rsp + 0x60], 0
je 0x14006560c
mov rax, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x58]
lea r8, [rsp + 0x2d0]
lea rdx, [rsp + 0x98]
mov rcx, rdi
mov r9, rsi
mov qword [rsp + 0x98], rax
mov dword [rsp + 0xa0], 0
call fcn.140064f30
mov ebx, eax
xor eax, eax
mov qword [rsp + 0x98], rax
mov dword [rsp + 0xa0], eax
test ebx, ebx
js 0x140065bcb
mov dword [rsp + 0xa0], eax
jmp 0x14006581e
cmp dword [rsp + 0x2330], 0
jne 0x14006567c
test edi, edi
je 0x14006567c
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x50]
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140065b63
mov rdi, qword [rsp + 0x50]
lea rdx, [rsp + 0x2d0]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x14006566e
cmp eax, 2
jne 0x140065b43
test rdi, rdi
je 0x14006567c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.140063210
mov ebx, eax
test eax, eax
js 0x140065522
jmp 0x140065b34
movzx eax, word [rsi]
mov rcx, rsi
test ax, ax
je 0x1400656c5
cmp ax, 0x5c
je 0x1400656bc
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
mov ax, word [rax]
test ax, ax
jne 0x1400656a3
jmp 0x1400656c5
test rcx, rcx
jne 0x140065b71
cmp dword [rsp + 0x60], 0
je 0x140065879
mov rbx, qword [rsp + 0x78]
lea rax, [rsp + 0x50]
xor edi, edi
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140065725
mov eax, edi
test rbp, rbp
je 0x14006570f
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x68], rbp
test eax, eax
je 0x1400657dc
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14006576f
mov eax, edi
test rbp, rbp
je 0x14006575d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x68], rbp
test eax, eax
je 0x1400657dc
lea rax, [rsp + 0xb0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov rcx, rbx
mov dword [rsp + 0x28], 0x2001f
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140065bc2
mov eax, edi
test rbp, rbp
je 0x1400657c6
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x50]
mov dword [rsp + 0x70], edi
mov qword [rsp + 0x68], rbp
test eax, eax
jne 0x140065bc2
mov rdi, qword [rsp + 0x58]
mov rdx, rsi
mov rcx, rdi
call fcn.140062f80
mov ebx, eax
test eax, eax
js 0x140065522
cmp word [rsi], 0x3d
jne 0x14006581e
lea rdx, [rsp + 0x68]
mov r9, rsi
xor r8d, r8d
mov rcx, rdi
call fcn.140064f30
mov ebx, eax
test eax, eax
js 0x140065b89
mov rbp, qword [rsp + 0x68]
cmp word [rsi], 0x7b
jne 0x140065b34
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x140065b34
mov r9d, dword [rsp + 0x60]
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.140065330
mov ebx, eax
test eax, eax
js 0x140065522
mov rdx, rsi
mov rcx, rdi
call fcn.140062f80
mov ebx, eax
test eax, eax
js 0x140065522
jmp 0x140065b34
cmp dword [rsp + 0x2330], 0
jne 0x1400658e0
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0xa8]
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov qword [rsp + 0x20], rax
mov qword [rsp + 0xa8], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x1400658da
mov edi, ebx
test rbp, rbp
je 0x1400658c9
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov rbp, qword [rsp + 0xa8]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x68], rbp
test edi, edi
je 0x1400658f0
jmp 0x1400658e5
mov edi, 2
mov dword [rsp + 0x2330], 1
lea rcx, [rsp + 0xc0]
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
call fcn.140076148
test eax, eax
je 0x140065931
cmp eax, 0xc
je 0x140065ba9
cmp eax, 0x16
je 0x140065b9e
cmp eax, 0x22
je 0x140065b9e
cmp eax, 0x50
jne 0x140065b93
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.140062f80
mov ebx, eax
test eax, eax
js 0x140065522
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.140063210
mov ebx, eax
test eax, eax
js 0x140065522
cmp word [rsi], 0x7b
jne 0x1400659bc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x1400659bc
mov eax, dword [rsp + 0x2330]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov r8, rbp
mov rdx, rsi
mov dword [rsp + 0x20], eax
call fcn.140065330
mov ebx, eax
test eax, eax
jns 0x1400659a5
cmp dword [rsp + 0x2330], 0
je 0x140065522
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call fcn.140062f80
mov ebx, eax
test eax, eax
js 0x140065522
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x2330], eax
cmp edi, 2
je 0x140065b34
test edi, edi
je 0x1400659ed
test eax, eax
jne 0x140065b34
mov ecx, edi
call fcn.140062570
mov ebx, eax
jmp 0x140065522
test eax, eax
je 0x140065a61
mov rcx, qword [rsp + 0x58]
mov rdx, rbp
call fcn.1400631a0
test eax, eax
je 0x140065a61
lea rdi, str.Pz_t_
nop dword [rax]
mov rdx, qword [rdi]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140065b34
lea rax, [0x140097d40]
add rdi, 8
cmp rdi, rax
jl 0x140065a10
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140065b34
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x68]
call fcn.140063670
mov rbp, qword [rsp + 0x68]
jmp 0x140065b34
mov rcx, qword [rsp + 0x58]
mov rdx, rbp
call fcn.1400631a0
mov edi, eax
xor eax, eax
test rbp, rbp
je 0x140065a87
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov qword [rsp + 0x68], rbp
mov dword [rsp + 0x70], 0
test eax, eax
jne 0x140065bc2
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140065b34
test edi, edi
jne 0x140065b34
cmp byte [0x140179c50], dil
jne 0x140065af6
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140065ae6
lea rdx, [0x140098248]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov byte [0x140179c50], 1
mov qword [0x140179c48], rax
jmp 0x140065afd
mov rax, qword [0x140179c48]
mov byte [0x140179c50], 1
jmp 0x140065afd
mov rax, qword [0x140179c48]
test rax, rax
je 0x140065b19
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0xc0]
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140065b2c
mov rcx, qword [rsp + 0x78]
lea rdx, [rsp + 0xc0]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x140065bb4
cmp word [rsi], 0x7d
jne 0x1400653a5
jmp 0x140065522
mov ecx, eax
call fcn.140062570
mov ebx, eax
test rdi, rdi
je 0x140065522
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140065522
mov ecx, eax
call fcn.140062570
mov ebx, eax
jmp 0x140065522
test rbp, rbp
je 0x140065b7f
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x140065532
mov rbp, qword [rsp + 0x68]
jmp 0x140065522
mov ecx, 0x80004005
call fcn.1400014f0
int3
mov ecx, 0x80070057
call fcn.1400014f0
int3
mov ecx, 0x8007000e
call fcn.1400014f0
int3
mov ecx, eax
call fcn.140062570
mov ebx, eax
jmp 0x140065522
mov ecx, eax
call fcn.140062570
mov ebx, eax
test rbp, rbp
jmp 0x140065525