Function at 0x10105d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x1029e280]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 8], 5
mov eax, ecx
push esi
push edi
mov dword [ebp - 0x1c], eax
jne 0x101061d5
mov esi, dword [0x101a7080]
test esi, esi
je 0x101061d5
mov ecx, dword [0x1029f3cc]
test cl, 1
jne 0x10105d64
or ecx, 1
mov dword [0x1029f3cc], ecx
mov ecx, dword [0x1029f3c4]
mov dword [0x1029f3c8], ecx
jmp 0x10105d6a
mov ecx, dword [0x1029f3c8]
cmp dword [ecx + esi], 0
jne 0x101061d5
mov ecx, dword [0x1029f3d4]
test cl, 1
jne 0x10105d96
or ecx, 1
mov dword [0x1029f3d4], ecx
mov ecx, dword [0x1029f3c0]
mov dword [0x1029f3d0], ecx
jmp 0x10105d9c
mov ecx, dword [0x1029f3d0]
cmp dword [ecx + esi], 0
jle 0x101061d5
cmp byte [0x1028f554], 0
movss xmm1, dword [0x1017c78c]
je 0x10105ef9
movss xmm0, dword [0x1028f574]
mulss xmm0, xmm1
cvttss2si ecx, xmm0
movss xmm0, dword [0x1028f570]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [0x1028f56c]
mulss xmm0, xmm1
cvttss2si edi, xmm0
movss xmm0, dword [0x1028f568]
mulss xmm0, xmm1
mov dword [ebp - 8], edi
movd xmm1, dword [0x1028f578]
mov edi, dword [esi + 0x11c5c]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x1017c6f8]
movss dword [ebp - 0x20], xmm1
cmp edi, dword [eax]
jle 0x10105eef
movzx eax, cl
movaps xmm2, xmm1
mov ecx, dword [ebp - 8]
xorps xmm2, xmmword [0x1017c860]
mov dword [ebp - 0x10], eax
movzx eax, dl
mov dword [ebp - 0x48], eax
movzx eax, cl
cvttss2si ecx, xmm0
mov dword [ebp - 0x4c], eax
movss dword [ebp - 0x14], xmm2
movzx eax, cl
mov dword [ebp - 0x18], eax
lea eax, [edi + edi*4]
shl eax, 2
mov dword [ebp - 8], eax
nop word [eax + eax]
mov ecx, dword [0x1029f238]
push ecx
mov dword [esp], 0x40800000
push dword [ebp - 0x10]
mov eax, dword [ecx]
push dword [ebp - 0x48]
mov ecx, dword [ebp - 8]
push dword [ebp - 0x4c]
mov edx, dword [eax + 4]
add ecx, 0xffffffec
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], 0
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x24], 0
push eax
mov eax, dword [esi + 0x11c50]
add eax, ecx
movss dword [ebp - 0x38], xmm1
mov ecx, dword [0x1029f238]
push eax
movss dword [ebp - 0x34], xmm1
movss dword [ebp - 0x30], xmm1
movss dword [ebp - 0x44], xmm2
movss dword [ebp - 0x40], xmm2
movss dword [ebp - 0x3c], xmm2
call edx
mov eax, dword [ebp - 0x1c]
dec edi
sub dword [ebp - 8], 0x14
movss xmm1, dword [ebp - 0x20]
movss xmm2, dword [ebp - 0x14]
cmp edi, dword [eax]
jg 0x10105e60
mov dword [esi + 0x11c5c], 0
mov ecx, dword [esi + 0x11c5c]
cmp ecx, dword [eax]
je 0x10105f05
mov dword [eax], ecx
cmp dword [0x1028f57c], 0
je 0x101061d5
xor esi, esi
lea edi, [eax + 8]
mov dword [ebp - 0x10], esi
nop word [eax + eax]
mov ecx, dword [edi]
mov eax, 0x2aaaaaab
sub ecx, dword [edi - 4]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x101061c5
mov ecx, dword [0x1029f234]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
mov edx, eax
test edx, edx
je 0x101061bc
mov esi, dword [0x101a7080]
cmp edx, esi
sete byte [ebp - 9]
je 0x10105fab
mov eax, dword [0x1029f5d8]
test al, 1
jne 0x10105f81
mov ecx, dword [0x1029f5d0]
or eax, 1
mov dword [0x1029f5d8], eax
mov dword [0x1029f5d4], ecx
jmp 0x10105f87
mov ecx, dword [0x1029f5d4]
mov edx, dword [ecx + edx]
test al, 1
jne 0x10105fa2
mov ecx, dword [0x1029f5d0]
or eax, 1
mov dword [0x1029f5d8], eax
mov dword [0x1029f5d4], ecx
cmp edx, dword [ecx + esi]
je 0x10105fab
mov al, 1
jmp 0x10105fad
xor al, al
cmp byte [ebp - 9], 0
je 0x10105fbc
movups xmm0, xmmword [0x1028f5a4]
jmp 0x10105fd0
test al, al
jne 0x10105fc9
movups xmm0, xmmword [0x1028f594]
jmp 0x10105fd0
movups xmm0, xmmword [0x1028f584]
movss xmm1, dword [0x1017c78c]
movups xmmword [ebp - 0x60], xmm0
movss xmm0, dword [ebp - 0x54]
mulss xmm0, xmm1
cvttss2si edx, xmm0
movss xmm0, dword [ebp - 0x58]
mulss xmm0, xmm1
mov dword [ebp - 0x14], edx
cvttss2si ecx, xmm0
movss xmm0, dword [ebp - 0x5c]
mulss xmm0, xmm1
mov byte [ebp - 6], cl
movzx ecx, cl
mov dword [ebp - 0x20], ecx
cvttss2si eax, xmm0
movss xmm0, dword [ebp - 0x60]
mulss xmm0, xmm1
mov byte [ebp - 7], al
movzx esi, al
mov dword [ebp - 0x1c], esi
cvttss2si edx, xmm0
mov byte [ebp - 8], dl
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
movzx eax, dl
shl eax, 8
or eax, ecx
mov byte [ebp - 5], dl
cvttss2si ecx, xmm0
shl eax, 8
or eax, esi
shl eax, 8
movzx ecx, cl
or eax, ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [0x1028f580]
sub ecx, 0
je 0x10106186
sub ecx, 1
je 0x10106158
sub ecx, 1
jne 0x101061b9
mov eax, dword [edi]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
movss xmm2, dword [eax - 0xc]
movss xmm1, dword [eax - 8]
movss xmm0, dword [eax - 4]
subss xmm2, dword [eax - 0x18]
subss xmm1, dword [eax - 0x14]
subss xmm0, dword [eax - 0x10]
lea eax, [ebp - 0x2c]
push eax
sub esp, 0xc
mov ecx, esp
unpcklps xmm2, xmm1
movss dword [ebp - 0x64], xmm0
mov eax, dword [ebp - 0x64]
movq qword [ecx], xmm2
mov dword [ecx + 8], eax
call fcn.10064b00
mov eax, dword [0x1029f224]
add esp, 8
mov dword [ebp - 0x40], 0x3dcccccd
mov dword [ebp - 0x3c], 0x3dcccccd
mov dword [ebp - 0x38], 0
movss xmm3, dword [eax + 0x10]
mov eax, dword [edi]
movss xmm1, dword [eax - 0x18]
lea ecx, [eax - 0x18]
movss xmm2, dword [ecx + 4]
movss xmm0, dword [ecx + 8]
subss xmm2, dword [eax - 8]
subss xmm1, dword [eax - 0xc]
subss xmm0, dword [eax - 4]
mov dword [esp + 4], 0x40400000
lea eax, [ebp - 0x14]
movss dword [esp], xmm3
mulss xmm2, xmm2
push eax
mulss xmm1, xmm1
lea eax, [ebp - 0x44]
push eax
mulss xmm0, xmm0
lea eax, [ebp - 0x38]
push eax
addss xmm2, xmm1
mov dword [ebp - 0x34], 0xbdcccccd
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0xbdcccccd
push eax
push ecx
mov ecx, dword [0x1029f28c]
addss xmm2, xmm0
xorps xmm0, xmm0
sqrtss xmm0, xmm2
movss dword [ebp - 0x44], xmm0
call fcn.10102a00
jmp 0x101061b9
mov ecx, dword [0x1029f238]
mov edx, dword [edi]
mov eax, dword [ebp - 0x18]
push ecx
mov esi, dword [ecx]
mov dword [esp], 0x40400000
push 0
push dword [ebp - 0x20]
movzx eax, al
push dword [ebp - 0x1c]
push eax
lea eax, [edx - 0xc]
push eax
lea eax, [edx - 0x18]
push eax
call dword [esi + 0x14]
jmp 0x101061b9
mov edx, dword [edi]
push eax
sub esp, 0xc
mov ecx, esp
sub esp, 0xc
movq xmm0, qword [edx - 0xc]
mov eax, dword [edx - 4]
movq qword [ecx], xmm0
movq xmm0, qword [edx - 0x18]
mov dword [ecx + 8], eax
mov ecx, esp
mov eax, dword [edx - 0x10]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
call fcn.10102ad0
add esp, 0x1c
mov esi, dword [ebp - 0x10]
mov eax, dword [edi - 4]
cmp eax, dword [edi]
je 0x101061c5
mov dword [edi], eax
inc esi
add edi, 0xc
mov dword [ebp - 0x10], esi
cmp esi, 0x41
jl 0x10105f20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10116d02
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4