Function at 0x14001db00
Capabilities:
Delete file
Delete registry value
Query environment variable
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5e8]
sub rsp, 0x6e8
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov rax, qword [0x14004ffa8]
xor rax, rsp
mov qword [rbp + 0x5d0], rax
mov r12, r9
mov ebx, r8d
mov rdi, rdx
mov esi, ecx
xor r13d, r13d
mov r15d, r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov r14d, r13d
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1b0]
call sub.msvcrt.dll_memset
lea r8d, [r13 + 0x10]
lea rdx, [rbp + 0x1b0]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__itow]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x48], r13
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.14002d758
mov edi, eax
mov ebx, 0x80004005
test eax, eax
js 0x14001dc25
mov qword [rsp + 0x48], r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp + 0x650]
cvttsd2si rcx, xmm0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x409
call qword [sym.imp.OLEAUT32.dll_VarBstrFromUI8]
mov edi, eax
test eax, eax
js 0x14001dc25
mov r8d, 0x20106
lea rdx, [rsp + 0x60]
mov ecx, esi
call fcn.1400221a0
mov edi, eax
mov r15, qword [rsp + 0x60]
test eax, eax
js 0x14001dc25
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2011f
lea r8, [rbp + 0x1b0]
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140001b5c
test eax, eax
cmovne edi, ebx
mov r14, qword [rsp + 0x78]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call sub.msvcrt.dll_memset
mov rbx, qword [rsp + 0x58]
mov r13b, byte [rbp + 0x658]
xor esi, esi
test r13b, r13b
je 0x14001dcad
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_RegQueryValueExW]
test eax, eax
jne 0x14001dca9
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
ja 0x14001dca9
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14001dc9f
test al, 1
jne 0x14001dca9
shr rax, 1
cmp word [rbp + rax*2 - 0x62], si
je 0x14001dca3
jmp 0x14001dca9
mov word [rbp - 0x60], si
mov eax, esi
test eax, eax
je 0x14001dcad
mov word [rbp - 0x60], si
test edi, edi
js 0x14001ddcb
mov rcx, r12
call fcn.14002d6fc
or rsi, 0xffffffffffffffff
xor edx, edx
test rax, rax
je 0x14001dd08
test r12, r12
je 0x14001de23
mov rax, rsi
inc rax
cmp word [r12 + rax*2], dx
jne 0x14001dcd4
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r12
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor r12d, r12d
jmp 0x14001dd21
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, 2
mov r12d, 0
cmove eax, r12d
test eax, eax
mov ecx, 0x80004005
cmovne edi, ecx
test edi, edi
js 0x14001ddcb
test r13b, r13b
je 0x14001dd80
cmp word [rbp - 0x60], r12w
je 0x14001dd80
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3c0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14001dd7b
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x80004005
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14001de2e
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x14001dd8e
lea ecx, [rsi*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ModificationTime
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov eax, 0x80004005
cmovne edi, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
test r14, r14
je 0x14001ddf0
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r15, r15
je 0x14001ddfe
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1400362c0
add rsp, 0x6e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140001648
int3
call fcn.140001648
int3