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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007cf21
mov eax, dword fs:[0]
push eax
mov eax, 0x310c
call fcn.1006a730
mov eax, dword [0x10099060]
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 - 0x3030], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3064], eax
mov esi, ecx
call fcn.1005875b
push esi
lea eax, [ebp - 0x307c]
push eax
call fcn.10059b07
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x306c]
sub eax, dword [ebp - 0x3070]
test eax, 0xffffffe0
jg 0x10059066
lea esi, [ebp - 0x307c]
call fcn.10059ada
xor eax, eax
jmp 0x100595ad
or dword [ebp - 0x3034], 0xffffffff
push 3
pop ebx
mov dword [ebp - 0x308c], 1
mov dword [ebp - 0x3088], 5
mov dword [ebp - 0x3084], ebx
mov dword [ebp - 0x3080], 7
mov byte [ebp - 4], 1
push 0
push 0x8000000
push ebx
push 0
push dword [ebp + edi*4 - 0x308c]
push 0x80000000
push dword [ebp - 0x3030]
call dword [0x100a17a8]
push eax
lea esi, [ebp - 0x3034]
call fcn.1005770c
mov esi, dword [ebp - 0x3034]
test esi, esi
je 0x100590d5
cmp esi, 0xffffffff
jne 0x100590db
inc edi
cmp edi, 4
jb 0x10059098
test esi, esi
je 0x100590e4
cmp esi, 0xffffffff
jne 0x100590f4
lea ecx, [ebp - 0x3034]
call fcn.10001340
jmp 0x10059054
push 0xfff
lea eax, [ebp - 0x100f]
push 0
push eax
mov byte [ebp - 0x1010], 0
call fcn.10062cf0
add esp, 0xc
push 0
push esi
lea eax, [ebp - 0x1010]
call fcn.1005790f
pop ecx
pop ecx
test eax, eax
je 0x100590e4
push 4
call fcn.1005f40e
pop ecx
test eax, eax
je 0x1005913b
lea ecx, [ebp - 0x3058]
mov dword [eax], ecx
jmp 0x1005913d
xor eax, eax
mov dword [ebp - 0x3058], eax
lea eax, [ebp - 0x3035]
push eax
push 0x40
mov byte [ebp - 4], 2
pop eax
lea ebx, [ebp - 0x3058]
mov byte [ebp - 0x3035], 0
call fcn.1005a794
mov byte [ebp - 4], 3
cmp dword [ebp - 0x758], 0x63636573
sete al
xor ebx, ebx
cmp al, bl
je 0x100591b7
mov esi, dword [ebp - 0x304c]
cmp esi, dword [ebp - 0x3048]
jbe 0x1005918d
call fcn.1005f2e0
mov eax, dword [ebp - 0x3058]
mov dword [ebp - 0x303c], esi
lea esi, [ebp - 0x3040]
mov dword [ebp - 0x3040], eax
call fcn.10059dda
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 0x1005929d
lea eax, [ebp - 0xe6c]
mov dword [ebp - 0x3030], eax
push 0xa
push dword [ebp - 0x3030]
lea esi, [ebp - 0x30f8]
call fcn.1003cea8
mov dword [ebp - 0x3060], eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x3048]
mov esi, dword [ebp - 0x304c]
sub eax, esi
cmp eax, edi
jbe 0x100592d4
cmp esi, dword [ebp - 0x3048]
jbe 0x10059211
call fcn.1005f2e0
mov eax, dword [ebp - 0x3058]
mov dword [ebp - 0x3040], eax
push edi
lea ebx, [ebp - 0x3084]
lea eax, [ebp - 0x3040]
mov dword [ebp - 0x303c], esi
call fcn.1005a04e
mov esi, eax
call fcn.10059dda
movzx eax, byte [eax]
push eax
push dword [ebp - 0x3060]
lea eax, [ebp - 0x3118]
push eax
call fcn.1005078b
push eax
lea eax, [ebp - 0x307c]
push eax
mov byte [ebp - 4], 6
call fcn.10059bfb
lea ecx, [ebp - 0x3118]
mov bl, al
call fcn.100077c0
lea ecx, [ebp - 0x30f8]
mov byte [ebp - 4], 3
call fcn.100077c0
test bl, bl
jne 0x10059315
add dword [ebp - 0x3030], 0xa
inc edi
cmp edi, dword [ebp - 0xe70]
jb 0x100591d1
xor ebx, ebx
cmp dword [ebp - 0x304c], ebx
je 0x100592b1
push dword [ebp - 0x304c]
call fcn.1005f31a
pop ecx
mov dword [ebp - 0x304c], ebx
mov dword [ebp - 0x3048], ebx
mov dword [ebp - 0x3044], ebx
push dword [ebp - 0x3058]
call fcn.1005f31a
pop ecx
jmp 0x100590e4
push str.invalid_vector_T__subscript
lea ecx, [ebp - 0x30dc]
call fcn.10007750
lea eax, [ebp - 0x30dc]
push eax
lea ecx, [ebp - 0x30c0]
mov byte [ebp - 4], 5
call fcn.100010d0
push 0x1008d2c0
lea eax, [ebp - 0x30c0]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::out_of_range.0
call fcn.1005fbd3
lea eax, [ebp - 0xbec]
push eax
lea ecx, [ebp - 0x3098]
call fcn.10007750
lea eax, [ebp - 0x3098]
push eax
lea eax, [ebp - 0x302c]
push eax
mov byte [ebp - 4], 7
call fcn.100578e0
pop ecx
pop ecx
lea ecx, [ebp - 0x3098]
mov byte [ebp - 4], 9
call fcn.100077c0
xor esi, esi
push esi
push 0x8000080
push 2
push esi
push 1
push 0x40000000
push dword [ebp - 0x3064]
call dword [0x100a17a8]
mov dword [ebp - 0x3030], eax
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x10059380
cmp eax, 0xffffffff
jne 0x100593c1
lea ecx, [ebp - 0x3030]
call fcn.10001340
lea ecx, [ebp - 0x302c]
call fcn.100077c0
cmp dword [ebp - 0x304c], esi
je 0x100593aa
push dword [ebp - 0x304c]
call fcn.1005f31a
pop ecx
mov dword [ebp - 0x304c], esi
mov dword [ebp - 0x3048], esi
mov dword [ebp - 0x3044], esi
jmp 0x100592c3
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 - 0x303c]
mov dword [ebp - 0x3040], esi
stosd dword es:[edi], eax
jae 0x100593f9
lea ecx, [ebp - 0x3028]
lea edx, [ebp - 0x3010]
call fcn.100586e0
push 0xfff
xor edi, edi
lea eax, [ebp - 0x200f]
push edi
push eax
mov byte [ebp - 0x2010], 0
call fcn.10062cf0
add esp, 0xc
push edi
lea eax, [ebp - 0x305c]
push eax
push ebx
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x3034]
mov dword [ebp - 0x305c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x1005951e
cmp dword [ebp - 0x305c], edi
jbe 0x10059526
lea eax, [ebp - 0x3040]
call fcn.1005880f
mov ecx, dword [eax]
lea esi, [ebp + edi - 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 0
push ebx
push dword [ebp - 0x303c]
push dword [ebp - 0x3040]
call fcn.10076bc0
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 - 0x3040], 0x10
adc dword [ebp - 0x303c], 0
add edi, 0x10
cmp edi, ebx
jb 0x10059455
xor esi, esi
push esi
lea eax, [ebp - 0x3060]
push eax
push ebx
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x3030]
mov dword [ebp - 0x3060], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100595c7
push ebx
lea eax, [ebp - 0x2010]
push esi
push eax
call fcn.10062cf0
add esp, 0xc
push esi
lea eax, [ebp - 0x305c]
push eax
push ebx
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edi, edi
test eax, eax
jne 0x10059449
push edi
lea eax, [ebp - 0xb64]
push eax
push dword [ebp - 0xb68]
push dword [ebp - 0x3030]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x3030]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [ebp - 0x3030]
call fcn.10001340
lea ecx, [ebp - 0x302c]
call fcn.100077c0
cmp dword [ebp - 0x304c], edi
je 0x10059576
push dword [ebp - 0x304c]
call fcn.1005f31a
pop ecx
push dword [ebp - 0x3058]
mov dword [ebp - 0x304c], edi
mov dword [ebp - 0x3048], edi
mov dword [ebp - 0x3044], edi
call fcn.1005f31a
pop ecx
lea ecx, [ebp - 0x3034]
call fcn.10001340
lea esi, [ebp - 0x307c]
call fcn.10059ada
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.1005ebcb
leave
ret
mov eax, dword [ebp - 0x3030]
or dword [ebp - 0x3030], 0xffffffff
cmp eax, 0xffffffff
je 0x100595e4
cmp eax, esi
je 0x100595e4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3064]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10059380