Function at 0x140024070
Capabilities:
Delete file
Encode data using xor
Get file size
Hash data with md5
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 - 0x360]
sub rsp, 0x460
mov rax, qword [0x140069030]
xor rax, rsp
mov qword [rbp + 0x350], rax
mov rsi, rcx
mov qword [rsp + 0x70], rcx
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0x240]
call fcn.14002a470
mov r8d, 0x104
lea rdx, [rbp + 0x240]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp + 0x240]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], 0xf
mov byte [rbp - 0x58], bl
lea rax, [rbp + 0x240]
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop dword [rax]
inc r8
cmp byte [rax + r8], bl
jne 0x140024110
lea rdx, [rbp + 0x240]
lea rcx, [rbp - 0x58]
call fcn.1400019d0
nop
mov r8d, 8
lea rdx, str.001.dat
lea rcx, [rbp - 0x58]
call fcn.1400028c0
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
lea rax, [rbp + 0x240]
nop
inc rdi
cmp byte [rax + rdi], 0
jne 0x140024170
mov r8, rdi
lea rdx, [rbp + 0x240]
lea rcx, [rbp - 0x80]
call fcn.1400019d0
nop
mov r8d, 8
lea rdx, str.002.dat
lea rcx, [rbp - 0x80]
call fcn.1400028c0
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rsi
call fcn.140021c00
mov r14d, ebx
mov dword [rsp + 0x78], ebx
mov r15, rbx
mov qword [rsp + 0x48], rbx
lea r12, [rbp + 0x194]
mov qword [rsp + 0x50], r12
nop word [rax + rax]
mov rax, qword [rsi]
mov rcx, qword [r15 + rax]
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
sub rax, rdx
sar rax, 5
lea rcx, [rbp - 0x38]
test rax, rax
je 0x140024205
call fcn.1400012e0
jmp 0x140024229
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], 0xf
mov byte [rbp - 0x38], 0
xor r8d, r8d
lea rdx, [0x1400601e8]
call fcn.1400019d0
nop
mov rax, qword [rsi]
mov rax, qword [r15 + rax]
mov ecx, dword [rax + 0x78]
mov dword [r12 - 4], ecx
mov dword [r12], ebx
movsxd rax, r14d
lea rcx, [rax + rax*2]
lea rdi, [rbp + 0x198]
lea rdi, [rdi + rcx*8]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea edx, [rax + 0x15]
lea rcx, [rbp]
call fcn.1400140b0
nop
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
cmovae rcx, qword [rbp - 0x38]
mov qword [rsp + 0x30], rbx
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 qword [rsp + 0x68], rax
mov rsi, qword [rbp]
mov qword [rsp + 0x60], rsi
cmp rax, 0xffffffffffffffff
je 0x140024559
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
test eax, eax
je 0x140024549
mov ecx, r14d
call fcn.1400284a4
mov rdi, rax
mov qword [rsp + 0x58], rax
mov dword [rbp - 0x60], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x60]
mov r8d, r14d
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14002433a
mov qword [rbp + 0x30], rbx
mov dword [rbp + 0x20], 0x67452301
mov dword [rbp + 0x24], 0xefcdab89
mov dword [rbp + 0x28], 0x98badcfe
mov dword [rbp + 0x2c], 0x10325476
mov r8d, r14d
mov rdx, rdi
lea rcx, [rbp + 0x20]
call fcn.1400158c0
lea rcx, [rbp + 0x20]
call fcn.1400159c0
movups xmm0, xmmword [rbp + 0x78]
movups xmmword [r12 + 4], xmm0
mov eax, r14d
and eax, 0xf
mov ecx, 0x10
sub ecx, eax
add ecx, 0x10
add ecx, r14d
call fcn.1400284a4
mov rdi, rax
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x18]
call fcn.14001a8b0
mov r12, qword [rbp - 0x18]
lea r13, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae r13, rsi
test rdi, rdi
je 0x14002439b
test r12, r12
je 0x140024395
movups xmm0, xmmword [r12]
movups xmmword [rdi], xmm0
jmp 0x1400243ab
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
call fcn.140031580
mov dword [rax], 0x16
call fcn.14002e2ec
lea rsi, [rdi + 0x10]
mov r9, r14
mov r8, qword [rsp + 0x58]
mov rdx, r14
mov rcx, rsi
call fcn.14001c8a0
movzx ecx, r14b
and cl, 0xf
movsx eax, cl
mov edi, 0x10
sub edi, eax
movsx rax, cl
mov r8d, 0x10
sub r8, rax
mov rcx, qword [rsp + 0x40]
add rcx, 0x10
add rcx, r14
mov edx, edi
call fcn.14002a470
add edi, r14d
lea r14d, [rdi + 0x10]
mov rdx, r13
lea rcx, [rbp + 0x90]
call fcn.140001bf0
movups xmm0, xmmword [r12]
movaps xmmword [rbp + 0x180], xmm0
lea r8, [rbp + 0x180]
test rdi, rdi
je 0x14002446d
dec rdi
shr rdi, 4
inc rdi
nop dword [rax + rax]
mov rax, rsi
sub r8, rsi
mov edx, 0x10
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140024440
lea rdx, [rbp + 0x90]
mov rcx, rsi
call fcn.140002300
mov r8, rsi
add rsi, 0x10
sub rdi, 1
jne 0x140024430
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rcx, qword [rbp - 0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400244ec
mov r9d, 2
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [rbp - 0x5c], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x5c]
mov r8d, r14d
mov rdx, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x50]
mov dword [r12], r14d
jmp 0x1400244f1
mov r12, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.140027b9c
mov rcx, qword [rsp + 0x58]
call fcn.140027b9c
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x14002453f
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002453a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024719
call fcn.140027b9c
mov r15, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14d, dword [rsp + 0x78]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0x10
cmovae rcx, qword [rbp - 0x80]
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 rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400245c0
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x78]
mov r8d, 0xa8
lea rdx, [rbp + 0x190]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rax, qword [rbp + 0x18]
cmp rax, 0x10
jb 0x1400245fc
lea rdx, [rax + 1]
mov rax, rsi
cmp rdx, 0x1000
jb 0x1400245f3
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002471f
mov rcx, rsi
call fcn.140027b9c
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 0x10
jb 0x140024637
inc rdx
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024632
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024725
call fcn.140027b9c
inc r14d
mov dword [rsp + 0x78], r14d
add r15, 0x10
mov qword [rsp + 0x48], r15
add r12, 0x18
mov qword [rsp + 0x50], r12
cmp r14d, 7
jge 0x140024661
mov rsi, qword [rsp + 0x70]
jmp 0x1400241e0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14002469c
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140024697
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002472b
call fcn.140027b9c
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x1400246e3
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400246de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140024713
call fcn.140027b9c
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.140027b50
lea r11, [rsp + 0x460]
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.14002e30c
nop
call fcn.14002e30c
nop
call fcn.14002e30c
nop
call fcn.14002e30c
nop
call fcn.14002e30c
int3