Function at 0x140078698
Capabilities:
Copy file
Delete file
Encode data using xor
Get common file path
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 0x20], r9d
mov qword [rax + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1178]
mov eax, 0x1240
call fcn.140037740
sub rsp, rax
xor edi, edi
xorps xmm0, xmm0
mov rsi, rcx
mov ecx, 0x10000
mov r12, r8
mov r14, rdx
mov qword [rbp - 0x80], rdi
mov qword [rbp - 0x78], rdi
mov dword [rbp - 0x70], edi
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x58], di
mov word [rbp + 0x1b0], di
mov qword [rbp + 0x3d8], rdi
call fcn.14002503c
lea rcx, [rsp + 0x60]
mov rdx, rax
call fcn.14001b3ac
lea rcx, [rbp + 0x610]
call fcn.140078430
mov r8d, dword [rsi + 8]
mov rdx, qword [rsi]
lea r13d, [rdi + 1]
xor r9d, r9d
mov rcx, rsi
mov ebx, r13d
mov dword [rsp + 0x30], ebx
call fcn.14001b230
lea rdx, [0x1400ca114]
mov rcx, r14
call fcn.1400263a4
mov r15, qword [rsp + 0x60]
lea r8, [rbp + 0xb10]
mov rdx, r14
mov rcx, rsi
test eax, eax
jne 0x14007897c
call fcn.140078de0
test eax, eax
jne 0x140078989
lea rax, [rbp + 0x900]
lea r9, [rbp + 0xf30]
lea r8, [rbp + 0xd20]
lea rdx, [rsp + 0x38]
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140026fd0
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0x6f0]
call fcn.140025938
lea rdx, [rbp + 0xd20]
lea rcx, [rbp + 0x6f0]
call fcn.14002590c
lea rax, [rbp + 0x900]
lea r9, [rbp + 0xf30]
lea r8, [rbp + 0xd20]
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0xb10]
mov qword [rsp + 0x20], rax
call fcn.140026fd0
lea rdx, [rbp + 0xf30]
lea rcx, [rbp + 0x6f0]
call fcn.14002590c
lea rdx, [rbp + 0x900]
lea rcx, [rbp + 0x6f0]
call fcn.14002590c
lea r12, [rbp + 0x6f0]
mov qword [rbp + 0x1190], r12
mov rax, qword [rsi]
lea rdx, [rbp + 0x1198]
mov r9, r13
mov r8, r13
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001b258
mov rax, qword [rsi]
mov r14d, 4
lea rdx, [rbp + 0x1180]
mov r9, r13
mov r8d, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001b258
mov r13d, dword [rbp + 0x1180]
mov rax, qword [rsi]
lea rdx, [rbp + 0x1180]
xor r13d, 0x87bc
mov r9, rbx
mov r8d, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x40], r13d
call fcn.14001b258
mov rax, qword [rsi]
lea rdx, [rbp + 0x1180]
mov r9, rbx
mov r8d, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001b258
mov eax, dword [rbp + 0x1180]
lea rdx, [rsp + 0x5c]
xor eax, 0xa685
mov r9, rbx
mov r8d, r14d
mov dword [rsp + 0x38], eax
mov rax, qword [rsi]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001b258
mov rax, qword [rsi]
lea rdx, [rsp + 0x58]
mov r9, rbx
mov r8d, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001b258
mov rax, qword [rsi]
lea rdx, [rsp + 0x4c]
mov r9, rbx
mov r8d, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001b258
mov rax, qword [rsi]
lea rdx, [rsp + 0x48]
mov r9, rbx
mov r8d, r14d
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14001b258
lea rdx, [rbp + 0x900]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp + 0x400]
lea rdx, [0x1400ca860]
lea rcx, [rbp + 0x900]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea rdx, [0x1400ca868]
lea rcx, [rbp + 0x400]
call fcn.140029744
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140078993
lea edi, [rax + 9]
jmp 0x140078b60
call fcn.140078de0
test eax, eax
je 0x14007881f
mov edi, 6
jmp 0x140078b60
mov edx, dword [rsi + 0xc]
lea rcx, [rbp + 0x610]
add edx, 0x2477
call fcn.14007848c
mov r14d, edi
test r13d, r13d
jle 0x140078a5a
mov r12, qword [rsp + 0x50]
lea eax, [r14 + 0x10000]
cmp eax, r13d
jle 0x1400789cd
mov ebx, r13d
sub ebx, r14d
jmp 0x1400789d2
mov ebx, 0x10000
mov rax, qword [rsi]
movsxd r13, ebx
mov r8d, 1
mov rdx, r15
mov rcx, rsi
mov r9, r13
mov qword [rsp + 0x20], rax
add r14d, ebx
call fcn.14001b258
test ebx, ebx
jle 0x140078a1e
mov r13, r15
movsxd r15, ebx
lea rcx, [rbp + 0x610]
call fcn.140078600
xor byte [r13], al
inc r13
dec r15
jne 0x1400789fe
mov r15, qword [rsp + 0x60]
movsxd r13, ebx
lea rcx, [rsp + 0x30]
mov r8d, ebx
mov rdx, r15
call fcn.140077d1c
mov r9, r12
mov r8, r13
mov edx, 1
mov rcx, r15
call fcn.1400278c0
mov r13d, dword [rsp + 0x40]
cmp r14d, r13d
jl 0x1400789b9
mov ebx, dword [rsp + 0x30]
mov r12, qword [rbp + 0x1190]
mov rcx, qword [rsp + 0x50]
call fcn.1400298ac
cmp dword [rsp + 0x38], ebx
je 0x140078a81
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 0xa
jmp 0x140078b60
cmp byte [rbp + 0x1198], 1
jne 0x140078b16
xorps xmm0, xmm0
mov ebx, 0x104
lea rdx, [rbp + 0x400]
lea rcx, [rbp - 0x58]
mov r8d, ebx
mov qword [rbp - 0x80], rdi
movdqa xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x68], rdi
mov qword [rbp - 0x60], rdi
mov word [rbp - 0x58], di
mov word [rbp + 0x1b0], di
mov qword [rbp + 0x3d8], rdi
mov dword [rbp - 0x70], edi
call fcn.140026f88
lea rcx, [rbp + 0x1b0]
mov r8d, ebx
mov rdx, r12
mov word [rbp + 0x1b0], di
call fcn.140026f88
lea rcx, [rsp + 0x70]
mov word [rbp + 0x3b8], di
call fcn.140077f6c
test eax, eax
je 0x140078b41
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, reloc.WSOCK32.dll_inet_ntoa
jmp 0x140078b60
lea rcx, [rbp + 0x400]
xor r8d, r8d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140078b41
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 7
jmp 0x140078b60
lea rcx, [rbp + 0x400]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x58]
mov rdx, r12
call fcn.140079004
mov rcx, qword [rsp + 0x68]
dec qword [rcx]
jne 0x140078b77
call fcn.140023700
mov rcx, r15
call fcn.140023700
mov eax, edi
mov rbx, qword [rsp + 0x1288]
add rsp, 0x1240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret