Function at 0x1401f4640
Capabilities:
Delete registry key
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
mov r15, r9
mov r12, r8
mov r14, rdx
mov dword [rsp + 0x78], 1
lea rcx, [0x1400046c0]
call fcn.140dea1c4
nop
mov rbx, rax
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov edi, eax
mov rcx, rbx
call fcn.140dea1f9
nop
test edi, edi
je 0x1401f46b6
mov eax, edi
jmp 0x1401f4dbe
mov rdx, r14
cmp qword [r14 + 0x18], 8
jb 0x1401f46c7
mov rdx, qword [r14]
lea r8, [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov esi, eax
test eax, eax
jne 0x1401f481d
mov rdi, 0xffffffffffffffff
cmp byte [rbp + 0x250], al
jne 0x1401f482d
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [0x140004708]
call fcn.140dea1c4
nop
mov rbx, rax
cmp qword [r15 + 0x18], 8
jb 0x1401f4723
mov r15, qword [r15]
mov r9, r15
mov r8, rbx
mov edx, 0x104
lea rcx, [rbp - 0x20]
call fcn.1401b25e0
mov rcx, rbx
call fcn.140dea1f9
nop
lea rcx, [0x140004718]
call fcn.140dea1c4
nop
mov rsi, rax
lea rax, [rbp - 0x20]
mov rcx, rdi
nop dword [rax + rax]
lea rcx, [rcx + 1]
cmp word [rax + rcx*2], 0
jne 0x1401f475c
lea eax, [rcx*2 + 2]
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov rcx, rsi
call fcn.140dea1f9
nop
test ebx, ebx
je 0x1401f47c6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1401f4dbe
lea rcx, [0x140004730]
call fcn.140dea1c4
nop
mov rbx, rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, rbx
call fcn.140dea1f9
nop
test esi, esi
je 0x1401f482d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f4dbc
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov r15, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 0x10
jb 0x1401f4856
mov r12, qword [r12]
movabs rbx, 0x7fffffffffffffff
cmp r15, rbx
ja 0x1401f4dda
mov qword [rsp + 0x70], 0xf
cmp r15, 0x10
jae 0x1401f4890
mov qword [rsp + 0x68], r15
movups xmm0, xmmword [r12]
movups xmmword [rsp + 0x58], xmm0
jmp 0x1401f48dc
mov rax, r15
or rax, 0xf
cmp rax, rbx
ja 0x1401f48af
mov rbx, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rbx, rcx
lea rdx, [rbx + 1]
lea rcx, [rsp + 0x58]
call fcn.140053600
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rbx
lea r8, [r15 + 1]
mov rdx, r12
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
nop
mov rdx, r14
lea rcx, [rbp - 0x40]
call fcn.140049a50
nop
mov rdx, qword [rbp + 0x240]
lea rcx, [rbp - 0x60]
call fcn.140049a50
nop
mov dword [rsp + 0x44], 0x41
xor r15d, r15d
mov dword [rsp + 0x48], 0x42
mov dword [rsp + 0x4c], 0x43
mov dword [rsp + 0x50], 0x44
mov dword [rsp + 0x54], 0x45
lea rdx, [rsp + 0x44]
cmp byte [rbp + 0x250], r15b
jne 0x1401f4c30
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
lea r9d, [r15 + 3]
xor r8d, r8d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x1401f4981
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f4ca2
mov eax, dword [rbp - 0x30]
add eax, eax
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x1401f49d0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f4ca2
mov eax, dword [rbp - 0x50]
add eax, eax
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x1401f4a1f
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f4ca2
mov rax, qword [rbp + 0x248]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1401f4a7d
cmp qword [rax + 0x18], 0x10
jb 0x1401f4a41
mov rax, qword [rax]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test eax, eax
je 0x1401f4a7d
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f4ca2
mov rbx, qword [rbp + 0x220]
cmp qword [rbx + 0xb0], r15
je 0x1401f4c20
lea rcx, [0x140004740]
call fcn.140dea1c4
nop
mov r14, rax
lea rdx, [rbx + 0xa0]
lea rcx, [rbp - 0x80]
call fcn.140049a50
nop
inc rdi
cmp word [r14 + rdi*2], 0
jne 0x1401f4ab2
mov rsi, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
sub rax, rsi
cmp rdi, rax
ja 0x1401f4b0b
lea rax, [rdi + rsi]
mov qword [rbp - 0x70], rax
lea rbx, [rbp - 0x80]
cmp rcx, 8
cmovae rbx, qword [rbp - 0x80]
lea rcx, [rbx + rsi*2]
lea r8, [rdi + rdi]
mov rdx, r14
call sub.VCRUNTIME140.dll_memmove
lea rax, [rsi + rdi]
mov word [rbx + rax*2], r15w
jmp 0x1401f4b25
mov qword [rsp + 0x20], rdi
mov r9, r14
movzx r8d, byte [rsp + 0x40]
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.140034e50
mov eax, dword [rbp - 0x70]
add eax, eax
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, r14
call fcn.140dea1f9
nop
test esi, esi
je 0x1401f4bd1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1401f4cae
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f4bc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1401f4c14
call fcn.1401fcb88
jmp 0x1401f4cae
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x1401f4c20
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f4c1b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401f4c1b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fcb88
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401f4ca2
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, [rsp + 0x4c]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
lea rdx, [rsp + 0x54]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp qword [r14 + 0x18], 8
jb 0x1401f4c94
mov r14, qword [r14]
mov rdx, r14
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1401f4cfd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f4cf8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401f4cf8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fcb88
movdqa xmm0, xmmword [0x140002c70]
movdqu xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x60], r15w
mov rdx, qword [rbp - 0x28]
cmp rdx, 8
jb 0x1401f4d5e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f4d59
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401f4d59
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fcb88
movdqa xmm0, xmmword [0x140002c70]
movdqu xmmword [rbp - 0x30], xmm0
mov word [rbp - 0x40], r15w
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1401f4dbc
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401f4db7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401f4db7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401fcb88
mov eax, esi
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.14002f840
int3