Function at 0x140003b40
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x10e8]
mov eax, 0x11e8
call fcn.1400189e0
sub rsp, rax
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rbp + 0x10d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rbp - 0x70], r8
mov rdi, rdx
mov qword [rsp + 0x68], rcx
xor esi, esi
mov qword [rsp + 0x78], rsi
and dword [rbp - 0x80], esi
and qword [rbp - 0x78], rsi
call fcn.140002ce4
mov ebx, eax
test eax, eax
js 0x1400042fd
cmp byte [rdi], 0x7d
je 0x1400042f8
mov eax, 1
mov dword [rsp + 0x74], eax
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor ebx, ebx
test eax, eax
sete bl
mov dword [rsp + 0x60], ebx
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140003bea
test ebx, ebx
je 0x140003cbd
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002ce4
mov ebx, eax
test eax, eax
js 0x1400042f8
cmp dword [rsp + 0x70], 0
je 0x140003cbd
and qword [rbp - 0x68], 0
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov rcx, rdi
mov al, byte [rdi]
jmp 0x140003c30
cmp al, 0x5c
je 0x140003c36
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140003c21
jmp 0x140003c3f
test rcx, rcx
jne 0x1400042bc
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140003c83
add rbx, 8
lea rax, [0x140022670]
cmp rbx, rax
jl 0x140003c46
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.140001b5c
cmp dword [rsp + 0x60], 0
je 0x140003cbd
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002ce4
mov ebx, eax
test eax, eax
js 0x1400042f8
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140003510
mov ebx, eax
test eax, eax
js 0x1400042f8
jmp 0x140003fa5
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003cec
and dword [rsp + 0x74], eax
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002ce4
mov ebx, eax
test eax, eax
js 0x1400042f8
lea rdx, [0x140022240]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003dfb
lea rdx, [rbp + 0xd0]
mov rcx, qword [rsp + 0x68]
call fcn.140002ce4
mov ebx, eax
test eax, eax
js 0x1400042f8
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002ce4
mov ebx, eax
test eax, eax
js 0x1400042f8
cmp byte [rdi], 0x3d
jne 0x1400042bc
cmp dword [rsp + 0x70], 0
je 0x140003d76
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov r9, rdi
lea r8, [rbp + 0xd0]
lea rdx, [rbp - 0x68]
mov rcx, qword [rsp + 0x68]
call fcn.140002e4c
mov ebx, eax
jmp 0x140003cb0
cmp dword [rbp + 0x1130], 0
jne 0x140003ddf
cmp dword [rsp + 0x74], 0
je 0x140003ddf
and qword [rbp - 0x68], 0
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x68]
call fcn.140001a78
test eax, eax
jne 0x1400042a2
lea rdx, [rbp + 0xd0]
mov rsi, qword [rbp - 0x68]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x14000428f
test rsi, rsi
je 0x140003ddf
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140003510
mov ebx, eax
test eax, eax
js 0x1400042f8
jmp 0x140004280
mov rcx, rdi
mov al, byte [rdi]
jmp 0x140003e11
cmp al, 0x5c
je 0x140003e17
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140003e02
jmp 0x140003e20
test rcx, rcx
jne 0x1400042c3
cmp dword [rsp + 0x70], 0
je 0x140004000
mov r9d, 0x2001f
mov r8, rdi
mov rsi, qword [rbp - 0x70]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140001a78
test eax, eax
je 0x140003f60
mov r9d, 0x20019
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.140001a78
xor ecx, ecx
test eax, eax
je 0x140003f60
mov qword [rsp + 0x60], rcx
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140003efa
cmp qword [rbx], rcx
je 0x140003eee
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140003ef3
lea rdx, str.RegCreateKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor ecx, ecx
test rax, rax
je 0x140003ef3
mov qword [rsp + 0x50], rcx
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call r10
jmp 0x140003f30
cmp dword [rbx + 8], ecx
jne 0x140003efa
mov eax, 1
jmp 0x140003f30
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400042ef
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140003f48
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x78], rsi
and dword [rbp - 0x80], 0
test eax, eax
jne 0x1400042ef
jmp 0x140003f65
mov rsi, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002ce4
mov ebx, eax
test eax, eax
js 0x1400042f8
cmp byte [rdi], 0x3d
jne 0x140003fa5
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call fcn.140002e4c
mov ebx, eax
test eax, eax
js 0x1400042f8
mov rsi, qword [rsp + 0x78]
cmp byte [rdi], 0x7b
jne 0x140004280
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x140003fb2
mov ecx, 1
cmp rax, rcx
jne 0x140004280
and dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x70]
mov r8, rsi
mov rdx, rdi
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call fcn.140003b40
mov ebx, eax
test eax, eax
js 0x1400042f8
mov rdx, rdi
mov rcx, rsi
call fcn.140002ce4
jmp 0x140003dec
mov ebx, dword [rbp + 0x1130]
test ebx, ebx
jne 0x140004025
mov r9d, 0x20019
mov r8, rdi
mov rdx, qword [rbp - 0x70]
lea rcx, [rsp + 0x78]
call fcn.140001a78
mov esi, eax
jmp 0x14000402a
mov esi, 2
mov eax, ebx
test esi, esi
mov ecx, 1
cmovne eax, ecx
mov dword [rsp + 0x60], eax
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14000d7c4
test eax, eax
je 0x140004077
cmp eax, 0xc
je 0x1400042e0
cmp eax, 0x16
je 0x1400042d5
cmp eax, 0x22
je 0x1400042d5
cmp eax, 0x50
jne 0x1400042ca
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002ce4
mov ebx, eax
test eax, eax
js 0x1400042f8
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140003510
mov ebx, eax
test eax, eax
js 0x1400042f8
cmp byte [rdi], 0x7b
jne 0x140004106
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], 0
jne 0x1400040ae
mov ecx, 1
cmp rax, rcx
jne 0x140004106
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140003b40
mov ebx, eax
test eax, eax
jns 0x1400040ef
cmp dword [rsp + 0x60], 0
je 0x1400042f8
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call fcn.140002ce4
mov ebx, eax
test eax, eax
js 0x1400042f8
cmp esi, 2
je 0x140004280
test esi, esi
je 0x140004125
cmp dword [rbp + 0x1130], 0
je 0x1400042eb
jmp 0x140004280
cmp dword [rbp + 0x1130], 0
je 0x1400041d7
and dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1400041d7
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x1400041d7
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140004280
add rsi, 8
lea rax, [0x140022670]
cmp rsi, rax
jl 0x140004194
cmp dword [rsp + 0x74], 0
je 0x140004280
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call fcn.140001b5c
jmp 0x140004280
and dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor esi, esi
test eax, eax
jne 0x140004231
cmp dword [rsp + 0x60], esi
seta sil
xor eax, eax
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140004249
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x78], 0
and dword [rbp - 0x80], 0
test eax, eax
jne 0x1400042ef
cmp dword [rsp + 0x74], eax
je 0x140004280
test esi, esi
jne 0x140004280
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x68], rax
and dword [rbp - 0x60], esi
and qword [rbp - 0x58], 0
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.14000197c
test eax, eax
jne 0x1400042ef
cmp byte [rdi], 0x7d
je 0x1400042f8
mov rsi, qword [rsp + 0x78]
jmp 0x140003baa
mov ecx, eax
call fcn.1400017b4
mov ebx, eax
test rsi, rsi
je 0x1400042f8
mov rcx, rsi
jmp 0x1400042b4
mov ecx, eax
call fcn.1400017b4
mov ebx, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400042f8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1400042f8
mov ebx, 0x80020009
jmp 0x1400042fd
mov ebx, 0x80020009
jmp 0x1400042f8
mov ecx, 0x80004005
call fcn.1400016ec
int3
mov ecx, 0x80070057
call fcn.1400016ec
int3
mov ecx, 0x8007000e
call fcn.1400016ec
int3
mov ecx, esi
jmp 0x1400042f1
mov ecx, eax
call fcn.1400017b4
mov ebx, eax
mov rsi, qword [rsp + 0x78]
test rsi, rsi
je 0x14000430b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10d0]
xor rcx, rsp
call fcn.140007b00
add rsp, 0x11e8
pop rdi
pop rsi
pop rbx
pop rbp
ret