Function at 0x140025878
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 - 0x5d8]
sub rsp, 0x6d8
mov rax, qword [0x140051058]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov r12, r9
mov ebx, r8d
mov rdi, rdx
mov r14d, ecx
xor r13d, r13d
mov r15d, r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov esi, 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 + 0x1a0]
call sub.msvcrt.dll_memset
lea r8d, [r13 + 0x10]
lea rdx, [rbp + 0x1a0]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__itow]
nop dword [rax + rax]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x48], r13
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140034810
mov edi, eax
mov ebx, 0x80004005
test eax, eax
js 0x1400259a3
mov qword [rsp + 0x48], r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rbp + 0x640]
cvttsd2si rcx, xmm0
lea r9, [rsp + 0x48]
xor r8d, r8d
mov edx, 0x409
call qword [sym.imp.OLEAUT32.dll_VarBstrFromUI8]
nop dword [rax + rax]
mov edi, eax
test eax, eax
js 0x1400259a3
mov r8d, 0x20106
lea rdx, [rsp + 0x60]
mov ecx, r14d
call fcn.140028914
mov edi, eax
mov r15, qword [rsp + 0x60]
test eax, eax
js 0x1400259a3
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x2011f
lea r8, [rbp + 0x1a0]
mov rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140008174
test eax, eax
cmovne edi, ebx
mov rsi, qword [rsp + 0x78]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.msvcrt.dll_memset
mov rbx, qword [rsp + 0x58]
mov r13b, byte [rbp + 0x648]
xor r14d, r14d
test r13b, r13b
je 0x140025a28
mov dword [rsp + 0x40], 0x208
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140025a23
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
ja 0x140025a23
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x140025a23
test al, 1
jne 0x140025a23
shr rax, 1
cmp word [rbp + rax*2 - 0x72], r14w
je 0x140025a28
mov word [rbp - 0x70], r14w
test edi, edi
js 0x140025b57
mov rcx, r12
call fcn.140033c10
or r14, 0xffffffffffffffff
xor ecx, ecx
test rax, rax
je 0x140025a86
test r12, r12
je 0x140025bc8
mov rax, r14
inc rax
cmp word [r12 + rax*2], cx
jne 0x140025a4f
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, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
jmp 0x140025a9d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
nop dword [rax + rax]
cmp eax, 2
je 0x140025aae
xor r12d, r12d
test eax, eax
je 0x140025ab1
mov edi, 0x80004005
jmp 0x140025b57
xor r12d, r12d
test r13b, r13b
je 0x140025b05
cmp word [rbp - 0x70], r12w
je 0x140025b05
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3b0]
call sub.msvcrt.dll_memset
mov r8d, 0x104
lea rdx, [rbp + 0x3b0]
lea rcx, [rbp - 0x70]
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
je 0x140025b05
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140025bc8
inc r14
cmp word [rax + r14*2], r12w
jne 0x140025b13
lea ecx, [r14*2 + 2]
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ModificationTime
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop dword [rax + rax]
test eax, eax
mov eax, 0x80004005
cmovne edi, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
nop
test rsi, rsi
je 0x140025b8e
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
test r15, r15
je 0x140025ba2
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, edi
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1400027f0
add rsp, 0x6d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov ecx, 0x80004005
call fcn.140007a38
int3