Function at 0x140004994
Capabilities:
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f8
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400163a0]
xor rax, rbp
mov qword [rbp + 0x280], rax
mov dword [rbp + 8], r9d
mov qword [rbp + 0x10], r8
mov rsi, rdx
mov r12, rcx
xor r14d, r14d
mov ebx, r14d
mov qword [rbp + 0x60], rbx
mov r15d, r14d
mov qword [rbp + 0x40], r14
mov qword [rbp + 0x48], r14
mov qword [rbp + 0x50], r14
mov r13d, r14d
mov dword [rbp + 0x18], 1
mov eax, dword [rbp + 0x300]
mov dword [rbp + 0x38], eax
call fcn.1400047b8
mov edi, eax
test eax, eax
js 0x140005180
cmp word [rsi], 0x7d
je 0x140005180
lea rdx, str.Delete
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
sete r14b
lea rdx, str.ForceRemove
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140004a58
test r14d, r14d
je 0x140004b2c
mov rdx, rsi
mov rcx, r12
call fcn.1400047b8
mov edi, eax
xor edx, edx
test eax, eax
js 0x140005180
cmp dword [rbp + 8], edx
je 0x140004b2c
mov qword [rbp + 0x20], rdx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], rdx
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004aa4
cmp ax, 0x5c
je 0x140004aab
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004a8c
jmp 0x140004ab4
test rcx, rcx
jne 0x14000517b
lea rdi, str.CLSID
mov rdx, qword [rdi]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x140004af5
add rdi, 8
lea rax, [0x140010600]
cmp rdi, rax
jl 0x140004abb
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov rdx, rsi
lea rcx, [rbp + 0x20]
call fcn.140004470
test r14d, r14d
je 0x140004b2c
mov rdx, rsi
mov rcx, r12
call fcn.1400047b8
mov edi, eax
xor r14d, r14d
test eax, eax
js 0x140005197
mov rdx, rsi
mov rcx, r12
call fcn.1400046e8
mov edi, eax
test eax, eax
js 0x140005180
jmp 0x140005121
lea rdx, str.NoRemove
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
xor r14d, r14d
test eax, eax
jne 0x140004b62
mov dword [rbp + 0x18], r14d
mov rdx, rsi
mov rcx, r12
call fcn.1400047b8
mov edi, eax
test eax, eax
js 0x140005180
lea rdx, [0x140011010]
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
jne 0x140004c77
lea rdx, [rbp + 0x70]
mov rcx, r12
call fcn.1400047b8
mov edi, eax
test eax, eax
js 0x140005180
mov rdx, rsi
mov rcx, r12
call fcn.1400047b8
mov edi, eax
test eax, eax
js 0x140005180
cmp word [rsi], 0x3d
jne 0x14000517b
cmp dword [rbp + 8], r14d
je 0x140004bea
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov byte [rsp + 0x20], r14b
mov r9, rsi
lea r8, [rbp + 0x70]
lea rdx, [rbp + 0x20]
mov rcx, r12
call fcn.140003be4
mov edi, eax
jmp 0x140004b1f
xor edi, edi
cmp dword [rbp + 0x300], edi
jne 0x140004c64
mov qword [rbp], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140005199
mov eax, edi
mov r14, qword [rbp]
test eax, eax
jne 0x140005199
lea rdx, [rbp + 0x70]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegDeleteValueW]
nop dword [rax + rax]
test eax, 0xfffffffd
jne 0x140005199
test r14, r14
je 0x140004c64
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov rdx, rsi
mov rcx, r12
call fcn.1400046e8
xor r14d, r14d
jmp 0x140004a05
mov rcx, rsi
movzx eax, word [rsi]
jmp 0x140004c97
cmp ax, 0x5c
je 0x140004c9e
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
nop dword [rax + rax]
mov rcx, rax
movzx eax, word [rax]
test ax, ax
jne 0x140004c7f
jmp 0x140004ca7
test rcx, rcx
jne 0x14000517b
cmp dword [rbp + 8], r14d
je 0x140004e3a
mov qword [rbp], r14
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rdx, rsi
mov rdi, qword [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004d08
mov eax, r14d
test r15, r15
je 0x140004cf8
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004dc6
mov qword [rbp], r14
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004d57
mov eax, r14d
test r15, r15
je 0x140004d4b
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004dc6
mov qword [rbp], r14
lea rax, [rbp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rbp]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCreateKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x14000517b
mov eax, r14d
test r15, r15
je 0x140004db6
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
jne 0x14000517b
movzx eax, word [rsi]
sub ax, 0x4c
mov ecx, 0xffdf
test cx, ax
jne 0x140004dfc
lea rdx, str.LocalServer32
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
movzx r14d, r14b
test eax, eax
mov eax, 1
cmove r14d, eax
mov rdx, rsi
mov rcx, r12
call fcn.1400047b8
mov edi, eax
test eax, eax
js 0x140005180
cmp word [rsi], 0x3d
jne 0x14000511e
mov byte [rsp + 0x20], r14b
mov r9, rsi
xor r8d, r8d
lea rdx, [rbp + 0x40]
mov rcx, r12
call fcn.140003be4
xor r14d, r14d
jmp 0x140004be3
mov r14d, dword [rbp + 0x300]
xor edi, edi
test r14d, r14d
jne 0x140004ea5
mov qword [rbp], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
test eax, eax
jne 0x140004e97
mov eax, edi
test r15, r15
je 0x140004e8b
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15, qword [rbp]
mov qword [rbp + 0x40], r15
test eax, eax
je 0x140004ea5
mov eax, 1
mov r14d, eax
mov dword [rbp + 0x300], eax
test r13, r13
jne 0x140004f00
mov ecx, 0x208
call fcn.1400042f4
test al, al
je 0x140004ece
mov eax, dword [rsp]
mov eax, 0x210
sub rsp, rax
lea r13, [rsp + 0x60]
mov eax, dword [r13]
jmp 0x140004ef7
mov ecx, 0x218
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
test rax, rax
jne 0x140004ee9
mov r13, rdi
jmp 0x140004ef7
mov qword [rax], rbx
mov rbx, rax
mov qword [rbp + 0x60], rax
lea r13, [rax + 0x10]
test r13, r13
je 0x1400051bd
mov r8d, 0x104
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
nop dword [rax + rax]
test r14d, r14d
jne 0x140004f7c
mov dword [rbp], edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
test eax, eax
js 0x140004f6c
cmp dword [rbp], edi
ja 0x140004f7c
mov rdx, r15
call fcn.14000436c
test eax, eax
je 0x1400050b4
mov rdx, rsi
mov rcx, r12
call fcn.1400047b8
mov edi, eax
test eax, eax
js 0x140005180
mov rdx, rsi
mov rcx, r12
call fcn.1400046e8
mov edi, eax
xor eax, eax
test edi, edi
js 0x140005180
cmp word [rsi], 0x7b
jne 0x140005006
mov dword [rsp + 0x20], r14d
xor r9d, r9d
mov r8, r15
mov rdx, rsi
mov rcx, r12
call fcn.140004994
mov edi, eax
xor eax, eax
test edi, edi
js 0x140005180
test r14d, r14d
je 0x14000500f
mov eax, dword [rbp + 0x38]
mov dword [rbp + 0x300], eax
mov rdx, rsi
mov rcx, r12
call fcn.1400047b8
mov edi, eax
xor r14d, r14d
test eax, eax
js 0x140005180
mov rdx, rsi
mov rcx, r12
call fcn.1400046e8
jmp 0x140004a05
test r14d, r14d
jne 0x140005173
mov dword [rbp], eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryInfoKeyW]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
js 0x1400050ab
cmp dword [rbp], ecx
jbe 0x1400050ab
lea rdi, str.CLSID
xor r14d, r14d
mov rdx, qword [rdi]
mov rcx, r13
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
nop dword [rax + rax]
test eax, eax
je 0x1400050a0
add rdi, 8
lea rax, [0x140010600]
cmp rdi, rax
jl 0x14000506a
mov rdx, r13
lea rcx, [rbp + 0x40]
call fcn.140004470
mov r15, qword [rbp + 0x40]
mov rdx, rsi
mov rcx, r12
jmp 0x140004a00
test r14d, r14d
jne 0x140005173
xor r14d, r14d
test r15, r15
je 0x1400050da
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov r15d, r14d
mov qword [rbp + 0x40], r14
test eax, eax
jne 0x14000517b
cmp dword [rbp + 0x18], r14d
je 0x1400050fd
mov qword [rbp + 0x28], r14
mov qword [rbp + 0x30], r14
mov rax, qword [rbp + 0x10]
mov qword [rbp + 0x20], rax
mov rdx, r13
lea rcx, [rbp + 0x20]
call fcn.14000460c
nop
mov rdx, rsi
mov rcx, r12
call fcn.1400047b8
mov edi, eax
test eax, eax
js 0x140005180
mov rdx, rsi
mov rcx, r12
call fcn.1400046e8
jmp 0x140004be3
xor r14d, r14d
mov ecx, dword [rbp + 8]
test ecx, ecx
je 0x140004a0f
cmp word [rsi], 0x7b
jne 0x140004a0f
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], r14w
jne 0x14000513a
mov edx, 1
cmp rax, rdx
jne 0x140004a0f
mov dword [rsp + 0x20], r14d
mov r9d, ecx
mov r8, r15
mov rdx, rsi
mov rcx, r12
call fcn.140004994
mov edi, eax
test eax, eax
js 0x140005180
jmp 0x1400050a0
xor r14d, r14d
jmp 0x140004a0f
mov edi, 0x80020009
test r15, r15
je 0x140005195
mov rcx, r15
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
nop
jmp 0x1400051d6
jmp 0x140005180
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test r14, r14
je 0x140005180
mov rcx, r14
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
jmp 0x140005180
mov edi, 0x8007000e
jmp 0x140005180
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
test rbx, rbx
jne 0x1400051c4
mov eax, edi
mov rcx, qword [rbp + 0x280]
xor rcx, rbp
call fcn.14000d8c0
lea rsp, [rbp + 0x298]
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret