Function at 0x14009c300
Capabilities:
Check if file exists
Copy file
Create process on windows
Delete file
Get system information on windows
Move file
Set file attributes

Disassembly:
push rbp
push rdi
push r14
push r15
lea rbp, [rsp - 0x648]
sub rsp, 0x748
mov rax, qword [0x1403a0088]
xor rax, rsp
mov qword [rbp + 0x630], rax
mov rax, rdx
mov r15, rcx
xor edi, edi
lea rdx, str.CLEANUPSYS
mov rcx, rax
mov dword [rsp + 0x50], edi
call fcn.140061590
mov r14, rax
test rax, rax
je 0x14009c500
mov qword [rsp + 0x780], rbx
lea rdx, [0x14031f814]
mov rcx, rax
mov qword [rsp + 0x740], rsi
mov ebx, edi
call fcn.140061590
test rax, rax
je 0x14009c385
mov rax, qword [rax + 0x28]
test rax, rax
je 0x14009c385
mov rbx, qword [rax + 0x38]
add rbx, 0x10
lea rdx, str.DOWNLOAD
mov rcx, r14
mov rsi, rdi
call fcn.140061590
test rax, rax
je 0x14009c3ad
mov rax, qword [rax + 0x28]
test rax, rax
je 0x14009c3ad
mov rsi, qword [rax + 0x38]
add rsi, 0x10
test rbx, rbx
je 0x14009c4f0
test rsi, rsi
je 0x14009c4f0
mov r8d, 0x104
lea rdx, [rbp]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea r8, [rsp + 0x50]
mov rcx, rbx
lea rdx, [0x14031f804]
call fcn.140056b40
mov ebx, dword [rsp + 0x50]
lea rcx, [rbp]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14009c421
lea rcx, [rbp]
call fcn.140055900
cmp ebx, eax
je 0x14009c68c
mov edx, 0x80
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [rbp]
mov edx, 0x104
lea r8, str._sdown
lea rcx, [rbp + 0x210]
call fcn.14004e9f0
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp qword [0x140455498], rdi
jne 0x14009c48c
mov ecx, 1
call fcn.140125dd0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rbp - 0x80]
mov ecx, 0x40
add eax, eax
mov qword [0x140455498], rbx
cmp eax, ecx
cmovae eax, ecx
mov dword [0x140455464], eax
lea r8, [rbp + 0x210]
mov rdx, rsi
call fcn.14005c6d0
test eax, eax
je 0x14009c4f0
mov ebx, dword [rsp + 0x50]
lea rcx, [rbp + 0x210]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14009c4e3
lea rcx, [rbp + 0x210]
call fcn.140055900
cmp ebx, eax
je 0x14009c51f
mov edx, 0x80
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rbx, qword [rsp + 0x780]
mov rsi, qword [rsp + 0x740]
mov eax, edi
mov rcx, qword [rbp + 0x630]
xor rcx, rsp
call fcn.140125a70
add rsp, 0x748
pop r15
pop r14
pop rdi
pop rbp
ret
lea r9, [rbp]
mov edx, 0x104
lea r8, str._sbak
lea rcx, [rbp + 0x420]
call fcn.14004e9f0
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, ntohs
lea rdx, [rbp + 0x420]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14009c57f
xor r8d, r8d
lea rdx, [rbp + 0x420]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14009c4f0
mov r8d, ntohs
lea rdx, [rbp]
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14009c5b6
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14009c4f0
lea rax, str.Cleanupsys
mov edx, 0x104
lea r9, [rbp]
mov qword [rsp + 0x20], rax
lea r8, str.__s___s
lea rcx, [rbp + 0x210]
call fcn.14004e9f0
xor edx, edx
mov dword [rsp + 0x58], edi
lea rcx, [rbp - 0x70]
lea r8d, [rdx + 0x68]
call fcn.1402767a0
xor eax, eax
mov dword [rbp - 0x70], 0x68
mov qword [rsp + 0x60], rax
lea rdx, [rbp + 0x210]
mov qword [rsp + 0x68], rax
lea rcx, [rbp]
mov qword [rsp + 0x70], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14009c696
mov rcx, qword [rsp + 0x60]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, 2
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, qword [r15 + 8]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_PostMessageW]
mov edi, 1
jmp 0x14009c4f0
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r8d, ntohs
lea rdx, [rbp]
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14009c4f0
xor r8d, r8d
lea rdx, [rbp]
lea rcx, [rbp + 0x420]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x14009c4f0