Function at 0x44189c
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 0x4b237e
mov eax, dword fs:[0]
push eax
mov eax, 0x307c
call fcn.0049bf00
mov eax, dword [0x4dd070]
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 + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x304c], eax
mov esi, ecx
call fcn.004413d0
push esi
lea eax, [ebp - 0x3084]
push eax
call fcn.00442985
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x3074]
sub eax, dword [ebp - 0x3078]
test eax, 0xffffffe0
jg 0x44192d
lea esi, [ebp - 0x3084]
call fcn.00442958
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 - 0x10]
xor ecx, ebp
call fcn.0048ff11
leave
ret
push edi
push 0x8000000
push 3
push edi
push 3
push SysReAllocString
push ebx
call dword [0x4e443c]
mov dword [ebp - 0x3034], eax
mov byte [ebp - 4], 1
cmp eax, edi
je 0x441957
cmp eax, 0xffffffff
jne 0x441964
lea eax, [ebp - 0x3034]
call fcn.004011d5
jmp 0x441906
lea ecx, [ebp - 0x3054]
push ecx
push eax
mov dword [ebp - 0x3054], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x441984
cmp dword [ebp - 0x3054], edi
je 0x441957
push edi
push 0x8000080
push 2
push edi
push 1
push 0x40000000
push dword [ebp - 0x304c]
call dword [0x4e443c]
mov esi, eax
mov dword [ebp - 0x3030], esi
mov byte [ebp - 4], 2
cmp esi, edi
je 0x4419b5
cmp esi, 0xffffffff
jne 0x4419c2
lea eax, [ebp - 0x3030]
call fcn.004011d5
jmp 0x441957
push edi
push edi
mov ebx, 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push edi
lea esi, [ebp - 0x3084]
call fcn.00442a69
mov edx, eax
lea ecx, [ebp - 0x302c]
call fcn.004414e0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x3014], 0x10
mov ecx, dword [ebp - 0x3028]
jae 0x441a0a
lea ecx, [ebp - 0x3028]
lea edx, [ebp - 0x3010]
call fcn.00441355
push 0xfff
lea eax, [ebp - 0x100f]
push edi
push eax
mov byte [ebp - 0x1010], 0
call fcn.00492360
mov dword [ebp - 0x3050], edi
mov dword [ebp - 0x3048], edi
xor eax, eax
lea edi, [ebp - 0x3044]
stosd dword es:[edi], eax
xor edi, edi
jmp 0x441b51
mov ecx, dword [ebp - 0x3050]
cmp ecx, edi
jbe 0x441b78
mov dword [ebp - 0x3038], ecx
cmp ecx, ebx
je 0x441a82
mov eax, ecx
shr eax, 9
shl eax, 9
mov dword [ebp - 0x3038], eax
test ecx, 0x1ff
je 0x441a82
add dword [ebp - 0x3038], 0x200
mov dword [ebp - 0x303c], edi
cmp dword [ebp - 0x3038], edi
jbe 0x441b14
lea eax, [ebp - 0x3048]
call fcn.00441485
mov ecx, dword [eax]
mov esi, dword [ebp - 0x303c]
lea esi, [ebp + esi - 0x1010]
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 - 0x3044]
push dword [ebp - 0x3048]
call fcn.004a87e0
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 + 0xc], eax
xor dword [esi + 8], ecx
add dword [ebp - 0x3048], 0x10
adc dword [ebp - 0x3044], edi
add dword [ebp - 0x303c], 0x10
mov eax, dword [ebp - 0x303c]
cmp eax, dword [ebp - 0x3038]
jb 0x441a94
push edi
lea eax, [ebp - 0x306c]
push eax
push dword [ebp - 0x3038]
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x3030]
mov dword [ebp - 0x306c], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x441c26
push ebx
lea eax, [ebp - 0x1010]
push edi
push eax
call fcn.00492360
add esp, 0xc
push edi
lea eax, [ebp - 0x3050]
push eax
push ebx
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x3034]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x441a4a
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
lea eax, [ebp - 0x3064]
push eax
push dword [ebp - 0x3034]
mov dword [ebp - 0x3058], edi
call esi
mov dword [ebp - 0x3068], eax
lea eax, [ebp - 0x305c]
push eax
push dword [ebp - 0x3030]
call esi
mov dword [ebp - 0x3060], eax
lea eax, [ebp - 0x302c]
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x304c], esp
push 0x4c0f70
call fcn.004026bb
push dword [ebp - 0x305c]
lea eax, [ebp - 0x2010]
push dword [ebp - 0x3060]
lea ecx, [ebp - 0x3084]
push dword [ebp - 0x3064]
push dword [ebp - 0x3068]
push eax
call fcn.004415dd
add esp, 0x34
push edi
push edi
push edi
push dword [ebp - 0x3030]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x3058]
push eax
push ebx
lea eax, [ebp - 0x2010]
push eax
push dword [ebp - 0x3030]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
jmp 0x441c51
mov eax, dword [ebp - 0x3030]
or dword [ebp - 0x3030], 0xffffffff
cmp eax, 0xffffffff
je 0x441c43
cmp eax, edi
je 0x441c43
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x304c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor ebx, ebx
push edi
push 1
lea ecx, [ebp - 0x302c]
call fcn.00402abb
lea eax, [ebp - 0x3030]
call fcn.004011d5
lea eax, [ebp - 0x3034]
call fcn.004011d5
lea esi, [ebp - 0x3084]
call fcn.00442958
mov eax, ebx
jmp 0x441913