Function at 0x1400046c0
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 - 0x10d8]
mov eax, 0x11d8
call fcn.1400b81e0
sub rsp, rax
mov rax, qword [0x1401567f8]
xor rax, rsp
mov qword [rbp + 0x10c0], 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 qword [rbp - 0x78], rax
xor r15d, r15d
mov qword [rsp + 0x78], r15
and dword [rbp - 0x80], eax
and qword [rbp - 0x78], rax
call fcn.140003860
test eax, eax
mov ebx, eax
js 0x140004a2e
cmp byte [rdi], 0x7d
je 0x140004a2e
mov r12d, 1
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor esi, esi
test eax, eax
sete sil
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004775
test esi, esi
je 0x140004843
mov rdx, rdi
mov rcx, r13
call fcn.140003860
mov ebx, eax
test eax, eax
js 0x140004a2e
cmp dword [rsp + 0x60], 0
je 0x140004843
and dword [rbp - 0x64], 0
and qword [rbp - 0x70], 0
and dword [rbp - 0x68], 0
and qword [rbp - 0x60], 0
mov rcx, rdi
mov al, byte [rdi]
jmp 0x1400047bd
cmp al, 0x5c
je 0x1400047c3
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x1400047ae
jmp 0x1400047cc
test rcx, rcx
jne 0x140004eb7
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x14000480c
add rbx, 8
lea rax, [0x14013d510]
cmp rbx, rax
jl 0x1400047d3
mov qword [rbp - 0x70], r14
and dword [rbp - 0x68], 0
and qword [rbp - 0x60], 0
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140002710
test esi, esi
je 0x140004843
mov rdx, rdi
mov rcx, r13
call fcn.140003860
mov ebx, eax
test eax, eax
js 0x140004a2e
mov rdx, rdi
mov rcx, r13
call fcn.1400040bc
mov ebx, eax
test eax, eax
js 0x140004a2e
mov esi, dword [rsp + 0x60]
jmp 0x140004b67
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x14000486f
xor r12d, r12d
mov rdx, rdi
mov rcx, r13
call fcn.140003860
mov ebx, eax
test eax, eax
js 0x140004a2e
lea rdx, [0x14013b478]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140004975
lea rdx, [rbp + 0xc0]
mov rcx, r13
call fcn.140003860
mov ebx, eax
test eax, eax
js 0x140004a2e
mov rdx, rdi
mov rcx, r13
call fcn.140003860
mov ebx, eax
test eax, eax
js 0x140004a2e
cmp byte [rdi], 0x3d
jne 0x140004eb7
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x1400048fb
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x70], r14
and dword [rbp - 0x68], eax
and qword [rbp - 0x60], rax
mov r9, rdi
lea r8, [rbp + 0xc0]
lea rdx, [rbp - 0x70]
mov rcx, r13
call fcn.1400039d0
mov ebx, eax
jmp 0x140004b5f
cmp dword [rbp + 0x1140], 0
jne 0x140004965
test r12d, r12d
je 0x140004965
and dword [rbp - 0x64], 0
and qword [rbp - 0x70], 0
and dword [rbp - 0x68], 0
and qword [rbp - 0x60], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.140002618
test eax, eax
jne 0x140004e96
lea rdx, [rbp + 0xc0]
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x140004e7f
test rsi, rsi
je 0x140004965
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r13
call fcn.1400040bc
jmp 0x140004728
mov rcx, rdi
mov al, byte [rdi]
jmp 0x14000498b
cmp al, 0x5c
je 0x140004991
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x14000497c
jmp 0x14000499a
test rcx, rcx
jne 0x140004eb7
mov esi, dword [rsp + 0x60]
test esi, esi
je 0x140004bb2
mov r12d, 0x2001f
mov r9d, r12d
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140002618
xor r15d, r15d
test eax, eax
je 0x140004b26
lea r9d, [r12 - 6]
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140002618
test eax, eax
je 0x140004b26
mov qword [rsp + 0x70], r15
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140004ac7
cmp qword [rbx], r15
je 0x140004aba
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x140004a61
lea eax, [r15 + 1]
mov r15, qword [rsp + 0x78]
test eax, eax
je 0x140004b2b
mov ecx, eax
call fcn.140002288
mov ebx, eax
test r15, r15
je 0x140004a3c
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10c0]
xor rcx, rsp
call fcn.1400b7620
add rsp, 0x11d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, str.RegCreateKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor ecx, ecx
test rax, rax
je 0x140004ac0
mov qword [rsp + 0x50], rcx
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r10
jmp 0x140004afb
cmp dword [rbx + 8], r15d
jne 0x140004ac7
mov eax, 1
jmp 0x140004afb
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140004a18
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140004b13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x70]
mov qword [rsp + 0x78], r15
and dword [rbp - 0x80], 0
jmp 0x140004a1d
mov r15, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, r13
call fcn.140003860
mov ebx, eax
test eax, eax
js 0x140004a2e
cmp byte [rdi], 0x3d
jne 0x140004b67
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r13
call fcn.1400039d0
mov ebx, eax
mov r15, qword [rsp + 0x78]
test eax, eax
js 0x140004a2e
cmp byte [rdi], 0x7b
jne 0x140004732
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140004b74
cmp rax, 1
jne 0x140004732
and dword [rsp + 0x20], 0
mov r9d, esi
mov r8, r15
mov rdx, rdi
mov rcx, r13
call fcn.1400046c0
mov ebx, eax
test eax, eax
js 0x140004a2e
mov rdx, rdi
mov rcx, r13
jmp 0x140004723
mov ebx, dword [rbp + 0x1140]
test ebx, ebx
jne 0x140004bdb
mov r9d, 0x20019
mov r8, rdi
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140002618
mov esi, eax
mov r15, qword [rsp + 0x78]
jmp 0x140004be0
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.1400cabbc
test eax, eax
je 0x140004c29
cmp eax, 0xc
je 0x140004ec8
cmp eax, 0x16
je 0x140004ede
cmp eax, 0x22
je 0x140004ede
cmp eax, 0x50
jne 0x140004ed3
mov rdx, rdi
mov rcx, r13
call fcn.140003860
mov ebx, eax
test eax, eax
js 0x140004a2e
mov rdx, rdi
mov rcx, r13
call fcn.1400040bc
mov ebx, eax
test eax, eax
js 0x140004a2e
cmp byte [rdi], 0x7b
jne 0x140004ca5
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140004c5c
cmp rax, 1
jne 0x140004ca5
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rdi
mov rcx, r13
call fcn.1400046c0
mov ebx, eax
test eax, eax
jns 0x140004c90
test r14d, r14d
je 0x140004a2e
mov rdx, rdi
mov rcx, r13
call fcn.140003860
mov ebx, eax
test eax, eax
js 0x140004a2e
cmp esi, 2
je 0x140004cbb
test esi, esi
je 0x140004cc5
cmp dword [rbp + 0x1140], 0
je 0x140004ec1
mov r14, qword [rsp + 0x68]
jmp 0x140004732
cmp dword [rbp + 0x1140], 0
je 0x140004d78
and dword [rsp + 0x70], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
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]
test eax, eax
jne 0x140004d78
cmp dword [rsp + 0x70], eax
seta al
test eax, eax
je 0x140004d78
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004cbb
add rsi, 8
lea rax, [0x14013d510]
cmp rsi, rax
jl 0x140004d32
test r12d, r12d
je 0x140004cbb
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.140002710
mov r15, qword [rsp + 0x78]
jmp 0x140004cbb
and dword [rsp + 0x70], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
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 esi, esi
test eax, eax
jne 0x140004dd0
cmp dword [rsp + 0x70], esi
seta sil
xor eax, eax
test r15, r15
je 0x140004de8
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r15d, r15d
mov qword [rsp + 0x78], r15
and dword [rbp - 0x80], 0
test eax, eax
jne 0x140004a25
test r12d, r12d
je 0x140004cbb
test esi, esi
jne 0x140004cbb
cmp byte [0x140160370], sil
jne 0x140004e49
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140004e39
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140160378], rax
jmp 0x140004e40
mov rax, qword [0x140160378]
mov byte [0x140160370], 1
jmp 0x140004e50
mov rax, qword [0x140160378]
lea rdx, [rbp - 0x50]
mov r14, qword [rsp + 0x68]
mov rcx, r14
test rax, rax
je 0x140004e6b
xor r9d, r9d
xor r8d, r8d
call rax
jmp 0x140004e72
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop
test eax, eax
jne 0x140004a25
jmp 0x140004732
mov ecx, eax
call fcn.140002288
mov ebx, eax
test rsi, rsi
je 0x140004a2e
mov rcx, rsi
jmp 0x140004eac
mov ecx, eax
call fcn.140002288
mov ebx, eax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140004a2e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004a2e
mov ebx, 0x80020009
jmp 0x140004a2e
mov ecx, esi
jmp 0x140004a27
mov ecx, 0x8007000e
call fcn.1400020e0
int3
mov ecx, 0x80004005
call fcn.1400020e0
int3
mov ecx, 0x80070057
call fcn.1400020e0
int3