Function at 0x1003ce63
Capabilities:
Delete file
Encode data using xor
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005e77f
mov eax, dword fs:[0]
push eax
mov eax, 0x2098
call fcn.10051380
mov eax, dword [0x100741c0]
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 dword [ebp - 0x2060], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2068], eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x2084]
call fcn.1003d2da
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2074]
sub eax, dword [ebp - 0x2078]
push 0x1c
cdq
pop ecx
idiv ecx
test eax, eax
jg 0x1003cef8
lea esi, [ebp - 0x2084]
call fcn.1003d2ad
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.1003edc1
leave
ret
or dword [ebp - 0x2058], 0xffffffff
mov dword [ebp - 0x2094], 1
mov dword [ebp - 0x2090], 5
mov dword [ebp - 0x208c], 3
mov dword [ebp - 0x2088], 7
mov byte [ebp - 4], 1
xor esi, esi
push ebx
push 0x8000000
push 3
push ebx
push dword [ebp + esi*4 - 0x2094]
push bind
push dword [ebp - 0x2060]
call dword [0x100782ac]
cmp dword [ebp - 0x2058], 0xffffffff
mov edi, eax
mov dword [ebp - 0x2064], edi
je 0x1003cf73
cmp dword [ebp - 0x2058], ebx
je 0x1003cf73
push dword [ebp - 0x2058]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x2058], edi
cmp edi, ebx
je 0x1003cf82
cmp edi, 0xffffffff
jne 0x1003cf88
inc esi
cmp esi, 4
jb 0x1003cf2d
cmp edi, ebx
je 0x1003cf91
cmp edi, 0xffffffff
jne 0x1003cfa1
lea eax, [ebp - 0x2058]
call fcn.10002f69
jmp 0x1003ced1
push 0xfff
lea eax, [ebp - 0x2013]
push ebx
push eax
mov byte [ebp - 0x2014], bl
call fcn.10045640
add esp, 0xc
lea eax, [ebp - 0x2014]
push edi
push eax
call fcn.1003cd2d
pop ecx
pop ecx
test eax, eax
je 0x1003cf91
mov dword [ebp - 0x2054], ebx
cmp dword [ebp - 0x1e74], ebx
jbe 0x1003cf91
lea edi, [ebp - 0x1e70]
push 0xa
push edi
lea esi, [ebp - 0x20a0]
call fcn.10001952
push eax
lea eax, [ebp - 0x2084]
push eax
mov byte [ebp - 4], 2
call fcn.1003d48a
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x20a0]
mov byte [ebp - 0x204d], al
mov byte [ebp - 4], 1
call fcn.10001e5b
cmp byte [ebp - 0x204d], bl
jne 0x1003d040
inc dword [ebp - 0x2054]
mov eax, dword [ebp - 0x2054]
add edi, 0xa
cmp eax, dword [ebp - 0x1e74]
jb 0x1003cfe3
jmp 0x1003cf91
lea eax, [ebp - 0x1bf0]
push eax
lea ecx, [ebp - 0x20a0]
call fcn.10001976
lea eax, [ebp - 0x20a0]
push eax
lea eax, [ebp - 0x2030]
push eax
mov byte [ebp - 4], 3
call fcn.1003ccfe
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x20a0]
mov byte [ebp - 4], 5
call fcn.10001e5b
push ebx
push 0x8000080
push 2
push ebx
push esi
push 0x40000000
push dword [ebp - 0x2068]
call dword [0x100782ac]
mov dword [ebp - 0x2054], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x1003d0aa
cmp eax, 0xffffffff
jne 0x1003d0c7
lea eax, [ebp - 0x2054]
call fcn.10002f69
push ebx
push esi
lea ecx, [ebp - 0x2030]
call fcn.10001e5b
jmp 0x1003cf91
push ebx
push ebx
mov edi, 0x1000
push edi
push dword [ebp - 0x2064]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x2018], 0x10
mov eax, dword [ebp - 0x202c]
jae 0x1003d0f0
lea eax, [ebp - 0x202c]
push dword [ebp - 0x201c]
lea ebx, [ebp - 0x204c]
push eax
call fcn.1003cc42
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
xor esi, esi
push esi
lea eax, [ebp - 0x205c]
push eax
push edi
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x2064]
mov byte [ebp - 0x204d], 0
mov dword [ebp - 0x205c], esi
call ebx
test eax, eax
je 0x1003d234
cmp dword [ebp - 0x205c], esi
jbe 0x1003d203
test byte [ebp - 0x205c], 0xf
jne 0x1003d239
test dword [ebp - 0x205c], 0xfffffff0
mov dword [ebp - 0x2060], esi
jbe 0x1003d1a5
lea esi, [ebp - 0x1014]
lea eax, [ebp - 0x204c]
call fcn.1003cc8e
mov ecx, dword [eax]
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
mov eax, dword [ebp - 0x205c]
inc dword [ebp - 0x2060]
shr eax, 4
add esi, 0x10
cmp dword [ebp - 0x2060], eax
jb 0x1003d168
xor esi, esi
push esi
lea eax, [ebp - 0x206c]
push eax
push dword [ebp - 0x205c]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x2054]
mov dword [ebp - 0x206c], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1003d24c
mov eax, dword [ebp - 0x205c]
mov al, byte [ebp + eax - 0x1015]
push esi
mov byte [ebp - 0x204d], al
lea eax, [ebp - 0x205c]
push eax
push edi
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x2064]
call ebx
test eax, eax
jne 0x1003d137
mov al, byte [ebp - 0x204d]
dec al
cmp al, 0xf
ja 0x1003d234
movsx eax, byte [ebp - 0x204d]
push 2
push esi
neg eax
push eax
push dword [ebp - 0x2054]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x2054]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor edi, edi
inc edi
jmp 0x1003d277
lea eax, [ebp - 0x2054]
call fcn.10002f69
push esi
push 1
jmp 0x1003d0b7
mov eax, dword [ebp - 0x2054]
or dword [ebp - 0x2054], 0xffffffff
cmp eax, 0xffffffff
je 0x1003d269
cmp eax, esi
je 0x1003d269
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2068]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
lea eax, [ebp - 0x2054]
call fcn.10002f69
push esi
push 1
lea ecx, [ebp - 0x2030]
call fcn.10001e5b
lea eax, [ebp - 0x2058]
call fcn.10002f69
lea esi, [ebp - 0x2084]
call fcn.1003d2ad
mov eax, edi
jmp 0x1003cede