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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ba805
mov eax, dword fs:[0]
push eax
mov eax, 0x3080
call fcn.004a3980
mov eax, dword [0x4e8070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x3054], eax
mov esi, edx
call fcn.00446f37
push esi
lea eax, [ebp - 0x3088]
push eax
call fcn.004485f1
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x3078]
sub eax, dword [ebp - 0x307c]
test eax, 0xffffffe0
jg 0x447493
lea esi, [ebp - 0x3088]
call fcn.004485c4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049795f
leave
ret
push ebx
push 0x8000000
push 3
push ebx
push 7
push SysReAllocString
push edi
call dword [0x4ef7b4]
mov dword [ebp - 0x3034], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x4474bd
cmp eax, 0xffffffff
jne 0x4474ca
lea eax, [ebp - 0x3034]
call fcn.0040681e
jmp 0x44746c
lea ecx, [ebp - 0x3058]
push ecx
push eax
mov dword [ebp - 0x3058], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, 0xfff
cmp eax, ebx
jne 0x4475b7
cmp dword [ebp - 0x3058], ebx
je 0x4474bd
lea esi, [edi + 1]
cmp dword [ebp - 0x3058], ebx
jbe 0x447578
push edi
lea eax, [ebp - 0x1013]
push ebx
push eax
mov byte [ebp - 0x1014], bl
call fcn.00499dd0
add esp, 0xc
push ebx
lea eax, [ebp - 0x303c]
push eax
push esi
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x3034]
mov dword [ebp - 0x303c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4474bd
cmp dword [ebp - 0x1014], 0x70bfbbef
jne 0x447569
cmp dword [ebp - 0x1010], 0x706c646f
jne 0x447569
cmp dword [ebp - 0x100c], 2
jl 0x447569
cmp dword [ebp - 0x100c], 0xa
jle 0x4474bd
push ebx
push ebx
push ebx
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push 0x8000080
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x3054]
call dword [0x4ef7b4]
mov dword [ebp - 0x3038], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x4475a7
cmp eax, 0xffffffff
jne 0x4475c9
lea eax, [ebp - 0x3038]
call fcn.0040681e
jmp 0x4474bd
mov esi, 0x1000
cmp eax, esi
jae 0x4474fe
jmp 0x4474f6
push ebx
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x3038]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
lea esi, [ebp - 0x3088]
call fcn.004486d5
mov edx, eax
lea ecx, [ebp - 0x3030]
call fcn.00447047
mov byte [ebp - 4], 3
cmp dword [ebp - 0x3018], 0x10
mov ecx, dword [ebp - 0x302c]
jae 0x447611
lea ecx, [ebp - 0x302c]
lea edx, [ebp - 0x1014]
call fcn.00446ebc
push edi
lea eax, [ebp - 0x2013]
push ebx
push eax
mov byte [ebp - 0x2014], bl
call fcn.00499dd0
xor eax, eax
lea edi, [ebp - 0x3048]
mov dword [ebp - 0x304c], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x3050], ebx
mov edi, 0x1000
jmp 0x447756
mov ecx, dword [ebp - 0x3050]
cmp ecx, ebx
jbe 0x44777d
mov dword [ebp - 0x3040], ecx
cmp ecx, edi
je 0x447687
mov eax, ecx
shr eax, 9
shl eax, 9
mov dword [ebp - 0x3040], eax
test ecx, 0x1ff
je 0x447687
add dword [ebp - 0x3040], 0x200
mov dword [ebp - 0x303c], ebx
cmp dword [ebp - 0x3040], ebx
jbe 0x447719
lea eax, [ebp - 0x304c]
call fcn.00446fec
mov ecx, dword [eax]
mov esi, dword [ebp - 0x303c]
lea esi, [ebp + esi - 0x2014]
xor dword [esi], ecx
mov ecx, dword [eax + 4]
xor dword [esi + 4], ecx
mov ecx, dword [eax + 8]
xor dword [esi + 8], ecx
mov eax, dword [eax + 0xc]
xor dword [esi + 0xc], eax
push ebx
push edi
push dword [ebp - 0x3048]
push dword [ebp - 0x304c]
call fcn.004b0240
lea eax, [ebp + eax - 0x1014]
mov ecx, dword [eax]
xor dword [esi], ecx
mov ecx, dword [eax + 4]
xor dword [esi + 4], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor dword [esi + 0xc], eax
xor dword [esi + 8], ecx
add dword [ebp - 0x304c], 0x10
adc dword [ebp - 0x3048], ebx
add dword [ebp - 0x303c], 0x10
mov eax, dword [ebp - 0x303c]
cmp eax, dword [ebp - 0x3040]
jb 0x447699
push ebx
lea eax, [ebp - 0x3070]
push eax
push dword [ebp - 0x3040]
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x3038]
mov dword [ebp - 0x3070], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44782b
push edi
lea eax, [ebp - 0x2014]
push ebx
push eax
call fcn.00499dd0
add esp, 0xc
push ebx
lea eax, [ebp - 0x3050]
push eax
push edi
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44764f
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea eax, [ebp - 0x3068]
push eax
push dword [ebp - 0x3034]
mov dword [ebp - 0x305c], ebx
call esi
mov dword [ebp - 0x306c], eax
lea eax, [ebp - 0x3060]
push eax
push dword [ebp - 0x3038]
call esi
mov dword [ebp - 0x3064], eax
lea eax, [ebp - 0x3030]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3054], esp
push 0x4ca890
call fcn.00403461
push dword [ebp - 0x3060]
lea eax, [ebp - 0x3014]
push dword [ebp - 0x3064]
lea ecx, [ebp - 0x3088]
push dword [ebp - 0x3068]
push dword [ebp - 0x306c]
push eax
call fcn.00447144
add esp, 0x34
push ebx
push ebx
push ebx
push dword [ebp - 0x3038]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x305c]
push eax
push edi
lea eax, [ebp - 0x3014]
push eax
push dword [ebp - 0x3038]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
jmp 0x447856
mov eax, dword [ebp - 0x3038]
or dword [ebp - 0x3038], 0xffffffff
cmp eax, 0xffffffff
je 0x447848
cmp eax, ebx
je 0x447848
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3054]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
push ebx
push 1
lea ecx, [ebp - 0x3030]
call fcn.00403db0
lea eax, [ebp - 0x3038]
call fcn.0040681e
lea eax, [ebp - 0x3034]
call fcn.0040681e
lea esi, [ebp - 0x3088]
call fcn.004485c4
mov eax, edi
jmp 0x447479