Function at 0x4a4de0
Capabilities:
Delete file
Get file size
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca698
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x4fca20]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x5c]
xor ebx, ebx
cmp eax, ebx
je 0x4a4e1f
mov ecx, dword [edi + 0x60]
mov edx, dword [ebp + 0x18]
push ecx
push edx
push 1
call eax
mov eax, dword [ebp + 0xc]
push str..frd
push eax
lea ecx, [ebp - 0x14]
push ecx
call fcn.0040338d
add esp, 0xc
mov esi, dword [ebp + 0x14]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
cmp esi, 0xce
je 0x4a4e48
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
xor edx, edx
cmp esi, 0xce
sete dl
push ebx
push 0x80
lea edx, [edx + edx + 2]
push edx
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a4e90
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4a50f1
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [ebp - 0x80]
call fcn.00414fe0
push 9
push str.encrypter
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00415360
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
xor eax, eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
push 0xea60
push 0x4a40f0
lea edx, [ebp - 0x30]
mov dword [ebp - 0x20], eax
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [edi + 0x10]
push edi
mov byte [ebp - 4], 3
call fcn.004a4c70
test eax, eax
je 0x4a4fa2
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
je 0x4a4fa2
cmp dword [ebp + 0x14], 0xce
je 0x4a4f51
mov ecx, dword [ebp - 0x3c]
mov edx, ecx
sub edx, ebx
jne 0x4a4f51
mov byte [ebp - 0x10], dl
test eax, eax
je 0x4a4f34
sub ebx, ecx
lea edx, [ebp - 0x10]
push edx
add ebx, eax
push ebx
push ecx
lea ecx, [ebp - 0x40]
call fcn.00413ef0
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x30]
push ebx
push eax
lea ecx, [ebp - 0x80]
call fcn.00415140
mov edx, dword [ebp - 0x3c]
push 0
lea ecx, [ebp - 0x1c]
push ecx
sub edx, ebx
push edx
push ebx
jmp 0x4a4f5c
mov edx, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x1c]
push ecx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [edi + 0x5c]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x4a4f7f
mov edx, dword [edi + 0x60]
push edx
push eax
push 2
call ecx
push 0xea60
push 0x4a40f0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp + 8]
push ecx
push edi
lea ecx, [edi + 0x10]
call fcn.004a4c70
test eax, eax
jne 0x4a4ef4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x3c]
sub esi, ebx
je 0x4a5062
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4a5062
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0xb]
push eax
push esi
lea ecx, [ebp - 0x50]
mov byte [ebp + 0xb], 0
call fcn.004018d4
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x4c]
sub esi, eax
push esi
push eax
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 4
call fcn.004151d0
mov ecx, dword [ebp - 0x18]
push 0
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x18]
push 0
lea edx, [ebp - 0x1c]
push edx
push esi
mov esi, dword [ebp - 0x50]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4a5047
mov ecx, dword [edi + 0x60]
push ecx
push 0
push 3
call eax
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 3
test esi, esi
je 0x4a5062
push esi
call fcn.0047d656
add esp, 4
mov eax, dword [ebp + 0x18]
cmp dword [ebp - 0x20], eax
jb 0x4a508e
cmp dword [ebp + 0x14], 0xce
jne 0x4a508e
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x4a5091
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
je 0x4a50b2
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x4a50a8
mov ecx, dword [edi + 0x60]
push ecx
push 0
push 4
call eax
mov eax, dword [esi]
push eax
mov ecx, edi
call fcn.004a3cd0
test ebx, ebx
je 0x4a50bf
push ebx
call fcn.0047d656
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4a50cf
push eax
call fcn.0047d656
add esp, 4
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.00415040
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov dword [ebp - 4], ecx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4a50fd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14