Function at 0x41a7a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm5, xmmword [0x5bad10]
mov eax, edx
mov edx, dword [ebx + 0x1c]
push esi
push edi
mov edi, dword [ebx + 0x18]
xor esi, esi
mov dword [ebp - 0x16c], eax
mov dword [ebp - 0x188], ecx
mov dword [ebp - 0x180], edx
test edi, edi
jle 0x41a984
lea ecx, [ebp - 0x168]
sub ecx, eax
mov dword [ebp - 0x170], ecx
cmp edi, 4
jb 0x41a8ce
movaps xmm4, xmmword [0x5baca0]
lea ecx, [ebp - 0xb8]
sub ecx, eax
mov edx, edi
mov dword [ebp - 0x174], ecx
and edx, 0xfffffffc
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x17c], edx
mov edx, dword [ebx + 8]
sub ecx, eax
mov dword [ebp - 0x178], ecx
mov ecx, dword [ebx + 0xc]
sub ecx, edx
mov dword [ebp - 0x184], ecx
mov ecx, dword [ebp - 0x184]
xorps xmm0, xmm0
add esi, 4
movd xmm1, dword [ecx + edx]
mov ecx, dword [ebp - 0x170]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
cvtdq2ps xmm3, xmm1
movd xmm1, dword [edx]
add edx, 4
mulps xmm3, xmm4
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
movups xmm0, xmmword [eax]
movups xmmword [eax + ecx], xmm3
mov ecx, dword [ebp - 0x174]
addps xmm3, xmm5
cvtdq2ps xmm2, xmm1
rcpps xmm1, xmm3
mulps xmm2, xmm0
movaps xmm0, xmm1
mulps xmm0, xmm1
addps xmm1, xmm1
mulps xmm2, xmm4
mulps xmm0, xmm3
movups xmmword [ecx + eax], xmm2
mov ecx, dword [ebp - 0x178]
subps xmm1, xmm0
mulps xmm1, xmm2
movups xmmword [ecx + eax], xmm1
add eax, 0x10
cmp esi, dword [ebp - 0x17c]
jl 0x41a843
cmp esi, edi
jge 0x41a984
mov eax, dword [ebp - 0x16c]
jmp 0x41a8d4
mov dword [ebp - 0x170], ecx
mov edx, dword [ebx + 8]
lea ecx, [eax + esi*4]
movss xmm2, dword [0x5ba5e8]
add edx, esi
movss xmm3, dword [0x5ba664]
mov dword [ebp - 0x17c], ecx
lea ecx, [ebp - 0xb8]
sub ecx, eax
mov dword [ebp - 0x178], ecx
lea ecx, [ebp - 0x60]
sub ecx, eax
mov eax, dword [ebx + 8]
sub dword [ebx + 0xc], eax
mov eax, edi
sub eax, esi
mov dword [ebp - 0x174], ecx
mov ecx, dword [ebp - 0x17c]
mov esi, dword [ebp - 0x170]
mov dword [ebp - 0x16c], eax
nop word [eax + eax]
mov eax, dword [ebx + 0xc]
movzx eax, byte [edx + eax]
movd xmm1, eax
movzx eax, byte [edx]
inc edx
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [ebp - 0x178]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm2
mulss xmm0, dword [ecx]
movss dword [ecx + esi], xmm1
addss xmm1, xmm3
mulss xmm0, xmm2
movss dword [ecx + eax], xmm0
mov eax, dword [ebp - 0x174]
divss xmm0, xmm1
movss dword [ecx + eax], xmm0
add ecx, 4
sub dword [ebp - 0x16c], 1
jne 0x41a930
mov eax, dword [ebp - 0x180]
lea ecx, [ebp - 0x60]
push 2
and eax, 7
push edi
push ecx
push ecx
mov esi, dword [eax*4 + 0x487a60]
mov ecx, esi
call dword [0x48013c]
call esi
add esp, 0x10
xor esi, esi
test edi, edi
jle 0x41aad0
cmp edi, 2
jb 0x41aa30
movaps xmm3, xmmword [0x5bad40]
mov eax, edi
and eax, 0xfffffffe
mov dword [ebp - 0x180], eax
nop word [eax + eax]
movsd xmm1, qword [ebp + esi*4 - 0x168]
movsd xmm0, qword [ebp + esi*4 - 0x60]
mulps xmm0, xmm1
movsd xmm1, qword [ebp + esi*4 - 0xb8]
subps xmm1, xmm0
xorps xmm0, xmm0
movsd xmm0, xmm3
movsd qword [ebp + esi*4 - 0xb8], xmm1
addps xmm1, xmm0
cvtps2pd xmm0, xmm1
call fcn.0047bd10
movaps xmm3, xmmword [0x5bad40]
cvttpd2dq xmm0, xmm0
movq qword [ebp + esi*4 - 0x110], xmm0
add esi, 2
cmp esi, dword [ebp - 0x180]
jl 0x41a9d0
cmp esi, edi
jge 0x41aad0
movss xmm6, dword [0x5ba6ec]
movsd xmm7, qword [0x5baa60]
movsd xmm5, qword [0x5ba9e0]
nop dword [eax + eax]
movss xmm0, dword [ebp + esi*4 - 0x60]
movaps xmm3, xmm7
mulss xmm0, dword [ebp + esi*4 - 0x168]
movss xmm1, dword [ebp + esi*4 - 0xb8]
subss xmm1, xmm0
movss dword [ebp + esi*4 - 0xb8], xmm1
addss xmm1, xmm6
cvtps2pd xmm4, xmm1
movaps xmm1, xmm5
andps xmm3, xmm4
movaps xmm0, xmm4
xorps xmm0, xmm3
movaps xmm2, xmm4
cmpltsd xmm0, xmm5
andps xmm1, xmm0
orps xmm1, xmm3
addsd xmm2, xmm1
subsd xmm2, xmm1
movsd xmm1, qword [0x5ba840]
movaps xmm0, xmm2
subsd xmm0, xmm4
cmpnlesd xmm0, xmm3
andps xmm0, xmm1
subsd xmm2, xmm0
cvttsd2si eax, xmm2
mov dword [ebp + esi*4 - 0x110], eax
inc esi
cmp esi, edi
jl 0x41aa50
xor esi, esi
jmp 0x41aad6
xor esi, esi
test edi, edi
jle 0x41ab31
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0x14]
sub eax, edi
mov dword [ebx + 0x10], eax
mov al, byte [eax + edi]
test al, al
je 0x41ab1c
mov cl, byte [edi]
cmp cl, 0xff
je 0x41ab1c
mov edx, dword [ebp + esi*4 - 0x110]
movzx eax, al
shl ax, 7
movzx eax, ax
push eax
movzx eax, cl
mov ecx, dword [ebp - 0x188]
shl ax, 7
movzx eax, ax
push eax
call fcn.0042bcd0
add esp, 8
jmp 0x41ab27
mov dword [ebp + esi*4 - 0x110], 0
mov eax, dword [ebx + 0x10]
inc esi
inc edi
cmp esi, dword [ebx + 0x18]
jl 0x41aae1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00457d6e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret