Function at 0x14001380c
Capabilities:
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.14001fac0
sub rsp, rax
mov rax, qword [0x140034010]
xor rax, rsp
mov qword [rbp + 0x21c0], rax
mov dword [rsp + 0x68], r9d
mov r15, r8
mov qword [rsp + 0x70], r8
mov rdi, rdx
mov r12, rcx
xor eax, eax
mov r14d, eax
mov qword [rsp + 0x78], rax
mov dword [rbp - 0x80], eax
mov qword [rbp - 0x78], rax
call fcn.140012a2c
test eax, eax
mov ebx, eax
js 0x140013c1c
cmp word [rdi], 0x7d
je 0x140013c1c
mov r13d, 1
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov esi, ebx
test eax, eax
sete sil
lea rdx, [0x140024088]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400138b8
test esi, esi
je 0x140013982
mov rdx, rdi
mov rcx, r12
call fcn.140012a2c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013c1c
cmp dword [rsp + 0x68], edx
je 0x140013980
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x1400138fe
cmp ax, 0x5c
je 0x140013905
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400138ec
jmp 0x14001390e
test rcx, rcx
jne 0x140013f7d
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140013945
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x140013915
mov qword [rbp - 0x70], r15
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.1400122ec
xor ebx, ebx
test esi, esi
je 0x140013982
mov rdx, rdi
mov rcx, r12
call fcn.140012a2c
mov ebx, eax
test eax, eax
js 0x140013c1c
mov rdx, rdi
mov rcx, r12
call fcn.1400131bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013c1c
mov esi, dword [rsp + 0x68]
jmp 0x140013c8d
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400139ae
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.140012a2c
mov ebx, eax
test eax, eax
js 0x140013c1c
lea rdx, [0x140024080]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140013aa4
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.140012a2c
mov ebx, eax
test eax, eax
js 0x140013c1c
mov rdx, rdi
mov rcx, r12
call fcn.140012a2c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013c1c
cmp word [rdi], 0x3d
jne 0x140013f7d
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140013a32
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov r9, rdi
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x70]
mov rcx, r12
call fcn.140012be8
mov ebx, eax
xor edx, edx
jmp 0x140013c89
cmp dword [rbp + 0x2240], edx
jne 0x140013a94
test r13d, r13d
je 0x140013a94
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp - 0x70]
call fcn.140012200
test eax, eax
jne 0x140013f5c
lea rdx, [rbp + 0x1c0]
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140013f45
test rsi, rsi
je 0x140013a94
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.1400131bc
jmp 0x140013868
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140013abe
cmp ax, 0x5c
je 0x140013ac5
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140013aac
jmp 0x140013ace
test rcx, rcx
jne 0x140013f7d
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140013cd8
mov r14d, 0x2001f
mov r9d, r14d
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140012200
xor r13d, r13d
test eax, eax
je 0x140013c4f
lea r9d, [r14 - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140012200
test eax, eax
je 0x140013c4f
mov qword [rsp + 0x60], r13
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140013bb2
cmp qword [rbx], r13
je 0x140013ba5
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013f87
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140013bab
mov qword [rsp + 0x50], r13
mov rax, qword [rbx]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
mov rax, r10
call qword [0x140022f18]
jmp 0x140013be6
cmp dword [rbx + 8], r13d
jne 0x140013bb2
mov eax, 1
jmp 0x140013be6
lea rax, [rbp - 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140013f8c
mov eax, r13d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140013c01
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rsp + 0x78], r14
mov dword [rbp - 0x80], r13d
test eax, eax
je 0x140013c54
mov ecx, eax
call fcn.140011f08
mov ebx, eax
test r14, r14
je 0x140013c2a
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.14001e5b0
add rsp, 0x22d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r14, qword [rsp + 0x78]
mov rdx, rdi
mov rcx, r12
call fcn.140012a2c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013c1c
cmp word [rdi], 0x3d
jne 0x140013c8d
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r12
call fcn.140012be8
mov ebx, eax
xor edx, edx
mov r14, qword [rsp + 0x78]
test eax, eax
js 0x140013c1c
cmp word [rdi], 0x7b
jne 0x140013872
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140013c9b
cmp rax, 1
jne 0x140013872
mov dword [rsp + 0x20], edx
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.14001380c
mov ebx, eax
test eax, eax
js 0x140013c1c
mov rdx, rdi
mov rcx, r12
jmp 0x140013863
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x140013d01
mov r9d, 0x20019
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140012200
mov esi, eax
mov r14, qword [rsp + 0x78]
jmp 0x140013d06
mov esi, 2
mov r15d, 1
test esi, esi
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x140013d50
cmp eax, 0xc
je 0x140013f9d
cmp eax, 0x16
je 0x140013fb3
cmp eax, 0x22
je 0x140013fb3
cmp eax, 0x50
jne 0x140013fa8
mov rdx, rdi
mov rcx, r12
call fcn.140012a2c
mov ebx, eax
test eax, eax
js 0x140013c1c
mov rdx, rdi
mov rcx, r12
call fcn.1400131bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013c1c
cmp word [rdi], 0x7b
jne 0x140013dd1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140013d86
cmp rax, 1
jne 0x140013dd1
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.14001380c
mov ebx, eax
test eax, eax
jns 0x140013dba
test r15d, r15d
je 0x140013c1c
mov rdx, rdi
mov rcx, r12
call fcn.140012a2c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013c1c
cmp esi, 2
je 0x140013de6
test esi, esi
je 0x140013df0
cmp dword [rbp + 0x2240], edx
je 0x140013f96
mov r15, qword [rsp + 0x70]
jmp 0x140013872
cmp dword [rbp + 0x2240], edx
je 0x140013e93
mov dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
jne 0x140013e93
cmp dword [rsp + 0x60], edx
jbe 0x140013e93
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140013de6
add rsi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rsi, rax
jl 0x140013e51
test r13d, r13d
je 0x140013de6
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400122ec
mov r14, qword [rsp + 0x78]
jmp 0x140013de6
mov dword [rsp + 0x60], 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 + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov esi, edx
test eax, eax
jne 0x140013ee5
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
test r14, r14
je 0x140013eff
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r14d, edx
mov qword [rsp + 0x78], rdx
mov dword [rbp - 0x80], edx
test eax, eax
jne 0x140013c13
mov r15, qword [rsp + 0x70]
test r13d, r13d
je 0x140013872
test esi, esi
jne 0x140013872
mov qword [rbp - 0x70], r15
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.1400120f8
test eax, eax
jne 0x140013c13
jmp 0x140013872
mov ecx, eax
call fcn.140011f08
mov ebx, eax
test rsi, rsi
je 0x140013c1c
mov rcx, rsi
jmp 0x140013f72
mov ecx, eax
call fcn.140011f08
mov ebx, eax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140013c1c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013c1c
mov ebx, 0x80020009
jmp 0x140013c1c
mov eax, 1
mov r14, qword [rsp + 0x78]
jmp 0x140013c13
mov ecx, esi
jmp 0x140013c15
mov ecx, 0x8007000e
call fcn.140011e3c
int3
mov ecx, 0x80004005
call fcn.140011e3c
int3
mov ecx, 0x80070057
call fcn.140011e3c
int3