Function at 0x14001d854
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.14002d46c
mov edi, eax
mov ebx, 0x80004005
test eax, eax
js 0x14001d979
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 0x14001d979
mov r8d, 0x20106
lea rdx, [rsp + 0x60]
mov ecx, esi
call fcn.1400220d0
mov edi, eax
mov r15, qword [rsp + 0x60]
test eax, eax
js 0x14001d979
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2011f
lea r8, [rbp + 0x1b0]
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140001cc4
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 0x14001da01
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 0x14001d9fd
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
ja 0x14001d9fd
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14001d9f3
test al, 1
jne 0x14001d9fd
shr rax, 1
cmp word [rbp + rax*2 - 0x62], si
je 0x14001d9f7
jmp 0x14001d9fd
mov word [rbp - 0x60], si
mov eax, esi
test eax, eax
je 0x14001da01
mov word [rbp - 0x60], si
test edi, edi
js 0x14001db1f
mov rcx, r12
call fcn.14002d40c
or rsi, 0xffffffffffffffff
xor edx, edx
test rax, rax
je 0x14001da5c
test r12, r12
je 0x14001db7d
mov rax, rsi
inc rax
cmp word [r12 + rax*2], dx
jne 0x14001da28
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 0x14001da75
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 0x14001db1f
test r13b, r13b
je 0x14001dad4
cmp word [rbp - 0x60], r12w
je 0x14001dad4
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 0x14001dacf
lea rcx, [rbp + 0x3c0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, 0x80004005
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14001db77
inc rsi
cmp word [rax + rsi*2], r12w
jne 0x14001dae2
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 0x14001db44
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test r15, r15
je 0x14001db52
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov rcx, qword [rbp + 0x5d0]
xor rcx, rsp
call fcn.1400363b0
add rsp, 0x6e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140001768
nop
mov ecx, 0x80004005
call fcn.140001768
int3