Function at 0x1400039ec
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 - 0x10e8]
mov eax, 0x11e8
call fcn.1400129e0
sub rsp, rax
mov rax, qword [0x14001d040]
xor rax, rsp
mov qword [rbp + 0x10d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
xor r15d, r15d
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], r15d
xor r13d, r13d
mov qword [rbp - 0x70], r13
call fcn.140002b4c
test eax, eax
mov ebx, eax
js 0x140004361
cmp byte [rsi], 0x7d
je 0x140004361
mov r12d, 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
xor edi, edi
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140003a98
test edi, edi
je 0x140003b6e
mov rdx, rsi
mov rcx, r14
call fcn.140002b4c
mov ebx, eax
test eax, eax
js 0x140004361
cmp dword [rsp + 0x70], 0
je 0x140003b6e
and qword [rbp - 0x68], 0
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov rcx, rsi
xor ebx, ebx
mov al, byte [rsi]
jmp 0x140003ade
cmp al, 0x5c
je 0x140003ae4
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140003acf
jmp 0x140003ae7
mov rbx, rcx
test rbx, rbx
jne 0x14000435c
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140003b1c
add rbx, 8
lea rax, [0x140015c60]
cmp rbx, rax
jl 0x140003af7
mov eax, r12d
jmp 0x140003b1e
xor eax, eax
test eax, eax
je 0x140003b37
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x68], rax
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140001974
test edi, edi
je 0x140003b6e
mov rdx, rsi
mov rcx, r14
call fcn.140002b4c
mov ebx, eax
test eax, eax
js 0x140004361
mov rdx, rsi
mov rcx, r14
call fcn.1400033a8
mov ebx, eax
test eax, eax
js 0x140004361
mov edi, dword [rsp + 0x70]
jmp 0x140003f2f
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003b9a
xor r12d, r12d
mov rdx, rsi
mov rcx, r14
call fcn.140002b4c
mov ebx, eax
test eax, eax
js 0x140004361
lea rdx, [0x140015620]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x140003ca0
lea rdx, [rbp + 0xd0]
mov rcx, r14
call fcn.140002b4c
mov ebx, eax
test eax, eax
js 0x140004361
mov rdx, rsi
mov rcx, r14
call fcn.140002b4c
mov ebx, eax
test eax, eax
js 0x140004361
cmp byte [rsi], 0x3d
jne 0x14000435c
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140003c28
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x68], rax
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov r9, rsi
lea r8, [rbp + 0xd0]
lea rdx, [rbp - 0x68]
mov rcx, r14
call fcn.140002cdc
mov ebx, eax
test eax, eax
js 0x140004361
jmp 0x140003f2f
cmp dword [rbp + 0x1150], 0
jne 0x140003c90
test r12d, r12d
je 0x140003c90
and qword [rbp - 0x68], 0
and dword [rbp - 0x60], 0
and qword [rbp - 0x58], 0
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140001890
test eax, eax
jne 0x140004342
lea rdx, [rbp + 0xd0]
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, 0xfffffffd
jne 0x14000432f
test rdi, rdi
je 0x140003c90
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r14
call fcn.1400033a8
jmp 0x140003a4b
mov rcx, rsi
xor ebx, ebx
mov al, byte [rsi]
jmp 0x140003cb8
cmp al, 0x5c
je 0x140003cbe
call qword [sym.imp.USER32.dll_CharNextA]
mov rcx, rax
mov al, byte [rax]
test al, al
jne 0x140003ca9
jmp 0x140003cc1
mov rbx, rcx
test rbx, rbx
jne 0x14000435c
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140003f7a
and qword [rsp + 0x60], rbx
test r13, r13
je 0x140003d5a
cmp qword [r13], rbx
je 0x140003d47
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140003d4e
lea rdx, str.RegOpenKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140003d4e
and qword [rsp + 0x30], rbx
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
mov rax, r10
call qword [0x140014498]
jmp 0x140003d7e
cmp dword [r13 + 8], 0
jne 0x140003d5a
mov eax, 1
mov rbx, qword [rsp + 0x68]
jmp 0x140003d7e
lea rax, [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003d9d
test r15, r15
je 0x140003d90
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
test eax, eax
je 0x140003ef1
and qword [rsp + 0x60], 0
test r13, r13
je 0x140003e22
cmp qword [r13], 0
je 0x140003e14
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140003e1b
lea rdx, str.RegOpenKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140003e1b
and qword [rsp + 0x30], 0
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov rax, r10
call qword [0x140014498]
jmp 0x140003e41
cmp dword [r13 + 8], 0
jne 0x140003e22
mov eax, 1
jmp 0x140003e41
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140003e60
test r15, r15
je 0x140003e53
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
test eax, eax
je 0x140003ef1
and qword [rsp + 0x60], 0
lea rax, [rbp - 0x50]
test r13, r13
je 0x140003e96
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov r8, rsi
mov rdx, rbx
mov rcx, r13
call fcn.140001418
jmp 0x140003eca
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2001f
and dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140003ee9
test r15, r15
je 0x140003edc
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
test eax, eax
jne 0x140004328
mov rdx, rsi
mov rcx, r14
call fcn.140002b4c
mov ebx, eax
test eax, eax
js 0x140004361
cmp byte [rsi], 0x3d
jne 0x140003f2f
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.140002cdc
mov ebx, eax
mov r15, qword [rbp - 0x80]
test eax, eax
js 0x140004361
mov r13, qword [rbp - 0x70]
cmp byte [rsi], 0x7b
jne 0x140003a55
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x140003f3c
cmp rax, 1
jne 0x140003a55
and dword [rsp + 0x20], 0
mov r9d, edi
mov r8, r15
mov rdx, rsi
mov rcx, r14
call fcn.1400039ec
mov ebx, eax
test eax, eax
js 0x140004361
mov rdx, rsi
mov rcx, r14
jmp 0x140003a46
mov ebx, dword [rbp + 0x1150]
test ebx, ebx
jne 0x14000404d
and qword [rsp + 0x60], 0
test r13, r13
je 0x140004007
cmp qword [r13], 0
je 0x140003ff9
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140004000
lea rdx, str.RegOpenKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140004000
and qword [rsp + 0x30], 0
mov rax, qword [r13]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
mov rax, r10
call qword [0x140014498]
jmp 0x140004028
cmp dword [r13 + 8], 0
jne 0x140004007
mov edi, 1
jmp 0x14000402a
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x14000404b
test r15, r15
je 0x14000403e
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
jmp 0x140004052
mov edi, 2
mov r14d, 1
test edi, edi
cmove r14d, ebx
or r9, 0xffffffffffffffff
mov r8, rsi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy_s]
test eax, eax
je 0x14000409c
cmp eax, 0xc
je 0x140004394
cmp eax, 0x16
je 0x1400043aa
cmp eax, 0x22
je 0x1400043aa
cmp eax, 0x50
jne 0x14000439f
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.140002b4c
mov ebx, eax
test eax, eax
js 0x140004361
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.1400033a8
mov ebx, eax
test eax, eax
js 0x140004361
cmp byte [rsi], 0x7b
jne 0x140004125
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], 0
jne 0x1400040d3
cmp rax, 1
jne 0x140004125
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.1400039ec
mov ebx, eax
test eax, eax
jns 0x140004109
test r14d, r14d
je 0x140004361
mov rdx, rsi
mov r14, qword [rsp + 0x78]
mov rcx, r14
call fcn.140002b4c
mov ebx, eax
test eax, eax
js 0x140004361
jmp 0x14000412a
mov r14, qword [rsp + 0x78]
cmp edi, 2
je 0x140003a55
test edi, edi
je 0x140004152
cmp dword [rbp + 0x1150], 0
jne 0x140003a55
mov ecx, edi
call fcn.1400013fc
mov ebx, eax
jmp 0x140004361
cmp dword [rbp + 0x1150], 0
je 0x14000421a
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, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1400041b1
xor eax, eax
jmp 0x1400041ba
xor eax, eax
cmp dword [rsp + 0x60], eax
seta al
test eax, eax
je 0x14000421a
lea rdi, str.AppID
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1400041ed
add rdi, 8
lea rax, [0x140015c60]
cmp rdi, rax
jl 0x1400041c5
mov eax, 1
jmp 0x1400041ef
xor eax, eax
test eax, eax
je 0x140003a55
test r12d, r12d
je 0x140003a55
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140001974
mov r13, qword [rbp - 0x70]
mov r15, qword [rbp - 0x80]
jmp 0x140003a55
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, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edi, edi
test eax, eax
jne 0x140004272
cmp dword [rsp + 0x60], edi
seta dil
xor eax, eax
test r15, r15
je 0x140004289
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r15d, r15d
mov qword [rbp - 0x80], r15
and dword [rbp - 0x78], 0
test eax, eax
jne 0x140004328
test r12d, r12d
je 0x140003a55
test edi, edi
jne 0x140003a55
cmp byte [0x14001ef20], dil
jne 0x1400042ea
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x1400042da
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14001ef18], rax
jmp 0x1400042e1
mov rax, qword [0x14001ef18]
mov byte [0x14001ef20], 1
jmp 0x1400042f1
mov rax, qword [0x14001ef18]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x68]
test rax, rax
je 0x14000430d
xor r9d, r9d
xor r8d, r8d
call qword [0x140014498]
jmp 0x140004320
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
nop
nop dword [rax]
nop dword [rax + rax]
test eax, eax
je 0x140003a55
mov ecx, eax
jmp 0x140004146
mov ecx, eax
call fcn.1400013fc
mov ebx, eax
test rdi, rdi
je 0x140004361
mov rcx, rdi
jmp 0x140004354
mov ecx, eax
call fcn.1400013fc
mov ebx, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140004361
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140004361
mov ebx, 0x80020009
test r15, r15
je 0x14000436f
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x10d0]
xor rcx, rsp
call fcn.140011250
add rsp, 0x11e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1400012f0
int3
mov ecx, 0x80004005
call fcn.1400012f0
int3
mov ecx, 0x80070057
call fcn.1400012f0
int3