Function at 0x140003438
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.140024fc0
sub rsp, rax
mov rax, qword [0x140035008]
xor rax, rsp
mov qword [rbp + 0x21d0], rax
mov dword [rsp + 0x70], r9d
mov qword [rsp + 0x68], r8
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
xor eax, eax
mov r15d, eax
mov qword [rbp - 0x80], rax
mov dword [rbp - 0x78], eax
mov r13d, eax
mov qword [rbp - 0x70], rax
call fcn.1400025fc
test eax, eax
mov ebx, eax
js 0x140003dd3
cmp word [rsi], 0x7d
je 0x140003dd3
mov r12d, 1
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor ebx, ebx
mov edi, ebx
test eax, eax
sete dil
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400034e8
test edi, edi
je 0x1400035c9
mov rdx, rsi
mov rcx, r14
call fcn.1400025fc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003dd3
cmp dword [rsp + 0x70], edx
je 0x1400035c7
mov qword [rbp - 0x68], rdx
mov dword [rbp - 0x60], edx
mov qword [rbp - 0x58], rdx
mov rcx, rsi
mov ebx, edx
movzx eax, word [rsi]
jmp 0x140003530
cmp ax, 0x5c
je 0x140003537
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x14000351e
jmp 0x14000353a
mov rbx, rcx
test rbx, rbx
jne 0x140003dce
lea rbx, str.AppID
mov rdx, qword [rbx]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x140003571
add rbx, 8
lea rax, [0x140027b10]
cmp rbx, rax
jl 0x14000354a
mov eax, r12d
xor ebx, ebx
jmp 0x140003575
xor ebx, ebx
mov eax, ebx
test eax, eax
je 0x14000358e
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x68], rax
mov rdx, rsi
lea rcx, [rbp - 0x68]
call fcn.140001ecc
test edi, edi
je 0x1400035c9
mov rdx, rsi
mov rcx, r14
call fcn.1400025fc
mov ebx, eax
test eax, eax
js 0x140003dd3
mov rdx, rsi
mov rcx, r14
call fcn.140002dc8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003dd3
mov edi, dword [rsp + 0x70]
jmp 0x1400039b5
xor ebx, ebx
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400035f5
mov r12d, ebx
mov rdx, rsi
mov rcx, r14
call fcn.1400025fc
mov ebx, eax
test eax, eax
js 0x140003dd3
lea rdx, [0x1400274c8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
jne 0x1400036fc
lea rdx, [rbp + 0x1d0]
mov rcx, r14
call fcn.1400025fc
mov ebx, eax
test eax, eax
js 0x140003dd3
mov rdx, rsi
mov rcx, r14
call fcn.1400025fc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003dd3
cmp word [rsi], 0x3d
jne 0x140003dce
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140003688
mov rax, qword [rsp + 0x68]
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x60], edx
mov qword [rbp - 0x58], rdx
mov r9, rsi
lea r8, [rbp + 0x1d0]
lea rdx, [rbp - 0x68]
mov rcx, r14
call fcn.1400027bc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003dd3
jmp 0x1400039b5
cmp dword [rbp + 0x2250], edx
jne 0x1400036ec
test r12d, r12d
je 0x1400036ec
mov qword [rbp - 0x68], rdx
mov dword [rbp - 0x60], edx
mov qword [rbp - 0x58], rdx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140001de8
test eax, eax
jne 0x140003db4
lea rdx, [rbp + 0x1d0]
mov rdi, qword [rbp - 0x68]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
jne 0x140003da1
test rdi, rdi
je 0x1400036ec
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, rsi
mov rcx, r14
call fcn.140002dc8
jmp 0x140003498
mov rcx, rsi
mov rbx, rdx
movzx eax, word [rsi]
jmp 0x14000371b
cmp ax, 0x5c
je 0x140003722
call qword [sym.imp.USER32.dll_CharNextW]
mov rcx, rax
movzx eax, word [rax]
xor edx, edx
test ax, ax
jne 0x140003707
jmp 0x140003725
mov rbx, rcx
test rbx, rbx
jne 0x140003dce
mov edi, dword [rsp + 0x70]
test edi, edi
je 0x140003a00
mov qword [rsp + 0x60], rdx
test r13, r13
je 0x1400037d3
cmp qword [r13], rdx
je 0x1400037c1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor r12d, r12d
test rax, rax
jne 0x140003770
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x68]
jmp 0x1400037fa
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor edx, edx
test rax, rax
je 0x1400037c7
mov qword [rsp + 0x30], rdx
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 [0x140026788]
jmp 0x1400037fa
cmp dword [r13 + 8], edx
jne 0x1400037d3
mov eax, 1
mov rbx, qword [rsp + 0x68]
jmp 0x1400037f7
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_RegOpenKeyExW]
xor r12d, r12d
test eax, eax
jne 0x14000381c
mov eax, r12d
test r15, r15
je 0x14000380f
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
mov dword [rbp - 0x78], r12d
test eax, eax
je 0x140003972
mov qword [rsp + 0x60], r12
test r13, r13
je 0x14000389d
cmp qword [r13], r12
je 0x140003890
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003896
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x140003896
mov qword [rsp + 0x30], r12
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 [0x140026788]
jmp 0x1400038bc
cmp dword [r13 + 8], r12d
jne 0x14000389d
mov eax, 1
jmp 0x1400038bc
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_RegOpenKeyExW]
test eax, eax
jne 0x1400038de
mov eax, r12d
test r15, r15
je 0x1400038d1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
mov dword [rbp - 0x78], r12d
test eax, eax
je 0x140003972
mov qword [rsp + 0x60], r12
lea rax, [rbp - 0x50]
test r13, r13
je 0x140003913
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.14000192c
jmp 0x140003946
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor edx, edx
test eax, eax
jne 0x14000396a
mov eax, edx
test r15, r15
je 0x14000395e
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
mov dword [rbp - 0x78], edx
test eax, eax
jne 0x140003d9a
mov rdx, rsi
mov rcx, r14
call fcn.1400025fc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003dd3
cmp word [rsi], 0x3d
jne 0x1400039b5
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, r14
call fcn.1400027bc
mov ebx, eax
xor edx, edx
mov r15, qword [rbp - 0x80]
test eax, eax
js 0x140003dd3
mov r13, qword [rbp - 0x70]
cmp word [rsi], 0x7b
jne 0x1400034a2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], dx
jne 0x1400039c3
cmp rax, 1
jne 0x1400034a2
mov dword [rsp + 0x20], edx
mov r9d, edi
mov r8, r15
mov rdx, rsi
mov rcx, r14
call fcn.140003438
mov ebx, eax
test eax, eax
js 0x140003dd3
mov rdx, rsi
mov rcx, r14
jmp 0x140003493
mov ebx, dword [rbp + 0x2250]
test ebx, ebx
jne 0x140003ad8
mov qword [rsp + 0x60], rdx
test r13, r13
je 0x140003a8d
cmp qword [r13], rdx
je 0x140003a80
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor edx, edx
test rax, rax
je 0x140003a86
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
xor edx, edx
test rax, rax
je 0x140003a86
mov qword [rsp + 0x30], rdx
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 [0x140026788]
jmp 0x140003aae
cmp dword [r13 + 8], edx
jne 0x140003a8d
mov edi, 1
jmp 0x140003ab2
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_RegOpenKeyExW]
mov edi, eax
xor edx, edx
test edi, edi
jne 0x140003ad6
mov edi, edx
test r15, r15
je 0x140003aca
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
xor edx, edx
mov r15, qword [rsp + 0x60]
mov qword [rbp - 0x80], r15
mov dword [rbp - 0x78], edx
jmp 0x140003add
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_wcsncpy_s]
test eax, eax
je 0x140003b27
cmp eax, 0xc
je 0x140003e06
cmp eax, 0x16
je 0x140003e1c
cmp eax, 0x22
je 0x140003e1c
cmp eax, 0x50
jne 0x140003e11
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.1400025fc
mov ebx, eax
test eax, eax
js 0x140003dd3
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.140002dc8
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003dd3
cmp word [rsi], 0x7b
jne 0x140003bb5
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], dx
jne 0x140003b61
cmp rax, 1
jne 0x140003bb5
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rsi
mov rcx, qword [rsp + 0x78]
call fcn.140003438
mov ebx, eax
test eax, eax
jns 0x140003b97
test r14d, r14d
je 0x140003dd3
mov rdx, rsi
mov r14, qword [rsp + 0x78]
mov rcx, r14
call fcn.1400025fc
mov ebx, eax
xor edx, edx
test eax, eax
js 0x140003dd3
jmp 0x140003bba
mov r14, qword [rsp + 0x78]
cmp edi, 2
je 0x1400034a2
test edi, edi
je 0x140003be1
cmp dword [rbp + 0x2250], edx
jne 0x1400034a2
mov ecx, edi
call fcn.1400018f4
mov ebx, eax
jmp 0x140003dd3
cmp dword [rbp + 0x2250], edx
je 0x140003c9e
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, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
test eax, eax
mov eax, edx
jne 0x140003c3e
cmp dword [rsp + 0x60], edx
seta al
test eax, eax
je 0x140003c9e
lea rdi, str.AppID
mov rdx, qword [rdi]
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
xor edx, edx
test eax, eax
je 0x140003c71
add rdi, 8
lea rax, [0x140027b10]
cmp rdi, rax
jl 0x140003c49
lea eax, [rdx + 1]
jmp 0x140003c73
mov eax, edx
test eax, eax
je 0x1400034a2
test r12d, r12d
je 0x1400034a2
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x80]
call fcn.140001ecc
mov r13, qword [rbp - 0x70]
mov r15, qword [rbp - 0x80]
jmp 0x1400034a2
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, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
xor edx, edx
mov edi, edx
test eax, eax
jne 0x140003cf0
cmp dword [rsp + 0x60], edx
seta dil
mov eax, edx
test r15, r15
je 0x140003d09
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
mov r15d, edx
mov qword [rbp - 0x80], rdx
mov dword [rbp - 0x78], edx
test eax, eax
jne 0x140003d9a
test r12d, r12d
je 0x1400034a2
test edi, edi
jne 0x1400034a2
cmp byte [0x140036154], dl
jne 0x140003d68
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003d58
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140036148], rax
jmp 0x140003d5f
mov rax, qword [0x140036148]
mov byte [0x140036154], 1
jmp 0x140003d6f
mov rax, qword [0x140036148]
lea rdx, [rbp - 0x40]
mov rcx, qword [rsp + 0x68]
test rax, rax
je 0x140003d8b
xor r9d, r9d
xor r8d, r8d
call qword [0x140026788]
jmp 0x140003d92
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
test eax, eax
je 0x1400034a2
mov ecx, eax
jmp 0x140003bd5
mov ecx, eax
call fcn.1400018f4
mov ebx, eax
test rdi, rdi
je 0x140003dd3
mov rcx, rdi
jmp 0x140003dc6
mov ecx, eax
call fcn.1400018f4
mov ebx, eax
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x140003dd3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003dd3
mov ebx, 0x80020009
test r15, r15
je 0x140003de1
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x21d0]
xor rcx, rsp
call fcn.1400237c0
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.1400017e8
int3
mov ecx, 0x80004005
call fcn.1400017e8
int3
mov ecx, 0x80070057
call fcn.1400017e8
int3