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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c101
mov eax, dword fs:[0]
push eax
mov eax, 0x20ac
call fcn.10035830
mov eax, dword [0x1004a300]
xor eax, ebp
mov dword [ebp - 0x10], 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 - 0x205c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2060], eax
lea eax, [ebp - 0x207c]
push eax
call fcn.1001ea23
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x206c]
sub eax, dword [ebp - 0x2070]
test eax, 0xffffffe0
jg 0x1001d4ca
lea esi, [ebp - 0x207c]
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 - 0x10]
xor ecx, ebp
call fcn.10022b9f
leave
ret
or dword [ebp - 0x2050], 0xffffffff
mov dword [ebp - 0x208c], 1
mov dword [ebp - 0x2088], 5
mov dword [ebp - 0x2084], 3
mov dword [ebp - 0x2080], 7
mov byte [ebp - 4], 1
xor edi, edi
push ebx
push 0x8000000
push 3
push ebx
push dword [ebp + edi*4 - 0x208c]
push 0x80000000
push dword [ebp - 0x205c]
call dword [0x1004db2c]
push eax
lea esi, [ebp - 0x2050]
call fcn.1001c8c4
mov esi, dword [ebp - 0x2050]
cmp esi, ebx
je 0x1001d53b
cmp esi, 0xffffffff
jne 0x1001d541
inc edi
cmp edi, 4
jb 0x1001d4ff
cmp esi, ebx
je 0x1001d54a
cmp esi, 0xffffffff
jne 0x1001d55a
lea eax, [ebp - 0x2050]
call fcn.10004ba5
jmp 0x1001d4a3
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.10025220
add esp, 0xc
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.1001cacc
pop ecx
pop ecx
test eax, eax
je 0x1001d54a
cmp dword [ebp - 0x1008], 2
jne 0x1001d54a
mov dword [ebp - 0x204c], ebx
cmp dword [ebp - 0xe70], ebx
jbe 0x1001d54a
lea edi, [ebp - 0xe6c]
push 0xa
push edi
lea esi, [ebp - 0x2098]
call fcn.1000b9ec
push ebx
push eax
lea eax, [ebp - 0x20b8]
push eax
mov byte [ebp - 4], 2
call fcn.100080e4
push eax
lea eax, [ebp - 0x207c]
push eax
mov byte [ebp - 4], 3
call fcn.1001eafa
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x20b8]
mov byte [ebp - 0x2055], al
call fcn.10001a41
push ebx
push esi
lea ecx, [ebp - 0x2098]
mov byte [ebp - 4], 1
call fcn.10001a41
cmp byte [ebp - 0x2055], bl
jne 0x1001d621
inc dword [ebp - 0x204c]
mov eax, dword [ebp - 0x204c]
add edi, 0xa
cmp eax, dword [ebp - 0xe70]
jb 0x1001d5a5
jmp 0x1001d54a
lea eax, [ebp - 0xbec]
push eax
lea ecx, [ebp - 0x2098]
call fcn.10001789
lea eax, [ebp - 0x2098]
push eax
lea eax, [ebp - 0x202c]
push eax
mov byte [ebp - 4], 4
call fcn.1001ca9d
pop ecx
pop ecx
push ebx
push esi
lea ecx, [ebp - 0x2098]
mov byte [ebp - 4], 6
call fcn.10001a41
push ebx
push 0x8000080
push 2
push ebx
push esi
push 0x40000000
push dword [ebp - 0x2060]
call dword [0x1004db2c]
mov dword [ebp - 0x204c], eax
mov byte [ebp - 4], 7
cmp eax, ebx
je 0x1001d68b
cmp eax, 0xffffffff
jne 0x1001d6a8
lea eax, [ebp - 0x204c]
call fcn.10004ba5
push ebx
push esi
lea ecx, [ebp - 0x202c]
call fcn.10001a41
jmp 0x1001d54a
push ebx
push ebx
mov edi, 0x1000
push edi
push dword [ebp - 0x2050]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x2014], 0x10
mov eax, dword [ebp - 0x2028]
jae 0x1001d6d1
lea eax, [ebp - 0x2028]
push dword [ebp - 0x2018]
lea ebx, [ebp - 0x2048]
push eax
call fcn.1001cc0f
xor ebx, ebx
push 0xfff
lea eax, [ebp - 0x200f]
push ebx
push eax
mov byte [ebp - 0x2010], bl
call fcn.10025220
mov dword [ebp - 0x2054], ebx
jmp 0x1001d7d9
cmp dword [ebp - 0x2054], ebx
ja 0x1001d744
push ebx
lea eax, [ebp - 0xb64]
push eax
push dword [ebp - 0xb68]
push dword [ebp - 0x204c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x204c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor edi, edi
inc edi
jmp 0x1001d830
inc dword [ebp - 0x2054]
test byte [ebp - 0x2054], 0xf
jne 0x1001d73e
test dword [ebp - 0x2054], 0xfffffff0
mov dword [ebp - 0x205c], ebx
jbe 0x1001d7a0
lea esi, [ebp - 0x2010]
lea eax, [ebp - 0x2048]
call fcn.1001cc62
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 - 0x2054]
inc dword [ebp - 0x205c]
shr eax, 4
add esi, 0x10
cmp dword [ebp - 0x205c], eax
jb 0x1001d765
push ebx
lea eax, [ebp - 0x2064]
push eax
push dword [ebp - 0x2054]
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x204c]
mov dword [ebp - 0x2064], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001d805
push edi
lea eax, [ebp - 0x2010]
push ebx
push eax
call fcn.10025220
add esp, 0xc
push ebx
lea eax, [ebp - 0x2054]
push eax
push edi
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x2050]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001d708
jmp 0x1001d710
mov eax, dword [ebp - 0x204c]
or dword [ebp - 0x204c], 0xffffffff
cmp eax, 0xffffffff
je 0x1001d822
cmp eax, ebx
je 0x1001d822
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2060]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
lea eax, [ebp - 0x204c]
call fcn.10004ba5
push ebx
push 1
lea ecx, [ebp - 0x202c]
call fcn.10001a41
lea eax, [ebp - 0x2050]
call fcn.10004ba5
lea esi, [ebp - 0x207c]
call fcn.1001e9c8
mov eax, edi
jmp 0x1001d4b0