Function at 0x140002494
Capabilities:
Clear file content
Get file size
Move file
Read file on windows
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x2b8]
sub rsp, 0x380
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x140050010]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov qword [rsp + 0x50], rdx
mov r13, rcx
mov dword [rsp + 0x40], 0x19000
mov rsi, qword [0x140055488]
add rsi, 0x708
xor ebx, ebx
cmp word [rsi], bx
je 0x140002556
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r14d, eax
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_StrStrW]
mov r15, rax
test rax, rax
je 0x140002538
mov rcx, qword [0x140055488]
add rcx, 0x240
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [rax + r14]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
je 0x140002545
lea eax, [r14 + 1]
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
jmp 0x1400024ee
mov rax, qword [0x140055488]
mov ecx, dword [rax + 0xb0c]
mov dword [rsp + 0x40], ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 1]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14000295c
lea rdx, [rbp - 0x60]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rdi, 0xfffffffffffffdf8
mov r14d, 2
mov r9d, r14d
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x78]
lea r8d, [r14 + 6]
lea rdx, [rbp + 0x60]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x78]
mov esi, 0x200
mov r8d, esi
lea rdx, [rbp + 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdx, qword [0x140055488]
add rdx, 0x40
mov r8d, esi
lea rcx, [rbp + 0x70]
call fcn.140017940
mov rcx, r12
test eax, eax
je 0x14000261c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000296b
mov r9d, r14d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rsi, qword [0x140055488]
add rsi, 0x308
mov qword [rsp + 0x48], rbx
cmp word [rsi], bx
je 0x1400026bc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r14d, eax
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_StrStrW]
mov r15, rax
test rax, rax
je 0x1400026a7
mov rcx, qword [0x140055488]
add rcx, 0x240
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [rax + r14]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
je 0x140002995
lea eax, [r14 + 1]
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
cmp word [rsi], bx
jne 0x14000265e
mov qword [rsp + 0x48], rbx
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov r8, qword [0x140055488]
add r8, 0xb08
mov r9b, 1
lea rdx, str.Rounds
lea rcx, [rsp + 0x60]
call fcn.1400036c0
mov r15, rax
mov r14b, byte [rax + 0x10]
mov edi, 0x28
mov ecx, edi
call fcn.140003f14
mov rsi, rax
mov qword [rbp - 0x80], rax
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140017310
lea rax, [0x140048a00]
mov qword [rsi + 8], rax
mov byte [rsi + 0x10], r14b
mov byte [rsi + 0x11], bl
lea rcx, [rsi + 0x18]
mov qword [rcx], rbx
lea rax, vtable.CryptoPP::AlgorithmParametersTemplate_unsigned_char_const____ptr64_.0
mov qword [rsi], rax
lea rax, [rbp + 0x60]
mov qword [rsi + 0x20], rax
mov qword [rbp - 0x80], rsi
lea rdi, [r15 + 8]
mov rdx, qword [rdi]
mov qword [rdi], rbx
call fcn.140003690
mov qword [rbp - 0x80], rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140003690
mov byte [r15 + 0x10], r14b
lea rcx, [rbp - 0x80]
call fcn.140003668
mov rdx, r15
lea rcx, [rbp - 0x78]
call fcn.1400084d0
nop
lea rcx, [rsp + 0x68]
call fcn.140003668
lea rax, vtable.CryptoPP::NameValuePairs.0
mov qword [rsp + 0x60], rax
xor edx, edx
mov r8d, 0xb8
lea rcx, [rbp - 0x58]
call fcn.140017310
mov dl, 1
lea rcx, [rbp - 0x50]
call fcn.140005980
mov dl, 1
lea rcx, [rbp - 0x48]
call fcn.140005980
or qword [rbp - 0x38], 0xffffffffffffffff
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rbx
movabs rax, 0x3fffffffffffffff
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], 0x10
mov byte [rbp + 0x39], 1
lea rax, [rbp - 0x10]
neg rax
and eax, 0xf
lea rcx, [rbp - 0x10]
add rax, rcx
mov qword [rbp + 0x50], rax
lea r15, [0x140048b80]
mov qword [rbp - 0x58], r15
lea r14, [0x140048e58]
mov qword [rbp - 0x50], r14
lea rax, [0x140048c10]
mov qword [rbp - 0x48], rax
lea rax, [0x140048d88]
mov qword [rbp - 0x18], rax
lea r9, [rbp - 0x78]
mov r8d, 0x20
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x58]
call fcn.140007180
mov esi, dword [rsp + 0x40]
mov ecx, esi
call fcn.140024450
mov rdi, rax
test rax, rax
je 0x1400028d0
mov r14, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x78]
mov r8d, esi
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r9d, dword [rsp + 0x78]
mov r8, rdi
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140007f30
mov eax, dword [rsp + 0x78]
neg eax
movsxd rdx, eax
mov r9d, 1
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x78]
mov r8d, dword [rsp + 0x78]
mov rdx, rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r14, r14
je 0x1400028c1
cmp dword [rsp + 0x78], esi
je 0x140002853
mov rcx, rdi
call fcn.14002443c
lea r14, [0x140048e58]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xfffe
call fcn.140024450
mov rdi, rax
test rax, rax
je 0x14000292b
mov rdx, r13
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, qword [0x140055488]
add rdx, 0x240
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrW]
test rax, rax
je 0x140002922
mov word [rax], bx
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov rcx, rdi
call fcn.14002443c
nop
mov qword [rbp - 0x58], r15
mov qword [rbp - 0x50], r14
lea rax, [0x140048c10]
mov qword [rbp - 0x48], rax
lea rax, [0x140048d88]
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x58]
call fcn.140002e40
nop
lea rcx, [rbp - 0x70]
call fcn.140003668
mov rdx, r13
lea rcx, [0x140048ae8]
call fcn.140001640
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140003ee0
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x48], 1
jmp 0x1400026bc