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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bff3
mov eax, dword fs:[0]
push eax
mov eax, 0x3114
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 - 0x3038], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x307c], eax
mov esi, ecx
call fcn.1001d95a
push esi
lea eax, [ebp - 0x3094]
push eax
call fcn.1001e9f5
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x3084]
sub eax, dword [ebp - 0x3088]
test eax, 0xffffffe0
jg 0x1001e29b
lea esi, [ebp - 0x3094]
call fcn.1001e9c8
xor eax, eax
jmp 0x1001e7e6
or dword [ebp - 0x3034], 0xffffffff
push 3
pop ebx
mov dword [ebp - 0x306c], 1
mov dword [ebp - 0x3068], 5
mov dword [ebp - 0x3064], ebx
mov dword [ebp - 0x3060], 7
mov byte [ebp - 4], 1
push 0
push 0x8000000
push ebx
push 0
push dword [ebp + edi*4 - 0x306c]
push 0x80000000
push dword [ebp - 0x3038]
call dword [0x1004db2c]
push eax
lea esi, [ebp - 0x3034]
call fcn.1001c8c4
mov esi, dword [ebp - 0x3034]
test esi, esi
je 0x1001e30a
cmp esi, 0xffffffff
jne 0x1001e310
inc edi
cmp edi, 4
jb 0x1001e2cd
test esi, esi
je 0x1001e319
cmp esi, 0xffffffff
jne 0x1001e329
lea eax, [ebp - 0x3034]
call fcn.10004ba5
jmp 0x1001e289
push 0xfff
lea eax, [ebp - 0x100f]
push 0
push eax
mov byte [ebp - 0x1010], 0
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 0x1001e319
push 4
call fcn.10023025
pop ecx
test eax, eax
je 0x1001e36f
lea ecx, [ebp - 0x3054]
mov dword [eax], ecx
jmp 0x1001e371
xor eax, eax
mov dword [ebp - 0x3054], eax
lea eax, [ebp - 0x302d]
push eax
push 0x40
mov byte [ebp - 4], 2
pop eax
lea ebx, [ebp - 0x3054]
mov byte [ebp - 0x302d], 0
call fcn.1001f314
mov byte [ebp - 4], 3
cmp dword [ebp - 0x758], 0x63636573
sete al
xor ebx, ebx
cmp al, bl
je 0x1001e3eb
mov esi, dword [ebp - 0x3048]
cmp esi, dword [ebp - 0x3044]
jbe 0x1001e3c1
call fcn.10022ef7
mov eax, dword [ebp - 0x3054]
mov dword [ebp - 0x3060], esi
lea esi, [ebp - 0x3064]
mov dword [ebp - 0x3064], eax
call fcn.10007d52
push 0x10
pop ecx
lea esi, [ebp - 0x754]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
xor edi, edi
cmp dword [ebp - 0xe70], ebx
jbe 0x1001e4e3
lea eax, [ebp - 0xe6c]
mov dword [ebp - 0x3038], eax
push 0xa
push dword [ebp - 0x3038]
lea esi, [ebp - 0x30fc]
call fcn.1000b9ec
mov dword [ebp - 0x303c], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3044]
mov esi, dword [ebp - 0x3048]
sub eax, esi
cmp eax, edi
jbe 0x1001e51a
cmp esi, dword [ebp - 0x3044]
jbe 0x1001e445
call fcn.10022ef7
mov eax, dword [ebp - 0x3054]
mov dword [ebp - 0x3064], eax
push edi
lea ebx, [ebp - 0x309c]
lea eax, [ebp - 0x3064]
mov dword [ebp - 0x3060], esi
call fcn.1001ef3a
mov esi, eax
call fcn.10007d52
movzx eax, byte [eax]
push eax
push dword [ebp - 0x303c]
lea eax, [ebp - 0x311c]
push eax
call fcn.100080e4
push eax
lea eax, [ebp - 0x3094]
push eax
mov byte [ebp - 4], 6
call fcn.1001eafa
xor esi, esi
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x311c]
mov byte [ebp - 0x302d], al
call fcn.10001a41
push esi
push ebx
lea ecx, [ebp - 0x30fc]
mov byte [ebp - 4], 3
call fcn.10001a41
cmp byte [ebp - 0x302d], 0
jne 0x1001e55b
add dword [ebp - 0x3038], 0xa
inc edi
cmp edi, dword [ebp - 0xe70]
jb 0x1001e405
xor ebx, ebx
cmp dword [ebp - 0x3048], ebx
je 0x1001e4f7
push dword [ebp - 0x3048]
call fcn.10022f31
pop ecx
mov dword [ebp - 0x3048], ebx
mov dword [ebp - 0x3044], ebx
mov dword [ebp - 0x3040], ebx
push dword [ebp - 0x3054]
call fcn.10022f31
pop ecx
jmp 0x1001e319
push str.invalid_vector_T__subscript
lea ecx, [ebp - 0x30e0]
call fcn.10001789
lea eax, [ebp - 0x30e0]
push eax
lea ecx, [ebp - 0x30c4]
mov byte [ebp - 4], 5
call fcn.10001065
push 0x10043e40
lea eax, [ebp - 0x30c4]
push eax
mov dword [ebp - method.std::out_of_range.virtual_0], vtable.std::out_of_range.0
call fcn.1002368d
lea eax, [ebp - 0xbec]
push eax
lea ecx, [ebp - 0x3078]
call fcn.10001789
lea eax, [ebp - 0x3078]
push eax
lea eax, [ebp - 0x302c]
push eax
mov byte [ebp - 4], 7
call fcn.1001ca9d
pop ecx
pop ecx
push esi
push ebx
lea ecx, [ebp - 0x3078]
mov byte [ebp - 4], 9
call fcn.10001a41
push esi
push 0x8000080
push 2
push esi
push ebx
push 0x40000000
push dword [ebp - 0x307c]
call dword [0x1004db2c]
mov dword [ebp - 0x303c], eax
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x1001e5c5
cmp eax, 0xffffffff
jne 0x1001e608
lea eax, [ebp - 0x303c]
call fcn.10004ba5
push esi
push ebx
lea ecx, [ebp - 0x302c]
call fcn.10001a41
cmp dword [ebp - 0x3048], esi
je 0x1001e5f1
push dword [ebp - 0x3048]
call fcn.10022f31
pop ecx
mov dword [ebp - 0x3048], esi
mov dword [ebp - 0x3044], esi
mov dword [ebp - 0x3040], esi
jmp 0x1001e509
push esi
push esi
mov ebx, 0x1000
push ebx
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x3028]
xor eax, eax
cmp dword [ebp - 0x3014], 0x10
lea edi, [ebp - 0x3064]
mov dword [ebp - 0x3068], esi
stosd dword es:[edi], eax
jae 0x1001e640
lea ecx, [ebp - 0x3028]
lea edx, [ebp - 0x3010]
call fcn.1001d8df
push 0xfff
xor edi, edi
lea eax, [ebp - 0x200f]
push edi
push eax
mov byte [ebp - 0x2010], 0
call fcn.10025220
mov dword [ebp - 0x3058], edi
jmp 0x1001e735
cmp dword [ebp - 0x3058], edi
jbe 0x1001e75c
mov dword [ebp - 0x3038], edi
lea eax, [ebp - 0x3068]
call fcn.1001da0f
mov ecx, dword [eax]
mov esi, dword [ebp - 0x3038]
lea esi, [ebp + esi - 0x2010]
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 - 0x3064]
push dword [ebp - 0x3068]
call fcn.100390a0
lea eax, [ebp + eax - 0x3010]
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 + 8], ecx
xor dword [esi + 0xc], eax
add dword [ebp - 0x3068], 0x10
adc dword [ebp - 0x3064], edi
add dword [ebp - 0x3038], 0x10
cmp dword [ebp - 0x3038], ebx
jb 0x1001e683
push edi
lea eax, [ebp - 0x3098]
push eax
push ebx
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x303c]
mov dword [ebp - 0x3098], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001e800
push ebx
lea eax, [ebp - 0x2010]
push edi
push eax
call fcn.10025220
add esp, 0xc
push edi
lea eax, [ebp - 0x3058]
push eax
push ebx
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001e671
push edi
lea eax, [ebp - 0xb64]
push eax
push dword [ebp - 0xb68]
push dword [ebp - 0x303c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x303c]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x303c]
call fcn.10004ba5
push edi
push 1
lea ecx, [ebp - 0x302c]
call fcn.10001a41
cmp dword [ebp - 0x3048], edi
je 0x1001e7af
push dword [ebp - 0x3048]
call fcn.10022f31
pop ecx
push dword [ebp - 0x3054]
mov dword [ebp - 0x3048], edi
mov dword [ebp - 0x3044], edi
mov dword [ebp - 0x3040], edi
call fcn.10022f31
pop ecx
lea eax, [ebp - 0x3034]
call fcn.10004ba5
lea esi, [ebp - 0x3094]
call fcn.1001e9c8
xor eax, eax
inc 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
mov eax, dword [ebp - 0x303c]
or dword [ebp - 0x303c], 0xffffffff
cmp eax, 0xffffffff
je 0x1001e81d
cmp eax, edi
je 0x1001e81d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x307c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x303c]
call fcn.10004ba5
push edi
push 1
lea ecx, [ebp - 0x302c]
call fcn.10001a41
cmp dword [ebp - 0x3048], edi
je 0x1001e856
push dword [ebp - 0x3048]
call fcn.10022f31
pop ecx
mov dword [ebp - 0x3048], edi
mov dword [ebp - 0x3044], edi
mov dword [ebp - 0x3040], edi
jmp 0x1001e509