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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10065314
mov eax, dword fs:[0]
push eax
mov eax, 0x310c
call fcn.10055c00
mov eax, dword [0x1007c060]
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.1004476e
push esi
lea eax, [ebp - 0x307c]
push eax
call fcn.10045b13
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x306c]
sub eax, dword [ebp - 0x3070]
test eax, 0xffffffe0
jg 0x10045072
lea esi, [ebp - 0x307c]
call fcn.10045ae6
xor eax, eax
jmp 0x100455b9
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 [0x10080e10]
push eax
lea esi, [ebp - 0x3034]
call fcn.1004371f
mov esi, dword [ebp - 0x3034]
test esi, esi
je 0x100450e1
cmp esi, 0xffffffff
jne 0x100450e7
inc edi
cmp edi, 4
jb 0x100450a4
test esi, esi
je 0x100450f0
cmp esi, 0xffffffff
jne 0x10045100
lea eax, [ebp - 0x3034]
call fcn.1002509f
jmp 0x10045060
push 0xfff
lea eax, [ebp - 0x100f]
push 0
push eax
mov byte [ebp - 0x1010], 0
call fcn.1004e1c0
add esp, 0xc
push 0
push esi
lea eax, [ebp - 0x1010]
call fcn.10043922
pop ecx
pop ecx
test eax, eax
je 0x100450f0
push 4
call fcn.1004a8dd
pop ecx
test eax, eax
je 0x10045147
lea ecx, [ebp - 0x3058]
mov dword [eax], ecx
jmp 0x10045149
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.1004672a
mov byte [ebp - 4], 3
cmp dword [ebp - 0x758], 0x63636573
sete al
xor ebx, ebx
cmp al, bl
je 0x100451c3
mov esi, dword [ebp - 0x304c]
cmp esi, dword [ebp - 0x3048]
jbe 0x10045199
call fcn.1004a7af
mov eax, dword [ebp - 0x3058]
mov dword [ebp - 0x303c], esi
lea esi, [ebp - 0x3040]
mov dword [ebp - 0x3040], eax
call fcn.10045de6
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 0x100452a9
lea eax, [ebp - 0xe6c]
mov dword [ebp - 0x3030], eax
push 0xa
push dword [ebp - 0x3030]
lea esi, [ebp - 0x30f8]
call fcn.10027d63
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 0x100452e0
cmp esi, dword [ebp - 0x3048]
jbe 0x1004521d
call fcn.1004a7af
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.1004602d
mov esi, eax
call fcn.10045de6
movzx eax, byte [eax]
push eax
push dword [ebp - 0x3060]
lea eax, [ebp - 0x3118]
push eax
call fcn.10035ff1
push eax
lea eax, [ebp - 0x307c]
push eax
mov byte [ebp - 4], 6
call fcn.10045c07
lea ecx, [ebp - 0x3118]
mov bl, al
call fcn.10002e00
lea ecx, [ebp - 0x30f8]
mov byte [ebp - 4], 3
call fcn.10002e00
test bl, bl
jne 0x10045321
add dword [ebp - 0x3030], 0xa
inc edi
cmp edi, dword [ebp - 0xe70]
jb 0x100451dd
xor ebx, ebx
cmp dword [ebp - 0x304c], ebx
je 0x100452bd
push dword [ebp - 0x304c]
call fcn.1004a7e9
pop ecx
mov dword [ebp - 0x304c], ebx
mov dword [ebp - 0x3048], ebx
mov dword [ebp - 0x3044], ebx
push dword [ebp - 0x3058]
call fcn.1004a7e9
pop ecx
jmp 0x100450f0
push str.invalid_vector_T__subscript
lea ecx, [ebp - 0x30dc]
call fcn.10002d90
lea eax, [ebp - 0x30dc]
push eax
lea ecx, [ebp - 0x30c0]
mov byte [ebp - 4], 5
call fcn.100010d0
push 0x10071b80
lea eax, [ebp - 0x30c0]
push eax
mov dword [ebp - method.std::logic_error.virtual_0], vtable.std::out_of_range.0
call fcn.1004ab90
lea eax, [ebp - 0xbec]
push eax
lea ecx, [ebp - 0x3098]
call fcn.10002d90
lea eax, [ebp - 0x3098]
push eax
lea eax, [ebp - 0x302c]
push eax
mov byte [ebp - 4], 7
call fcn.100438f3
pop ecx
pop ecx
lea ecx, [ebp - 0x3098]
mov byte [ebp - 4], 9
call fcn.10002e00
xor esi, esi
push esi
push 0x8000080
push 2
push esi
push 1
push 0x40000000
push dword [ebp - 0x3064]
call dword [0x10080e10]
mov dword [ebp - 0x3030], eax
mov byte [ebp - 4], 0xa
cmp eax, esi
je 0x1004538c
cmp eax, 0xffffffff
jne 0x100453cd
lea eax, [ebp - 0x3030]
call fcn.1002509f
lea ecx, [ebp - 0x302c]
call fcn.10002e00
cmp dword [ebp - 0x304c], esi
je 0x100453b6
push dword [ebp - 0x304c]
call fcn.1004a7e9
pop ecx
mov dword [ebp - 0x304c], esi
mov dword [ebp - 0x3048], esi
mov dword [ebp - 0x3044], esi
jmp 0x100452cf
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 0x10045405
lea ecx, [ebp - 0x3028]
lea edx, [ebp - 0x3010]
call fcn.100446f3
push 0xfff
xor edi, edi
lea eax, [ebp - 0x200f]
push edi
push eax
mov byte [ebp - 0x2010], 0
call fcn.1004e1c0
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 0x1004552a
cmp dword [ebp - 0x305c], edi
jbe 0x10045532
lea eax, [ebp - 0x3040]
call fcn.10044822
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.1005f620
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 0x10045461
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 0x100455d3
push ebx
lea eax, [ebp - 0x2010]
push esi
push eax
call fcn.1004e1c0
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 0x10045455
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 eax, [ebp - 0x3030]
call fcn.1002509f
lea ecx, [ebp - 0x302c]
call fcn.10002e00
cmp dword [ebp - 0x304c], edi
je 0x10045582
push dword [ebp - 0x304c]
call fcn.1004a7e9
pop ecx
push dword [ebp - 0x3058]
mov dword [ebp - 0x304c], edi
mov dword [ebp - 0x3048], edi
mov dword [ebp - 0x3044], edi
call fcn.1004a7e9
pop ecx
lea eax, [ebp - 0x3034]
call fcn.1002509f
lea esi, [ebp - 0x307c]
call fcn.10045ae6
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.1004a172
leave
ret
mov eax, dword [ebp - 0x3030]
or dword [ebp - 0x3030], 0xffffffff
cmp eax, 0xffffffff
je 0x100455f0
cmp eax, esi
je 0x100455f0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x3064]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1004538c