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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.004ff5c0
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x103c]
push edi
mov edi, dword [ebp + 0xc]
push 0x5507c0
push esi
push eax
call fcn.0051700a
add esp, 0xc
test eax, eax
je 0x4919ea
push 0x53cc58
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push 0x54ed70
lea eax, [ebp - 0x1040]
push edi
push eax
call fcn.0051700a
add esp, 0xc
test eax, eax
je 0x491a25
push 0x541d54
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1034]
push eax
push esi
call fcn.00516f0b
add esp, 8
cmp eax, 0xffffffff
jne 0x491a5c
push 0x53cc60
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x103c]
mov edi, dword [ebp - 0x1020]
lea eax, [ebp - 0x1044]
push 1
push 4
push eax
add edi, 0xfffffffc
call fcn.0051739c
add esp, 0x10
cmp eax, 1
je 0x491aa5
push 0x549540
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1036]
push eax
lea eax, [ebp - 0x1035]
push eax
push edi
push dword [ebp - 0x1044]
call fcn.00491d80
add esp, 0x10
test eax, eax
je 0x491ae8
push 0x54319c
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
mov ecx, edi
xor esi, esi
shr ecx, 0xc
mov eax, ecx
mov dword [ebp - 0x1048], ecx
shl eax, 0xc
push ebx
mov bh, byte [ebp - 0x1036]
sub edi, eax
mov bl, byte [ebp - 0x1035]
test ecx, ecx
je 0x491b7b
nop dword [eax]
push dword [ebp - 0x103c]
lea eax, [ebp - 0x1004]
push 1
push 0x1000
push eax
call fcn.0051739c
add esp, 0x10
cmp eax, 1
jne 0x491be6
xor eax, eax
nop word [eax + eax]
add bl, bh
xor byte [ebp + eax - 0x1004], bl
inc eax
cmp eax, 0x1000
jb 0x491b40
push dword [ebp - 0x1040]
lea eax, [ebp - 0x1004]
push 1
push 0x1000
push eax
call fcn.005179e8
add esp, 0x10
cmp eax, 1
jne 0x491bc3
inc esi
cmp esi, dword [ebp - 0x1048]
jb 0x491b10
test edi, edi
je 0x491c5e
push dword [ebp - 0x103c]
lea eax, [ebp - 0x1004]
push 1
push edi
push eax
call fcn.0051739c
add esp, 0x10
cmp eax, 1
je 0x491c09
push 0x53a880
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push 0x53ddf8
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push 0x5424c0
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
je 0x491c1e
nop
add bl, bh
xor byte [ebp + eax - 0x1004], bl
inc eax
cmp eax, edi
jb 0x491c10
push dword [ebp - 0x1040]
lea eax, [ebp - 0x1004]
push 1
push edi
push eax
call fcn.005179e8
add esp, 0x10
cmp eax, 1
je 0x491c5e
push 0x53b280
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x103c]
call fcn.00514c02
add esp, 4
test eax, eax
je 0x491c93
push 0x53b288
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1040]
call fcn.00514c02
add esp, 4
test eax, eax
je 0x491cc8
push 0x53b290
push str.....UTILencryptionencryptionBinaryFile.cpp
call fcn.0041afb0
add esp, 8
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ff105
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.004ff105
mov esp, ebp
pop ebp
ret