Function at 0x10014e80
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4034
call fcn.10030df0
mov eax, dword [0x100525d4]
xor eax, esp
mov dword [esp + 0x4030], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ecx
cmp eax, ebx
je 0x10014ef8
cmp ecx, ebx
je 0x10014ef8
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x80000000
push eax
call edi
mov esi, eax
mov dword [esp + 0x30], esi
cmp esi, 0xffffffff
jne 0x10014f11
mov ecx, dword [esp + 0x34]
push ecx
push str.DecryptFileToFile::_tFailed_opening_source_file:__s_n
mov ecx, 2
call fcn.10011b40
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4030]
xor ecx, esp
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0x18]
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push edx
call edi
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x10014f44
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
push eax
push str.DecryptFileToFile::_tFailed_creating_destination_file:__s_n
jmp 0x10014eeb
push 0x3fff
lea ecx, [esp + 0x3d]
push ebx
push ecx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x44], bl
call fcn.10023380
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ecx, edi
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], 1
call fcn.100155a0
push ebx
lea edx, [esp + 0x30]
push edx
push 0x4000
lea eax, [esp + 0x44]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001511b
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x1001508f
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
mov byte [esp + 0x1b], bl
call fcn.100159e0
test eax, eax
je 0x10015041
lea eax, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.10014bb0
mov edi, dword [esp + 0x20]
test eax, eax
je 0x10014ffa
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x18]
push edx
push esi
push edi
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], esi
jne 0x10015062
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x1c], ebx
je 0x1001501c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
neg eax
sbb eax, eax
inc eax
cmp eax, ebx
jne 0x1001501c
mov dword [esp + 0x20], ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
push 0x4000
lea edx, [esp + 0x44]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [esp + 0x28]
test eax, eax
jne 0x10014f92
jmp 0x10015099
mov eax, dword [esp + 0x34]
push eax
push str.DecryptFileToFile::_tDecrypt_block_failed_in_file:__s_n
mov ecx, 2
call fcn.10011b40
add esp, 8
mov byte [esp + 0xe], 1
jmp 0x1001511b
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x1c]
call fcn.10011d70
jmp 0x10014ef8
cmp byte [esp + 0xf], bl
jne 0x1001511b
mov eax, edi
call fcn.10015b70
lea eax, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.10014bb0
test eax, eax
je 0x10015109
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push ebx
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x14], edi
je 0x1001510e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [esp + 0x1c]
call fcn.10011d70
jmp 0x10014ef8
mov byte [esp + 0xe], 1
lea esi, [esp + 0x1c]
call fcn.10011d70
mov esi, dword [esp + 0x30]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
cmp byte [esp + 0xe], bl
je 0x10015159
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x34]
push esi
push ecx
push str.DecryptFileToFile::_t_Failed_on__s_to__s_n
mov ecx, 2
call fcn.10011b40
add esp, 0xc
jmp 0x10014ef8
mov ecx, dword [esp + 0x403c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 8