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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003a016
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov dword [esp + 0x28], esi
add esi, 8
mov dword [esp + 0x24], eax
mov eax, esi
mov byte [esp + 0x17], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10028f30
sub eax, edx
je 0x10028fb2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x10028fb9
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push esi
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x10028fbd
push 0x1ff
lea ecx, [esp + 0x69]
push 0
push ecx
mov byte [esp + 0x70], 0
call fcn.1002fb20
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.WriteLog_faild__FileName:_s_ErrorCode:_d
mov ecx, 0x200
lea edi, [esp + 0x70]
call fcn.10004080
add esp, 0xc
xor al, al
jmp 0x10029146
mov bl, 1
jmp 0x10028fc1
mov bl, byte [esp + 0x17]
xor esi, esi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], esi
mov byte [esp + 0x30], 0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x27c], esi
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1002900e
cmp dword [esp + 0x44], 0x10
jb 0x10029007
mov eax, dword [esp + 0x30]
push eax
call fcn.1002b322
add esp, 4
xor al, al
jmp 0x10029146
test bl, bl
je 0x10029033
mov ecx, dword [esp + 0x1c]
or ecx, dword [esp + 0x20]
je 0x10029033
push 2
push esi
xor ecx, ecx
push ecx
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov ebx, 0x10
jmp 0x10029085
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], esi
mov byte [esp + 0x4c], 0
lea esi, [esp + 0x48]
mov byte [esp + 0x278], 1
call fcn.100292d0
push 0xffffffffffffffff
push 0
mov edx, esi
push edx
lea ecx, [esp + 0x38]
call fcn.10002de0
mov ebx, 0x10
mov byte [esp + 0x278], 0
cmp dword [esp + 0x60], ebx
jb 0x10029085
mov eax, dword [esp + 0x4c]
push eax
call fcn.1002b322
add esp, 4
mov esi, dword [esp + 0x24]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10029090
sub eax, edx
push eax
push esi
lea eax, [esp + 0x34]
call fcn.10015ee0
push 2
push 0x1003ec5c
lea eax, [esp + 0x34]
call fcn.10015ee0
mov ecx, dword [esp + 0x28]
cmp byte [ecx + 6], 0
je 0x100290e1
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
jae 0x100290ce
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
test ecx, ecx
jbe 0x100290e1
xor byte [eax], 0xca
add eax, 1
sub ecx, 1
jne 0x100290d6
cmp dword [esp + 0x44], ebx
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], 0
jae 0x100290f7
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x40]
push 0
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002912a
cmp dword [esp + 0x44], ebx
jb 0x10029007
mov edx, dword [esp + 0x30]
push edx
call fcn.1002b322
add esp, 4
xor al, al
jmp 0x10029146
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x44], ebx
jb 0x10029144
mov eax, dword [esp + 0x30]
push eax
call fcn.1002b322
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.1002b6af
mov esp, ebp
pop ebp
ret 4