Function at 0x490240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
movups xmm0, xmmword [eax + 0x124]
lea eax, [ebp - 0x30]
push 0x10
push eax
push eax
movups xmmword [ebp - 0x30], xmm0
call fcn.004901d0
mov eax, dword [ebp + 0x10]
add esp, 0xc
test eax, eax
je 0x490393
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x490393
mov edi, eax
and eax, 0xf
shr edi, 4
mov dword [ebp + 8], eax
test edi, edi
je 0x490351
nop dword [eax]
movups xmm0, xmmword [ebx]
xor ecx, ecx
movups xmm1, xmmword [ebp - 0x10]
movups xmmword [ebp - 0x20], xmm0
movd eax, xmm0
psrldq xmm0, 4
movd edx, xmm0
mov esi, eax
rol eax, 8
and eax, 0xff00ff
ror esi, 8
and esi, 0xff00ff00
or esi, eax
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
mov dword [ebp - 0x1c], esi
or eax, edx
mov edx, dword [ebp - 0x14]
or ecx, eax
mov eax, dword [ebp - 0x18]
mov esi, eax
mov dword [ebp - 0x20], ecx
rol eax, 8
xor ecx, ecx
and eax, 0xff00ff
ror esi, 8
and esi, 0xff00ff00
or esi, eax
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
mov dword [ebp - 0x14], esi
or eax, edx
or ecx, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], ecx
movups xmm0, xmmword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
pxor xmm1, xmm0
push eax
movups xmmword [ebp - 0x10], xmm1
call fcn.00490520
add esp, 8
add ebx, 0x10
sub edi, 1
jne 0x4902a0
mov eax, dword [ebp + 8]
test eax, eax
je 0x490393
push eax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push ebx
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.004bc760
lea eax, [ebp - 0x20]
push 0x10
push eax
push eax
call fcn.004901d0
movups xmm1, xmmword [ebp - 0x10]
lea eax, [ebp - 0x30]
movups xmm0, xmmword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
pxor xmm1, xmm0
push eax
movups xmmword [ebp - 0x10], xmm1
call fcn.00490520
add esp, 0x20
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x4904b6
mov ebx, dword [ebp + 0x14]
test ebx, ebx
je 0x4904b6
mov edi, esi
mov eax, esi
shr edi, 4
and eax, 0xf
mov dword [ebp + 8], eax
test edi, edi
je 0x490474
nop
movups xmm0, xmmword [ebx]
xor ecx, ecx
movups xmmword [ebp - 0x20], xmm0
movd eax, xmm0
psrldq xmm0, 4
movd edx, xmm0
mov esi, eax
rol eax, 8
and eax, 0xff00ff
ror esi, 8
and esi, 0xff00ff00
or esi, eax
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
movups xmm0, xmmword [ebp - 0x10]
and edx, 0xff00ff
mov dword [ebp - 0x1c], esi
or eax, edx
mov edx, dword [ebp - 0x14]
or ecx, eax
mov eax, dword [ebp - 0x18]
mov esi, eax
mov dword [ebp - 0x20], ecx
rol eax, 8
xor ecx, ecx
and eax, 0xff00ff
ror esi, 8
and esi, 0xff00ff00
or esi, eax
mov eax, edx
ror eax, 8
and eax, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
mov dword [ebp - 0x14], esi
or eax, edx
or ecx, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x18], ecx
movups xmm1, xmmword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
pxor xmm1, xmm0
push eax
movups xmmword [ebp - 0x10], xmm1
call fcn.00490520
add esp, 8
add ebx, 0x10
sub edi, 1
jne 0x4903c0
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4904b6
push eax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push ebx
push eax
movups xmmword [ebp - 0x20], xmm0
call fcn.004bc760
lea eax, [ebp - 0x20]
push 0x10
push eax
push eax
call fcn.004901d0
movups xmm0, xmmword [ebp - 0x10]
lea eax, [ebp - 0x30]
movups xmm1, xmmword [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
pxor xmm1, xmm0
push eax
movups xmmword [ebp - 0x10], xmm1
call fcn.00490520
add esp, 0x20
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, 3
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0
movups xmm1, xmmword [ebp - 0x20]
movd xmm0, eax
lea eax, [ebp - 0x30]
psllq xmm1, xmm0
movups xmm0, xmmword [ebp - 0x10]
push eax
lea eax, [ebp - 0x10]
pxor xmm1, xmm0
push eax
movups xmmword [ebp - 0x10], xmm1
call fcn.00490520
lea eax, [ebp - 0x10]
push 0x10
push eax
push eax
call fcn.004901d0
push dword [ebp + 0x20]
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
call fcn.004bc760
add esp, 0x20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret