Function at 0x1400137ec
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.140021190
sub rsp, rax
mov rax, qword [0x140036010]
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.140012a0c
test eax, eax
mov ebx, eax
js 0x140013bfc
cmp word [rdi], 0x7d
je 0x140013bfc
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, [0x140026138]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140013898
test esi, esi
je 0x140013962
mov rdx, rdi
mov rcx, r12
call fcn.140012a0c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013bfc
cmp dword [rsp + 0x68], edx
je 0x140013960
mov qword [rbp - 0x70], rdx
mov dword [rbp - 0x68], edx
mov qword [rbp - 0x60], rdx
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x1400138de
cmp ax, 0x5c
je 0x1400138e5
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400138cc
jmp 0x1400138ee
test rcx, rcx
jne 0x140013f5d
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140013925
add rbx, 8
lea rax, [0x140027000]
cmp rbx, rax
jl 0x1400138f5
mov qword [rbp - 0x70], r15
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.1400122cc
xor ebx, ebx
test esi, esi
je 0x140013962
mov rdx, rdi
mov rcx, r12
call fcn.140012a0c
mov ebx, eax
test eax, eax
js 0x140013bfc
mov rdx, rdi
mov rcx, r12
call fcn.14001319c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013bfc
mov esi, dword [rsp + 0x68]
jmp 0x140013c6d
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14001398e
mov r13d, ebx
mov rdx, rdi
mov rcx, r12
call fcn.140012a0c
mov ebx, eax
test eax, eax
js 0x140013bfc
lea rdx, [0x140026130]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x140013a84
lea rdx, [rbp + 0x1c0]
mov rcx, r12
call fcn.140012a0c
mov ebx, eax
test eax, eax
js 0x140013bfc
mov rdx, rdi
mov rcx, r12
call fcn.140012a0c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013bfc
cmp word [rdi], 0x3d
jne 0x140013f5d
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140013a12
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.140012bc8
mov ebx, eax
xor edx, edx
jmp 0x140013c69
cmp dword [rbp + 0x2240], edx
jne 0x140013a74
test r13d, r13d
je 0x140013a74
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.1400121e0
test eax, eax
jne 0x140013f3c
lea rdx, [rbp + 0x1c0]
mov rsi, qword [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140013f25
test rsi, rsi
je 0x140013a74
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r12
call fcn.14001319c
jmp 0x140013848
mov rcx, rdi
movzx eax, word [rdi]
jmp 0x140013a9e
cmp ax, 0x5c
je 0x140013aa5
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140013a8c
jmp 0x140013aae
test rcx, rcx
jne 0x140013f5d
mov esi, dword [rsp + 0x68]
test esi, esi
je 0x140013cb8
mov r14d, 0x2001f
mov r9d, r14d
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.1400121e0
xor r13d, r13d
test eax, eax
je 0x140013c2f
lea r9d, [r14 - 6]
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.1400121e0
test eax, eax
je 0x140013c2f
mov qword [rsp + 0x60], r13
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140013b92
cmp qword [rbx], r13
je 0x140013b85
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140013f67
lea rdx, str.RegCreateKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140013b8b
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 [0x140024f78]
jmp 0x140013bc6
cmp dword [rbx + 8], r13d
jne 0x140013b92
mov eax, 1
jmp 0x140013bc6
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 0x140013f6c
mov eax, r13d
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140013be1
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 0x140013c34
mov ecx, eax
call fcn.140011ee8
mov ebx, eax
test r14, r14
je 0x140013c0a
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21c0]
xor rcx, rsp
call fcn.14001fc80
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.140012a0c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013bfc
cmp word [rdi], 0x3d
jne 0x140013c6d
mov r9, rdi
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, r12
call fcn.140012bc8
mov ebx, eax
xor edx, edx
mov r14, qword [rsp + 0x78]
test eax, eax
js 0x140013bfc
cmp word [rdi], 0x7b
jne 0x140013852
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140013c7b
cmp rax, 1
jne 0x140013852
mov dword [rsp + 0x20], edx
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.1400137ec
mov ebx, eax
test eax, eax
js 0x140013bfc
mov rdx, rdi
mov rcx, r12
jmp 0x140013843
mov ebx, dword [rbp + 0x2240]
test ebx, ebx
jne 0x140013ce1
mov r9d, 0x20019
mov r8, rdi
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.1400121e0
mov esi, eax
mov r14, qword [rsp + 0x78]
jmp 0x140013ce6
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 0x140013d30
cmp eax, 0xc
je 0x140013f7d
cmp eax, 0x16
je 0x140013f93
cmp eax, 0x22
je 0x140013f93
cmp eax, 0x50
jne 0x140013f88
mov rdx, rdi
mov rcx, r12
call fcn.140012a0c
mov ebx, eax
test eax, eax
js 0x140013bfc
mov rdx, rdi
mov rcx, r12
call fcn.14001319c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013bfc
cmp word [rdi], 0x7b
jne 0x140013db1
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], dx
jne 0x140013d66
cmp rax, 1
jne 0x140013db1
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, r12
call fcn.1400137ec
mov ebx, eax
test eax, eax
jns 0x140013d9a
test r15d, r15d
je 0x140013bfc
mov rdx, rdi
mov rcx, r12
call fcn.140012a0c
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140013bfc
cmp esi, 2
je 0x140013dc6
test esi, esi
je 0x140013dd0
cmp dword [rbp + 0x2240], edx
je 0x140013f76
mov r15, qword [rsp + 0x70]
jmp 0x140013852
cmp dword [rbp + 0x2240], edx
je 0x140013e73
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 0x140013e73
cmp dword [rsp + 0x60], edx
jbe 0x140013e73
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140013dc6
add rsi, 8
lea rax, [0x140027000]
cmp rsi, rax
jl 0x140013e31
test r13d, r13d
je 0x140013dc6
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x78]
call fcn.1400122cc
mov r14, qword [rsp + 0x78]
jmp 0x140013dc6
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 0x140013ec5
cmp dword [rsp + 0x60], edx
seta sil
mov eax, edx
test r14, r14
je 0x140013edf
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 0x140013bf3
mov r15, qword [rsp + 0x70]
test r13d, r13d
je 0x140013852
test esi, esi
jne 0x140013852
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.1400120d8
test eax, eax
jne 0x140013bf3
jmp 0x140013852
mov ecx, eax
call fcn.140011ee8
mov ebx, eax
test rsi, rsi
je 0x140013bfc
mov rcx, rsi
jmp 0x140013f52
mov ecx, eax
call fcn.140011ee8
mov ebx, eax
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140013bfc
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013bfc
mov ebx, 0x80020009
jmp 0x140013bfc
mov eax, 1
mov r14, qword [rsp + 0x78]
jmp 0x140013bf3
mov ecx, esi
jmp 0x140013bf5
mov ecx, 0x8007000e
call fcn.140011e1c
int3
mov ecx, 0x80004005
call fcn.140011e1c
int3
mov ecx, 0x80070057
call fcn.140011e1c
int3