Function at 0x10014ee0
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.10037d10
mov eax, dword [0x100505e4]
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 0x10014f58
cmp ecx, ebx
je 0x10014f58
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 0x10014f71
mov ecx, dword [esp + 0x34]
push ecx
push str.DecryptFileToFile::_tFailed_opening_source_file:__s_n
mov ecx, 2
call fcn.10011b20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4030]
xor ecx, esp
call fcn.10024280
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 0x10014fa4
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 0x10014f4b
push 0x3fff
lea ecx, [esp + 0x3d]
push ebx
push ecx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x44], bl
call fcn.1002a240
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ecx, edi
mov byte [esp + 0xe], bl
mov byte [esp + 0xf], 1
call fcn.10015600
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 0x1001517b
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x100150ef
push eax
lea ecx, [esp + 0x3c]
push ecx
push edi
mov byte [esp + 0x1b], bl
call fcn.10015a40
test eax, eax
je 0x100150a1
lea eax, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.10014c10
mov edi, dword [esp + 0x20]
test eax, eax
je 0x1001505a
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 0x100150c2
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x1c], ebx
je 0x1001507c
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 0x1001507c
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 0x10014ff2
jmp 0x100150f9
mov eax, dword [esp + 0x34]
push eax
push str.DecryptFileToFile::_tDecrypt_block_failed_in_file:__s_n
mov ecx, 2
call fcn.10011b20
add esp, 8
mov byte [esp + 0xe], 1
jmp 0x1001517b
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.10011d50
jmp 0x10014f58
cmp byte [esp + 0xf], bl
jne 0x1001517b
mov eax, edi
call fcn.10015bd0
lea eax, [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call fcn.10014c10
test eax, eax
je 0x10015169
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 0x1001516e
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.10011d50
jmp 0x10014f58
mov byte [esp + 0xe], 1
lea esi, [esp + 0x1c]
call fcn.10011d50
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 0x100151b9
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.10011b20
add esp, 0xc
jmp 0x10014f58
mov ecx, dword [esp + 0x403c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.10024280
mov esp, ebp
pop ebp
ret 8