Function at 0x1400073e8
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 - 0x21e8]
mov eax, 0x22e8
call fcn.14003a3b0
sub rsp, rax
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x68], r8
mov rdi, rdx
mov r15, rcx
mov qword [rsp + 0x78], rcx
xor eax, eax
mov r14d, eax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov r12d, eax
mov qword [rbp - 0x70], rax
call fcn.140007224
mov ebx, eax
test eax, eax
js 0x140007da1
jmp 0x140007d6c
mov r13d, 1
lea rdx, str.Delete
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov esi, eax
lea rdx, str.ForceRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
test eax, eax
je 0x14000748d
test esi, esi
jne 0x140007571
mov rdx, rdi
mov rcx, r15
call fcn.140007224
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140007da1
cmp dword [rsp + 0x70], r8d
je 0x14000756f
mov qword [rbp - 0x60], r8
mov dword [rbp - 0x58], r8d
mov qword [rbp - 0x50], r8
mov rcx, rdi
mov ebx, r8d
movzx eax, word [rdi]
jmp 0x1400074d9
cmp ax, 0x5c
je 0x1400074e0
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x1400074c7
jmp 0x1400074e3
mov rbx, rcx
test rbx, rbx
jne 0x140007d9c
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ecx, ecx
test eax, eax
je 0x14000751a
add rbx, 8
lea rax, str.RegOpenKeyTransactedW
cmp rbx, rax
jl 0x1400074f3
mov eax, r13d
jmp 0x14000751c
mov eax, ecx
test eax, eax
je 0x140007535
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x60], rax
mov rdx, rdi
lea rcx, [rbp - 0x60]
call fcn.140006f7c
test esi, esi
jne 0x14000756f
mov rdx, rdi
mov rcx, r15
call fcn.140007224
mov ebx, eax
test eax, eax
js 0x140007da1
mov rdx, rdi
mov rcx, r15
call fcn.140006ebc
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140007da1
mov esi, dword [rsp + 0x70]
jmp 0x140007979
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x14000759d
mov r13d, ebx
mov rdx, rdi
mov rcx, r15
call fcn.140007224
mov ebx, eax
test eax, eax
js 0x140007da1
lea rdx, [0x14003d570]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor r8d, r8d
test eax, eax
jne 0x1400076bc
lea rdx, [rbp + 0x1d0]
mov rcx, r15
call fcn.140007224
mov ebx, eax
test eax, eax
js 0x140007da1
mov rdx, rdi
mov rcx, r15
call fcn.140007224
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140007da1
cmp word [rdi], 0x3d
jne 0x140007d9c
mov esi, dword [rsp + 0x70]
test esi, esi
je 0x140007634
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x60], rax
mov dword [rbp - 0x58], r8d
mov qword [rbp - 0x50], r8
mov r9, rdi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x60]
mov rcx, r15
call fcn.1400068b0
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140007da1
jmp 0x140007979
cmp dword [rbp + 0x2250], r8d
jne 0x1400076ac
test r13d, r13d
je 0x1400076ac
mov qword [rsp + 0x60], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
xor r8d, r8d
mov esi, r8d
test eax, eax
cmove rsi, qword [rsp + 0x60]
neg eax
sbb edx, edx
and edx, ecx
jne 0x140007d7c
lea rdx, [rbp + 0x1d0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140007d78
test rsi, rsi
je 0x1400076ac
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rdi
mov rcx, r15
call fcn.140006ebc
jmp 0x140007448
mov rcx, rdi
mov rbx, r8
movzx eax, word [rdi]
jmp 0x1400076dc
cmp ax, 0x5c
je 0x1400076e3
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor r8d, r8d
test ax, ax
jne 0x1400076c7
jmp 0x1400076e6
mov rbx, rcx
test rbx, rbx
jne 0x140007d9c
mov esi, dword [rsp + 0x70]
test esi, esi
je 0x1400079c6
mov qword [rsp + 0x60], r8
test r12, r12
je 0x140007793
cmp qword [r12], r8
je 0x140007780
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r13d, r13d
test rax, rax
jne 0x140007731
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x68]
jmp 0x1400077ba
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor r8d, r8d
test rax, rax
je 0x140007787
mov qword [rsp + 0x30], r8
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
mov rdx, rdi
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
mov rax, r10
call qword [case.0x140033a70.0]
jmp 0x1400077ba
cmp dword [r12 + 8], r8d
jne 0x140007793
mov eax, 1
mov rbx, qword [rsp + 0x68]
jmp 0x1400077b7
lea rax, [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor r13d, r13d
test eax, eax
jne 0x1400077dc
mov eax, r13d
test r14, r14
je 0x1400077cf
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], r13d
test eax, eax
je 0x140007937
mov qword [rsp + 0x60], r13
test r12, r12
je 0x14000785e
cmp qword [r12], r13
je 0x140007850
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007857
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140007857
mov qword [rsp + 0x30], r13
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
mov rax, r10
call qword [case.0x140033a70.0]
jmp 0x14000787d
cmp dword [r12 + 8], r13d
jne 0x14000785e
mov eax, 1
jmp 0x14000787d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000789f
mov eax, r13d
test r14, r14
je 0x140007892
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], r13d
test eax, eax
je 0x140007937
mov qword [rsp + 0x60], r13
lea rax, [rbp - 0x68]
test r12, r12
je 0x1400078d4
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov r8, rdi
mov rdx, rbx
mov rcx, r12
call fcn.140006790
jmp 0x140007907
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor r8d, r8d
test eax, eax
jne 0x14000792f
mov eax, r8d
test r14, r14
je 0x140007922
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r8d, r8d
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], r8d
test eax, eax
jne 0x140007d95
mov rdx, rdi
mov rcx, r15
call fcn.140007224
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140007da1
cmp word [rdi], 0x3d
jne 0x140007979
mov r9, rdi
lea rdx, [rbp - 0x80]
mov rcx, r15
call fcn.1400068b0
mov ebx, eax
xor r8d, r8d
mov r14, qword [rbp - 0x80]
test eax, eax
js 0x140007da1
mov r12, qword [rbp - 0x70]
cmp word [rdi], 0x7b
jne 0x140007d6c
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r8w
jne 0x140007987
cmp rax, 1
jne 0x140007d6c
mov dword [rsp + 0x20], r8d
mov r9d, esi
mov r8, r14
mov rdx, rdi
mov rcx, r15
call fcn.1400073e8
mov ebx, eax
test eax, eax
js 0x140007da1
mov rdx, rdi
mov rcx, r15
jmp 0x140007443
mov ebx, dword [rbp + 0x2250]
test ebx, ebx
jne 0x140007aa2
mov qword [rsp + 0x60], r8
test r12, r12
je 0x140007a53
cmp qword [r12], r8
je 0x140007a45
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r8d, r8d
test rax, rax
je 0x140007a4c
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor r8d, r8d
test rax, rax
je 0x140007a4c
mov qword [rsp + 0x30], r8
mov rax, qword [r12]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
mov rax, r10
call qword [case.0x140033a70.0]
jmp 0x140007a74
cmp dword [r12 + 8], r8d
jne 0x140007a53
mov esi, 1
jmp 0x140007a79
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
xor r8d, r8d
test esi, esi
jne 0x140007aa0
mov esi, r8d
test r14, r14
je 0x140007a93
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
xor r8d, r8d
mov r14, qword [rsp + 0x60]
mov qword [rbp - 0x80], r14
mov dword [rbp - 0x78], r8d
jmp 0x140007aa7
mov esi, 2
mov r15d, 1
test esi, esi
cmove r15d, ebx
or r9, 0xffffffffffffffff
mov r8, rdi
mov edx, 0x104
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
test eax, eax
je 0x140007af1
cmp eax, 0xc
je 0x140007dd4
cmp eax, 0x16
je 0x140007dea
cmp eax, 0x22
je 0x140007dea
cmp eax, 0x50
jne 0x140007ddf
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call fcn.140007224
mov ebx, eax
test eax, eax
js 0x140007da1
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call fcn.140006ebc
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140007da1
cmp word [rdi], 0x7b
jne 0x140007b82
or rax, 0xffffffffffffffff
inc rax
cmp word [rdi + rax*2], r8w
jne 0x140007b2c
cmp rax, 1
jne 0x140007b82
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, r14
mov rdx, rdi
mov rcx, qword [rsp + 0x78]
call fcn.1400073e8
mov ebx, eax
test eax, eax
jns 0x140007b63
test r15d, r15d
je 0x140007da1
mov rdx, rdi
mov r15, qword [rsp + 0x78]
mov rcx, r15
call fcn.140007224
mov ebx, eax
xor r8d, r8d
test eax, eax
js 0x140007da1
jmp 0x140007b87
mov r15, qword [rsp + 0x78]
cmp esi, 2
je 0x140007d6c
test esi, esi
je 0x140007baf
cmp dword [rbp + 0x2250], r8d
jne 0x140007d6c
mov ecx, esi
call fcn.140007214
mov ebx, eax
jmp 0x140007da1
cmp dword [rbp + 0x2250], r8d
je 0x140007c74
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r8
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 r8d, r8d
test eax, eax
mov eax, r8d
jne 0x140007c11
cmp dword [rsp + 0x60], r8d
seta al
test eax, eax
je 0x140007c74
lea rsi, str.AppID
mov rdx, qword [rsi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor r8d, r8d
test eax, eax
je 0x140007c46
add rsi, 8
lea rax, str.RegOpenKeyTransactedW
cmp rsi, rax
jl 0x140007c1c
lea eax, [r8 + 1]
jmp 0x140007c49
mov eax, r8d
test eax, eax
je 0x140007d6c
test r13d, r13d
je 0x140007d6c
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140006f7c
mov r12, qword [rbp - 0x70]
mov r14, qword [rbp - 0x80]
jmp 0x140007d6c
mov dword [rsp + 0x60], r8d
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r8
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 r8d, r8d
mov esi, r8d
test eax, eax
jne 0x140007cca
cmp dword [rsp + 0x60], r8d
seta sil
mov eax, r8d
test r14, r14
je 0x140007ce5
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor r8d, r8d
mov r14d, r8d
mov qword [rbp - 0x80], r8
mov dword [rbp - 0x78], r8d
test eax, eax
jne 0x140007d95
test r13d, r13d
je 0x140007d6c
test esi, esi
jne 0x140007d6c
cmp byte [0x140058060], r8b
jne 0x140007d3e
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140007d2e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140058058], rax
jmp 0x140007d35
mov rax, qword [0x140058058]
mov byte [0x140058060], 1
jmp 0x140007d45
mov rax, qword [0x140058058]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x68]
test rax, rax
je 0x140007d61
xor r9d, r9d
xor r8d, r8d
call qword [case.0x140033a70.0]
jmp 0x140007d68
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
test eax, eax
jne 0x140007d95
cmp word [rdi], 0x7d
jne 0x140007457
jmp 0x140007da1
mov ecx, eax
jmp 0x140007d7e
mov ecx, edx
call fcn.140007214
mov ebx, eax
test rsi, rsi
je 0x140007da1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140007da1
mov ecx, eax
jmp 0x140007ba3
mov ebx, 0x80020009
test r14, r14
je 0x140007daf
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.140038c60
add rsp, 0x22e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x8007000e
call fcn.1400016ac
int3
mov ecx, 0x80004005
call fcn.1400016ac
int3
mov ecx, 0x80070057
call fcn.1400016ac
int3