Function at 0x454d20
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 0x454f7a
mov ecx, dword [0x76560c]
push ecx
push ebp
push eax
mov ecx, 0x8b5a80
call fcn.00404560
mov eax, dword [0x8b5a84]
cmp eax, ebp
jne 0x454d5b
mov eax, 0x765608
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 0x454da5
mov eax, dword [0x8b5a84]
cmp eax, ebp
jne 0x454d88
mov eax, 0x765608
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x454f7a
lea edx, [esp + 0x24]
mov dword [esp + 0x24], ebp
push edx
push esi
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0x3e800
jbe 0x454e03
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x8b5a84]
cmp eax, ebp
jne 0x454dd1
mov eax, 0x765608
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov eax, dword [0x8b5a84]
cmp eax, ebp
jne 0x454de6
mov eax, 0x765608
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x454f7a
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 0x7a44ec
push edx
mov dword [esp + 0x2c], ebp
call fcn.00727335
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 0x454ea1
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 0x454e75
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 0x7a44bc
push ecx
call fcn.00727335
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 0x454f4d
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 0x454f21
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