Function at 0x140002660
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x14002e010]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov esi, edx
mov rdi, rcx
xor ebx, ebx
mov dword [rbp - 0x7c], ebx
cmp qword [rcx + 0x28], rbx
je 0x140002964
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov rcx, rax
mov qword [rbp - 0x78], rax
mov eax, 0x10624dd3
mul ecx
mov r14d, edx
shr r14d, 6
mov eax, 0x88888889
mul r14d
mov r15d, edx
shr r15d, 5
mov eax, 0x88888889
mul r15d
mov r12d, edx
shr r12d, 5
mov eax, 0xaaaaaaab
mul r12d
mov r13d, edx
shr r13d, 4
imul eax, r14d, 0x3e8
sub ecx, eax
mov dword [rbp - 0x80], ecx
imul eax, r15d, 0xffffffc4
add r14d, eax
imul eax, r12d, 0xffffffc4
add r15d, eax
imul eax, r13d, 0xffffffe8
add r12d, eax
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
test esi, esi
je 0x140002733
lea rcx, [rbp - 0x50]
call fcn.140002140
nop
mov ebx, 1
jmp 0x140002758
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], 0xf
xor r8d, r8d
lea rcx, [rbp - 0x70]
call fcn.140004590
lea rax, [rbp - 0x70]
mov ebx, 2
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x10], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
test bl, 2
je 0x1400027c1
and ebx, 0xfffffffd
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x1400027c1
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400027bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009330
nop
test bl, 1
je 0x140002804
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140002804
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400027ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400027ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009330
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 0x10
cmovae rax, qword [rbp - 0x20]
movzx ecx, word [rbp - 0x24]
movzx r10d, word [rbp - 0x26]
movzx r11d, word [rbp - 0x28]
movzx ebx, word [rbp - 0x2a]
movzx r9d, word [rbp - 0x2e]
movzx r8d, word [rbp - 0x30]
lea rdx, str.________________________________n_Closed__at_:__.4d__.2d__.2d__.2d:_.2d:_.2d_n_UpTime_____:__lu_Days__.2luh__.2lum__.2lus_::__lu_ms___lu__n_s________________________________n
test esi, esi
lea rsi, str.________________________________n_Started_at_:__.4d__.2d__.2d__.2d:_.2d:_.2d_n_UpTime_____:__lu_Days__.2luh__.2lum__.2lus_::__lu_ms___lu__n_Version____:__s_n________________________________n
cmovne rdx, rsi
mov qword [rsp + 0x70], rax
mov rax, qword [rbp - 0x78]
mov dword [rsp + 0x68], eax
mov eax, dword [rbp - 0x80]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x58], r14d
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
lea rcx, [rbp]
call fcn.140004770
movsxd rsi, eax
mov rcx, qword [rdi + 0x48]
mov rbx, qword [rcx + 8]
test rbx, rbx
je 0x140002910
cmp dword [rbx], 0
je 0x140002910
mov eax, 4
mov rcx, qword gs:[0x58]
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x14002e8f0], ecx
jle 0x1400028e9
lea rcx, [0x14002e8f0]
call fcn.1400094c0
cmp dword [0x14002e8f0], 0xffffffff
jne 0x1400028e9
movzx eax, byte [rbx + 1]
sub al, byte [rbx + 3]
sub al, byte [rbx + 2]
add al, byte [rbx]
mov byte [0x14002e880], al
lea rcx, [0x14002e8f0]
call fcn.140009460
lea rcx, [rbp]
movzx eax, byte [rbp]
test al, al
je 0x140002910
movzx r8d, byte [0x14002e880]
nop dword [rax]
xor al, r8b
mov byte [rcx], al
lea rcx, [rcx + 1]
movzx eax, byte [rcx]
test al, al
jne 0x140002900
mov r8, rsi
mov r9, qword [rdi + 0x28]
mov edx, 1
lea rcx, [rbp]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, qword [rbp - 8]
cmp rdx, 0x10
jb 0x140002964
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000295f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000295f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009330
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.140009310
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret