Function at 0x140024b90
Capabilities:
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov rax, qword [0x14006c030]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov r12, rcx
xor r13d, r13d
mov esi, r13d
mov dword [rsp + 0x48], r13d
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x130]
call fcn.14002a960
mov r8d, 0x104
lea rdx, [rbp + 0x130]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x130]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov qword [rbp - 0x18], r13
mov qword [rbp - 8], r13
mov qword [rbp], 0xf
mov byte [rbp - 0x18], sil
lea rax, [rbp + 0x130]
mov rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp byte [rax + r8], sil
jne 0x140024c31
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x18]
call fcn.140001350
nop
mov r8d, 8
lea rdx, str.002.dat
lea rcx, [rbp - 0x18]
call fcn.1400028d0
lea rcx, [rbp - 0x18]
cmp qword [rbp], 0x10
cmovae rcx, qword [rbp - 0x18]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x140025376
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.1400288f4
mov r15, rax
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x60], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x60]
mov r8d, ebx
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xa8
jne 0x140025376
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
lea rax, [rbp + 0x130]
nop dword [rax + rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140024d10
mov r8, rdi
lea rdx, [rbp + 0x130]
lea rcx, [rbp - 0x58]
call fcn.140001350
nop
mov r8d, 8
lea rdx, str.001.dat
lea rcx, [rbp - 0x58]
call fcn.1400028d0
mov qword [rsp + 0x68], r13
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
mov ebx, r13d
cmp rax, 0xffffffffffffffff
je 0x140024dd0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.1400288f4
mov qword [rsp + 0x68], rax
mov dword [rbp - 0x5c], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x5c]
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop word [rax + rax]
lea rdi, [r15 + 4]
mov qword [rsp + 0x58], rdi
mov eax, dword [r15 + 0x94]
add eax, dword [r15 + 0x7c]
add eax, dword [r15 + 0x64]
add eax, dword [r15 + 0x4c]
add eax, dword [r15 + 0x34]
add eax, dword [r15 + 0x1c]
add eax, dword [rdi]
cmp eax, ebx
jne 0x14002532b
mov edx, 0x15
lea rcx, [rbp + 8]
call fcn.140014120
nop
mov eax, r13d
mov dword [rsp + 0x44], eax
cmp qword [rbp + 0x20], 0x10
setae r9b
mov byte [rsp + 0x40], r9b
mov r14, r13
mov qword [rsp + 0x50], r13
mov rcx, qword [rbp + 8]
mov r8d, dword [rdi]
mov dword [rsp + 0x48], r8d
lea rdx, [rbp + 8]
test r9b, r9b
cmovne rdx, rcx
lea r13d, [r8 - 0x10]
mov ebx, eax
add rbx, qword [rsp + 0x68]
lea r15, [rbx + 0x10]
mov qword [rsp + 0x60], r15
lea rcx, [rbp + 0x30]
call fcn.140001bf0
movups xmm0, xmmword [rbx]
movaps xmmword [rbp + 0x120], xmm0
mov rbx, r15
test r13d, r13d
je 0x140024eda
lea rdi, [rbp + 0x120]
sub rdi, r15
lea r14, [r13 - 1]
shr r14, 4
inc r14
nop word [rax + rax]
movups xmm0, xmmword [rbx]
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140002600
mov ecx, 0x10
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140024eb0
movaps xmmword [rbp + 0x120], xmm0
sub rdi, 0x10
sub r14, 1
jne 0x140024e90
mov r14, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
lea eax, [r13 - 1]
movzx eax, byte [rax + r15]
sub r13d, eax
cmp eax, 0x10
mov ebx, 0
cmova r13d, ebx
test r13d, r13d
je 0x1400252a0
mov rax, qword [r12]
mov rcx, qword [r14 + rax]
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 5
or esi, 1
lea rcx, [rbp - 0x38]
test rax, rax
je 0x140024f24
call fcn.1400015f0
jmp 0x140024f47
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], bl
xor r8d, r8d
lea rdx, [0x140062ce8]
call fcn.140001350
nop
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rcx, qword [rbp - 0x38]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140024fa8
xor eax, eax
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, r13d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8, qword [r12]
mov rdx, r8
mov rax, qword [r8 + r14]
xor ecx, ecx
cmp dword [rax + 0x80], 1
jne 0x14002510b
mov r15d, ecx
mov rax, qword [r12 + 8]
sub rax, r8
sar rax, 4
test rax, rax
je 0x140025139
mov r14d, ecx
mov rdi, qword [rsp + 0x60]
mov rax, qword [r14 + r8]
cmp dword [rax + 0x80], 0x80
jne 0x1400250d8
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 2
test rax, rax
je 0x140025017
lea rcx, [rbp - 0x80]
call fcn.1400015f0
jmp 0x14002503a
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], 0xf
xor r8d, r8d
lea rdx, [0x140062ce8]
lea rcx, [rbp - 0x80]
call fcn.140001350
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002509d
xor eax, eax
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, r13d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x1400250d8
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400250d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253e3
call fcn.140027ffc
inc r15d
add r14, 0x10
mov rdx, qword [r12]
mov rcx, qword [r12 + 8]
sub rcx, rdx
sar rcx, 4
mov r8, rdx
movsxd rax, r15d
cmp rax, rcx
mov ecx, 0
jb 0x140024fe2
mov r15, rdi
mov r14, qword [rsp + 0x50]
mov rax, qword [rdx + r14]
cmp dword [rax + 0x80], 2
jne 0x140025260
mov r14d, ecx
mov rax, qword [r12 + 8]
sub rax, rdx
sar rax, 4
test rax, rax
je 0x14002525b
mov rdi, rcx
jmp 0x140025142
mov r15, qword [rsp + 0x60]
jmp 0x14002510b
xor ecx, ecx
mov rax, qword [rdi + rdx]
cmp dword [rax + 0x80], 0x100
jne 0x140025238
mov rdx, qword [rax]
mov rax, qword [rax + 8]
sub rax, rdx
sar rax, 5
or esi, 4
test rax, rax
je 0x140025177
lea rcx, [rbp - 0x80]
call fcn.1400015f0
jmp 0x14002519a
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x70], rcx
mov qword [rbp - 0x68], 0xf
xor r8d, r8d
lea rdx, [0x140062ce8]
lea rcx, [rbp - 0x80]
call fcn.140001350
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400251fd
xor eax, eax
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
mov r8d, r13d
mov rdx, r15
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x140025238
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025233
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253e9
call fcn.140027ffc
inc r14d
add rdi, 0x10
mov rdx, qword [r12]
mov rcx, qword [r12 + 8]
sub rcx, rdx
sar rcx, 4
movsxd rax, r14d
cmp rax, rcx
jb 0x140025140
mov r14, qword [rsp + 0x50]
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x14002529b
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025296
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253ef
call fcn.140027ffc
mov rdi, qword [rsp + 0x58]
mov eax, dword [rsp + 0x44]
add eax, dword [rsp + 0x48]
mov dword [rsp + 0x44], eax
add rdi, 0x18
mov qword [rsp + 0x58], rdi
add r14, 0x10
mov qword [rsp + 0x50], r14
cmp r14, 0x70
jge 0x1400252cf
movzx r9d, byte [rsp + 0x40]
jmp 0x140024e2a
mov rcx, qword [rsp + 0x70]
call fcn.140027ffc
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x1400252ec
mov rcx, rax
call fcn.140027ffc
nop
cmp byte [rsp + 0x40], 0
je 0x140025328
mov rdx, qword [rbp + 0x20]
inc rdx
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025323
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253f5
call fcn.140027ffc
xor r13d, r13d
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140025366
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140025361
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253fb
call fcn.140027ffc
mov qword [rbp - 0x48], r13
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x1400253ad
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400253a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400253dd
call fcn.140027ffc
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140027fa0
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.14002e938
nop
call fcn.14002e938
nop
call fcn.14002e938
nop
call fcn.14002e938
nop
call fcn.14002e938
nop
call fcn.14002e938
int3