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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100542ca
mov eax, dword fs:[0]
push eax
mov eax, 0x311c
call fcn.1003afc0
mov eax, dword [0x1006c144]
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 - 0x3034], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3084], eax
mov esi, ecx
call fcn.10022fcc
push esi
lea eax, [ebp - 0x309c]
push eax
call fcn.100243d0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x308c]
sub eax, dword [ebp - 0x3090]
test eax, 0xffffffe0
jg 0x100238fb
lea esi, [ebp - 0x309c]
call fcn.100243a3
xor eax, eax
jmp 0x10023e4e
or dword [ebp - 0x303c], 0xffffffff
mov dword [ebp - 0x3074], 1
mov dword [ebp - 0x3070], 5
mov dword [ebp - 0x306c], 3
mov dword [ebp - 0x3068], 7
mov byte [ebp - 4], 1
xor edi, edi
push ebx
push 0x8000000
push 3
push ebx
push dword [ebp + edi*4 - 0x3074]
push SysReAllocString
push dword [ebp - 0x3034]
call dword [0x100711f0]
mov esi, eax
lea ecx, [ebp - 0x303c]
mov dword [ebp - 0x305c], esi
call fcn.10001319
mov dword [ebp - 0x303c], esi
cmp esi, ebx
je 0x10023973
cmp esi, 0xffffffff
jne 0x10023979
inc edi
cmp edi, 4
jb 0x10023930
cmp esi, ebx
je 0x10023982
cmp esi, 0xffffffff
jne 0x10023992
lea ecx, [ebp - 0x303c]
call fcn.10001319
jmp 0x100238e9
push 0xfff
lea eax, [ebp - 0x100f]
push ebx
push eax
mov byte [ebp - 0x1010], bl
call fcn.1003af40
add esp, 0xc
push ebx
push esi
lea eax, [ebp - 0x1010]
call fcn.1002214c
pop ecx
pop ecx
test eax, eax
je 0x10023982
push ebx
push 1
call fcn.100097fd
pop ecx
pop ecx
cmp eax, ebx
je 0x100239d8
lea ecx, [ebp - 0x3054]
mov dword [eax], ecx
jmp 0x100239da
xor eax, eax
mov dword [ebp - 0x3054], eax
lea eax, [ebp - 0x302d]
push eax
mov byte [ebp - 4], 2
push 0x40
mov byte [ebp - 0x302d], bl
pop eax
lea ebx, [ebp - 0x3054]
call fcn.10025187
mov byte [ebp - 4], 3
cmp dword [ebp - 0x758], 0x63636573
sete al
xor ebx, ebx
cmp al, bl
je 0x10023a53
mov esi, dword [ebp - 0x3048]
cmp esi, dword [ebp - 0x3044]
jbe 0x10023a29
call fcn.1003a0c2
mov eax, dword [ebp - 0x3054]
mov dword [ebp - 0x3068], esi
lea esi, [ebp - 0x306c]
mov dword [ebp - 0x306c], eax
call fcn.100249f0
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 0x10023b4b
lea eax, [ebp - 0xe6c]
mov dword [ebp - 0x3034], eax
push 0xa
push dword [ebp - 0x3034]
lea esi, [ebp - 0x3104]
call fcn.10004a8e
mov dword [ebp - 0x3038], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3044]
mov esi, dword [ebp - 0x3048]
sub eax, esi
cmp eax, edi
jbe 0x10023b82
cmp esi, dword [ebp - 0x3044]
jbe 0x10023aad
call fcn.1003a0c2
mov eax, dword [ebp - 0x3054]
mov dword [ebp - 0x306c], eax
push edi
lea ebx, [ebp - 0x30a4]
lea eax, [ebp - 0x306c]
mov dword [ebp - 0x3068], esi
call fcn.10024988
mov esi, eax
call fcn.100249f0
movzx eax, byte [eax]
push eax
push dword [ebp - 0x3038]
lea eax, [ebp - 0x3124]
push eax
call fcn.100200ef
push eax
lea eax, [ebp - 0x309c]
push eax
mov byte [ebp - 4], 6
call fcn.100244cf
xor esi, esi
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x3124]
mov byte [ebp - 0x302d], al
call fcn.1000588b
push esi
push ebx
lea ecx, [ebp - 0x3104]
mov byte [ebp - 4], 3
call fcn.1000588b
cmp byte [ebp - 0x302d], 0
jne 0x10023bc3
add dword [ebp - 0x3034], 0xa
inc edi
cmp edi, dword [ebp - 0xe70]
jb 0x10023a6d
xor ebx, ebx
cmp dword [ebp - 0x3048], ebx
je 0x10023b5f
push dword [ebp - 0x3048]
call fcn.10039dc6
pop ecx
mov dword [ebp - 0x3048], ebx
mov dword [ebp - 0x3044], ebx
mov dword [ebp - 0x3040], ebx
push dword [ebp - 0x3054]
call fcn.10039dc6
pop ecx
jmp 0x10023982
push str.invalid_vector_T__subscript
lea ecx, [ebp - 0x30e8]
call fcn.10004ab2
lea eax, [ebp - 0x30e8]
push eax
lea ecx, [ebp - 0x30cc]
mov byte [ebp - 4], 5
call fcn.10001137
push 0x10063a68
lea eax, [ebp - 0x30cc]
push eax
mov dword [ebp - method.std::out_of_range.virtual_0], vtable.std::out_of_range.0
call fcn.1003a152
lea eax, [ebp - 0xbec]
push eax
lea ecx, [ebp - 0x3080]
call fcn.10004ab2
lea eax, [ebp - 0x3080]
push eax
lea eax, [ebp - 0x302c]
push eax
mov byte [ebp - 4], 7
call fcn.1002211d
pop ecx
pop ecx
push esi
push ebx
lea ecx, [ebp - 0x3080]
mov byte [ebp - 4], 9
call fcn.1000588b
push esi
push 0x8000080
push 2
push esi
push ebx
push 0x40000000
push dword [ebp - 0x3084]
call dword [0x100711f0]
mov dword [ebp - 0x3038], eax
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x10023c2d
cmp eax, 0xffffffff
jne 0x10023c70
lea ecx, [ebp - 0x3038]
call fcn.10001319
push esi
push ebx
lea ecx, [ebp - 0x302c]
call fcn.1000588b
cmp dword [ebp - 0x3048], esi
je 0x10023c59
push dword [ebp - 0x3048]
call fcn.10039dc6
pop ecx
mov dword [ebp - 0x3048], esi
mov dword [ebp - 0x3044], esi
mov dword [ebp - 0x3040], esi
jmp 0x10023b71
push esi
push esi
mov ebx, 0x1000
push ebx
push dword [ebp - 0x305c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x3028]
xor eax, eax
cmp dword [ebp - 0x3014], 0x10
lea edi, [ebp - 0x306c]
mov dword [ebp - 0x3070], esi
stosd dword es:[edi], eax
jae 0x10023ca8
lea ecx, [ebp - 0x3028]
lea edx, [ebp - 0x3010]
call fcn.10022f4f
push 0xfff
xor edi, edi
lea eax, [ebp - 0x200f]
push edi
push eax
mov byte [ebp - 0x2010], 0
call fcn.1003af40
mov dword [ebp - 0x3058], edi
jmp 0x10023d9d
cmp dword [ebp - 0x3058], edi
jbe 0x10023dc4
mov dword [ebp - 0x3034], edi
lea eax, [ebp - 0x3070]
call fcn.10023081
mov ecx, dword [eax]
mov esi, dword [ebp - 0x3034]
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 - 0x306c]
push dword [ebp - 0x3070]
call fcn.1004f770
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 - 0x3070], 0x10
adc dword [ebp - 0x306c], edi
add dword [ebp - 0x3034], 0x10
cmp dword [ebp - 0x3034], ebx
jb 0x10023ceb
push edi
lea eax, [ebp - 0x30a0]
push eax
push ebx
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x3038]
mov dword [ebp - 0x30a0], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10023e68
push ebx
lea eax, [ebp - 0x2010]
push edi
push eax
call fcn.1003af40
add esp, 0xc
push edi
lea eax, [ebp - 0x3058]
push eax
push ebx
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x305c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10023cd9
push edi
lea eax, [ebp - 0xb64]
push eax
push dword [ebp - 0xb68]
push dword [ebp - 0x3038]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x3038]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [ebp - 0x3038]
call fcn.10001319
push edi
push 1
lea ecx, [ebp - 0x302c]
call fcn.1000588b
cmp dword [ebp - 0x3048], edi
je 0x10023e17
push dword [ebp - 0x3048]
call fcn.10039dc6
pop ecx
push dword [ebp - 0x3054]
mov dword [ebp - 0x3048], edi
mov dword [ebp - 0x3044], edi
mov dword [ebp - 0x3040], edi
call fcn.10039dc6
pop ecx
lea ecx, [ebp - 0x303c]
call fcn.10001319
lea esi, [ebp - 0x309c]
call fcn.100243a3
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.1003a584
leave
ret
lea ecx, [ebp - 0x3038]
call fcn.10001319
push dword [ebp - 0x3084]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x3038]
call fcn.10001319
push edi
push 1
lea ecx, [ebp - 0x302c]
call fcn.1000588b
cmp dword [ebp - 0x3048], edi
je 0x10023eac
push dword [ebp - 0x3048]
call fcn.10039dc6
pop ecx
mov dword [ebp - 0x3048], edi
mov dword [ebp - 0x3044], edi
mov dword [ebp - 0x3040], edi
jmp 0x10023b71