Function at 0x1001de30
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 0x1003c337
mov eax, dword fs:[0]
push eax
mov eax, 0x3080
call fcn.10035830
mov eax, dword [0x1004a300]
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 ebx, ecx
mov dword [ebp - 0x3050], eax
mov esi, edx
call fcn.1001d95a
push esi
lea eax, [ebp - 0x3088]
push eax
call fcn.1001e9f5
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x3078]
sub eax, dword [ebp - 0x307c]
test eax, 0xffffffe0
jg 0x1001dec0
lea esi, [ebp - 0x3088]
call fcn.1001e9c8
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.10022b9f
leave
ret
push edi
push 0x8000000
push 3
push edi
push 3
push 0x80000000
push ebx
call dword [0x1004db2c]
mov dword [ebp - 0x3038], eax
mov byte [ebp - 4], 1
cmp eax, edi
je 0x1001deea
cmp eax, 0xffffffff
jne 0x1001def7
lea eax, [ebp - 0x3038]
call fcn.10004ba5
jmp 0x1001de99
lea ecx, [ebp - 0x3058]
push ecx
push eax
mov dword [ebp - 0x3058], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x1001df17
cmp dword [ebp - 0x3058], edi
je 0x1001deea
push edi
push 0x8000080
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x3050]
call dword [0x1004db2c]
mov esi, eax
mov dword [ebp - 0x3034], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x1001df48
cmp esi, 0xffffffff
jne 0x1001df55
lea eax, [ebp - 0x3034]
call fcn.10004ba5
jmp 0x1001deea
push edi
push edi
mov ebx, 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
lea esi, [ebp - 0x3088]
call fcn.1001ead9
mov edx, eax
lea ecx, [ebp - 0x3030]
call fcn.1001da6a
mov byte [ebp - 4], 3
cmp dword [ebp - 0x3018], 0x10
mov ecx, dword [ebp - 0x302c]
jae 0x1001df9d
lea ecx, [ebp - 0x302c]
lea edx, [ebp - 0x3014]
call fcn.1001d8df
push 0xfff
lea eax, [ebp - 0x1013]
push edi
push eax
mov byte [ebp - 0x1014], 0
call fcn.10025220
mov dword [ebp - 0x3054], edi
mov dword [ebp - 0x304c], edi
xor eax, eax
lea edi, [ebp - 0x3048]
stosd dword es:[edi], eax
xor edi, edi
jmp 0x1001e0e4
mov ecx, dword [ebp - 0x3054]
cmp ecx, edi
jbe 0x1001e10b
mov dword [ebp - 0x303c], ecx
cmp ecx, ebx
je 0x1001e015
mov eax, ecx
shr eax, 9
shl eax, 9
mov dword [ebp - 0x303c], eax
test ecx, 0x1ff
je 0x1001e015
add dword [ebp - 0x303c], 0x200
mov dword [ebp - 0x3040], edi
cmp dword [ebp - 0x303c], edi
jbe 0x1001e0a7
lea eax, [ebp - 0x304c]
call fcn.1001da0f
mov ecx, dword [eax]
mov esi, dword [ebp - 0x3040]
lea esi, [ebp + esi - 0x1014]
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 edi
push ebx
push dword [ebp - 0x3048]
push dword [ebp - 0x304c]
call fcn.100390a0
lea eax, [ebp + eax - 0x3014]
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], edi
add dword [ebp - 0x3040], 0x10
mov eax, dword [ebp - 0x3040]
cmp eax, dword [ebp - 0x303c]
jb 0x1001e027
push edi
lea eax, [ebp - 0x3070]
push eax
push dword [ebp - 0x303c]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x3034]
mov dword [ebp - 0x3070], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001e1b8
push ebx
lea eax, [ebp - 0x1014]
push edi
push eax
call fcn.10025220
add esp, 0xc
push edi
lea eax, [ebp - 0x3054]
push eax
push ebx
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x3038]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001dfdd
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea eax, [ebp - 0x3068]
push eax
push dword [ebp - 0x3038]
mov dword [ebp - 0x305c], edi
call esi
mov dword [ebp - 0x306c], eax
lea eax, [ebp - 0x3060]
push eax
push dword [ebp - 0x3034]
call esi
mov dword [ebp - 0x3064], eax
lea eax, [ebp - 0x3030]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3050], esp
push 0x100422d8
call fcn.10001789
push dword [ebp - 0x3060]
lea edx, [ebp - 0x3088]
push dword [ebp - 0x3064]
lea ecx, [ebp - 0x2014]
push dword [ebp - 0x3068]
push dword [ebp - 0x306c]
call fcn.1001db67
add esp, 0x30
push edi
push edi
push edi
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x305c]
push eax
push ebx
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
jmp 0x1001e1e3
mov eax, dword [ebp - 0x3034]
or dword [ebp - 0x3034], 0xffffffff
cmp eax, 0xffffffff
je 0x1001e1d5
cmp eax, edi
je 0x1001e1d5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3050]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
push edi
push 1
lea ecx, [ebp - 0x3030]
call fcn.10001a41
lea eax, [ebp - 0x3034]
call fcn.10004ba5
lea eax, [ebp - 0x3038]
call fcn.10004ba5
lea esi, [ebp - 0x3088]
call fcn.1001e9c8
mov eax, ebx
jmp 0x1001dea6