Function at 0x45ab30
Capabilities:
Delete file
Encode data using xor
Get file size
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x41c
mov ecx, dword [eax + 8]
push ebp
xor ebp, ebp
push esi
cmp ecx, ebp
push edi
je 0x45ad8a
mov ecx, dword [0x7e565c]
push ecx
push ebp
push eax
mov ecx, 0x961ef8
call fcn.00404c60
mov eax, dword [0x961efc]
cmp eax, ebp
jne 0x45ab6b
mov eax, 0x7e5658
mov edi, dword [sym.imp.kernel32.dll_CreateFileA]
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x45abb5
mov eax, dword [0x961efc]
cmp eax, ebp
jne 0x45ab98
mov eax, 0x7e5658
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x45ad8a
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebp
push edx
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0x3e800
jbe 0x45ac13
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x961efc]
cmp eax, ebp
jne 0x45abe1
mov eax, 0x7e5658
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [0x961efc]
cmp eax, ebp
jne 0x45abf6
mov eax, 0x7e5658
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x45ad8a
push ebx
push 2
push ebp
push ebp
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
mov ecx, dword [esp + 0x22]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1e]
and ecx, 0xffff
push ecx
mov ecx, dword [esp + 0x1e]
and edx, 0xffff
and eax, 0xffff
push edx
and ecx, 0xffff
push eax
push ecx
lea edx, [esp + 0x3c]
push 0x82bd40
push edx
mov dword [esp + 0x2c], ebp
call fcn.007a3155
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.kernel32.dll_lstrlenA]
xor edi, edi
cmp eax, ebp
mov dword [esp + 0x10], eax
mov ebx, 0x816
jle 0x45acb1
mov cl, byte [esp + edi + 0x2c]
xor edx, edx
mov dl, bh
xor dl, cl
xor cx, cx
mov cl, dl
mov byte [esp + edi + 0x2c], dl
add ecx, ebx
lea ebx, [ecx + ecx*2]
shl ebx, 6
add ebx, ecx
shl ebx, 7
inc edi
cmp edi, eax
lea ebx, [ebx + ecx + 0x1608]
jl 0x45ac85
lea ecx, [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.kernel32.dll_WriteFile]
push ecx
lea edx, [esp + 0x18]
push 4
push edx
push esi
call ebp
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 0
push eax
lea edx, [esp + 0x34]
push ecx
push edx
push esi
call ebp
mov eax, dword [esp + 0x22]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1e]
and eax, 0xffff
push eax
mov eax, dword [esp + 0x1e]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esp + 0x3c]
push 0x82bd10
push ecx
call fcn.007a3155
add esp, 0x18
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.kernel32.dll_lstrlenA]
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
mov ebx, 0x816
jle 0x45ad5d
mov cl, byte [esp + edi + 0x2c]
xor edx, edx
mov dl, bh
xor dl, cl
xor cx, cx
mov cl, dl
mov byte [esp + edi + 0x2c], dl
add ecx, ebx
lea ebx, [ecx + ecx*2]
shl ebx, 6
add ebx, ecx
shl ebx, 7
inc edi
cmp edi, eax
lea ebx, [ebx + ecx + 0x1608]
jl 0x45ad31
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push esi
call ebp
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
push esi
call ebp
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x41c
ret