Function at 0x10044c23
Capabilities:
Delete file
Encode data using xor
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100658e1
mov eax, dword fs:[0]
push eax
mov eax, 0x3078
call fcn.10055c00
mov eax, dword [0x1007c060]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x304c], ebx
call fcn.1004476e
push esi
lea eax, [ebp - 0x3080]
push eax
call fcn.10045b13
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x3070]
sub eax, dword [ebp - 0x3074]
test eax, 0xffffffe0
jg 0x10044cb3
lea esi, [ebp - 0x3080]
call fcn.10045ae6
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 - 0x14]
xor ecx, ebp
call fcn.1004a172
leave
ret
push esi
push 0x8000000
push 3
push esi
push 3
push 0x80000000
push edi
call dword [0x10080e10]
mov dword [ebp - 0x3038], eax
mov byte [ebp - 4], 1
cmp eax, esi
je 0x10044cdd
cmp eax, 0xffffffff
jne 0x10044cea
lea eax, [ebp - 0x3038]
call fcn.1002509f
jmp 0x10044c8c
lea ecx, [ebp - 0x3050]
push ecx
push eax
mov dword [ebp - 0x3050], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x10044d0a
cmp dword [ebp - 0x3050], esi
je 0x10044cdd
push esi
push 0x8000080
push 2
push esi
push 1
push 0x40000000
push ebx
call dword [0x10080e10]
mov edi, eax
mov dword [ebp - 0x3034], edi
mov byte [ebp - 4], 2
cmp edi, esi
je 0x10044d36
cmp edi, 0xffffffff
jne 0x10044d43
lea eax, [ebp - 0x3034]
call fcn.1002509f
jmp 0x10044cdd
push esi
push esi
mov ebx, 0x1000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
lea esi, [ebp - 0x3080]
call fcn.10045be6
push eax
lea edi, [ebp - 0x3030]
call fcn.1004487d
pop ecx
mov byte [ebp - 4], 3
cmp dword [ebp - 0x3018], 0x10
mov ecx, dword [ebp - 0x302c]
jae 0x10044d8b
lea ecx, [ebp - 0x302c]
lea edx, [ebp - 0x3014]
call fcn.100446f3
push 0xfff
xor esi, esi
lea eax, [ebp - 0x1013]
push esi
push eax
mov byte [ebp - 0x1014], 0
call fcn.1004e1c0
xor eax, eax
lea edi, [ebp - 0x3040]
mov dword [ebp - 0x3044], esi
mov dword [ebp - 0x3048], esi
stosd dword es:[edi], eax
jmp 0x10044ebe
mov ecx, dword [ebp - 0x3048]
cmp ecx, esi
jbe 0x10044ee5
mov dword [ebp - 0x303c], ecx
cmp ecx, ebx
je 0x10044e03
mov eax, ecx
shr eax, 9
shl eax, 9
mov dword [ebp - 0x303c], eax
test ecx, 0x1ff
je 0x10044e03
add dword [ebp - 0x303c], 0x200
xor edi, edi
cmp dword [ebp - 0x303c], esi
jbe 0x10044e81
lea eax, [ebp - 0x3044]
call fcn.10044822
mov ecx, dword [eax]
lea esi, [ebp + edi - 0x1014]
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 - 0x3040]
push dword [ebp - 0x3044]
call fcn.1005f620
lea eax, [ebp + eax - 0x3014]
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 - 0x3044], 0x10
adc dword [ebp - 0x3040], 0
add edi, 0x10
cmp edi, dword [ebp - 0x303c]
jb 0x10044e0d
xor esi, esi
push esi
lea eax, [ebp - 0x3068]
push eax
push dword [ebp - 0x303c]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x3034]
mov dword [ebp - 0x3068], esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10044f92
push ebx
lea eax, [ebp - 0x1014]
push esi
push eax
call fcn.1004e1c0
add esp, 0xc
push esi
lea eax, [ebp - 0x3048]
push eax
push ebx
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x3038]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10044dcb
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea eax, [ebp - 0x3060]
push eax
push dword [ebp - 0x3038]
mov dword [ebp - 0x3054], esi
call edi
mov dword [ebp - 0x3064], eax
lea eax, [ebp - 0x3058]
push eax
push dword [ebp - 0x3034]
call edi
mov dword [ebp - 0x305c], eax
lea eax, [ebp - 0x3030]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x304c], esp
push 0x1006fab0
call fcn.10002d90
push dword [ebp - 0x3058]
lea edx, [ebp - 0x3080]
push dword [ebp - 0x305c]
lea ecx, [ebp - 0x2014]
push dword [ebp - 0x3060]
push dword [ebp - 0x3064]
call fcn.1004496b
add esp, 0x30
push esi
push esi
push esi
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x3054]
push eax
push ebx
lea eax, [ebp - 0x2014]
push eax
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
jmp 0x10044fbd
mov eax, dword [ebp - 0x3034]
or dword [ebp - 0x3034], 0xffffffff
cmp eax, 0xffffffff
je 0x10044faf
cmp eax, esi
je 0x10044faf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x304c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
lea ecx, [ebp - 0x3030]
call fcn.10002e00
lea eax, [ebp - 0x3034]
call fcn.1002509f
lea eax, [ebp - 0x3038]
call fcn.1002509f
lea esi, [ebp - 0x3080]
call fcn.10045ae6
mov eax, edi
jmp 0x10044c99