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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x910], 0
mov ecx, dword [ebp - 0x44]
mov dword [ecx], 0
cmp dword [ebp + 8], 0
jne 0x4f019f
xor eax, eax
jmp 0x4f063b
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x44]
add eax, 0x808
push eax
call fcn.0041cea7
add esp, 8
test eax, eax
jne 0x4f01c2
mov eax, 1
jmp 0x4f063b
mov ecx, dword [ebp + 8]
push ecx
call fcn.00417de0
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x44]
add eax, 0x808
push eax
call fcn.004198f0
add esp, 0xc
push 0x5698b0
mov ecx, dword [ebp + 8]
push ecx
call fcn.004de640
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [0x58ce48]
mov dword [ebp - 8], edx
mov eax, dword [0x5a6e88]
mov dword [ebp - 4], eax
mov ecx, dword [0x5a6e8c]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x14], 0
je 0x4f03b2
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x193c]
push ecx
push 4
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x908]
push eax
call fcn.0041da81
add esp, 0x10
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x90c], eax
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 0x90c]
cmp ecx, dword [eax + 0x193c]
jl 0x4f0339
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x908]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004131c7
add esp, 4
push 2
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.0041dd51
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041dc59
add esp, 4
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0041329a
add esp, 4
mov edx, dword [ebp - 0x28]
add edx, 0x7ff
and edx, 0xfffffc00
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x193c], edx
xor ecx, ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x193c]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413380
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 0x908], ecx
push 0x5698b4
mov edx, dword [ebp + 8]
push edx
call fcn.004de640
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x193c]
push edx
push 4
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x908]
push ecx
call fcn.0041da81
add esp, 0x10
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x90c], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0041329a
add esp, 4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x90c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x908]
mov dword [ebp - 0x20], ecx
push eax
push ebx
push ecx
push edx
push esi
push edi
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edi, 0
mov eax, dword [esi]
xor eax, ebx
add eax, edi
add ebx, edx
add edi, dword [ebp - 0x18]
mov dword [esi], eax
add esi, 4
dec ecx
jne 0x4f0374
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop eax
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x928], 1
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x910], 0
mov ecx, dword [ebp - 0x44]
mov dword [ecx], 0
jmp 0x4f03e6
mov edx, dword [ebp + 8]
push edx
push str.Script_File_not_found:_s
mov eax, dword [ebp - 0x44]
add eax, 0x2544
push eax
call dword [0x5582d0]
add esp, 0xc
mov ecx, dword [ebp - 0x44]
add ecx, 0x2544
push ecx
mov ecx, dword [ebp - 0x44]
call fcn.004efd80
xor eax, eax
jmp 0x4f063b
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x908]
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax + 0x10]
mov dword [ecx + 0x91c], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x908]
mov edx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x14]
mov dword [edx + 0x914], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x908]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x920], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x908]
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax + 0x1c]
mov dword [ecx + 0x918], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x908]
mov edx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x2660], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x908]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 0x48]
mov dword [eax + 0x924], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x908]
cmp dword [eax], 0x20
jl 0x4f04c8
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x908]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 0x50]
mov dword [eax + 0x2664], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x908]
mov ecx, dword [ebp - 0x44]
mov edx, dword [eax + 0x54]
mov dword [ecx + 0x2668], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x908]
mov edx, dword [ebp - 0x44]
mov eax, dword [ecx + 0x58]
mov dword [edx + 0x266c], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x908]
mov eax, dword [ebp - 0x44]
mov ecx, dword [edx + 0x5c]
mov dword [eax + 0x2670], ecx
jmp 0x4f04fc
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x2664], 0
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x2668], 0
mov ecx, dword [ebp - 0x44]
mov dword [ecx + 0x266c], 0
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x2670], 0
mov eax, 1
jmp 0x4f063b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4