Function at 0x70ec82b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov eax, 1
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
add esp, 0xffffff80
mov esi, dword [ebp + 8]
test esi, esi
je 0x70ec8565
mov eax, dword [esi]
mov ebx, 0x13c
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.70ee4e30
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x70ec82f7
mov eax, dword [eax]
movzx eax, byte [eax + 0xb]
lea eax, [eax + eax*2]
lea ebx, [eax*4 + 0x13c]
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp], ebx
call dword [eax + 0x68]
lea ecx, [ebx - 1]
mov dword [eax + ebx - 4], 0
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [esp + 0x1c], edi
rep stosd dword es:[edi], eax
mov eax, dword [esi]
test eax, eax
je 0x70ec832f
mov edi, dword [esp + 0x1c]
movzx edx, word [esi + 0xa]
lea ecx, [edi + 4]
call fcn.70ec4810
mov ebx, dword [esi + 0x30]
test ebx, ebx
je 0x70ec8390
mov edi, dword [esp + 0x1c]
xor ecx, ecx
mov word [edi + 0x110], cx
mov eax, dword [esi + 0x30]
movss xmm0, dword [eax + 8]
subss xmm0, dword [eax + 4]
cvttss2si eax, xmm0
mov byte [edi + 0x112], al
mov eax, dword [esi + 0x18]
cmp byte [eax], 3
je 0x70ec8570
mov eax, dword [esp + 0x1c]
pxor xmm0, xmm0
mov dword [eax + 0x114], 0
mov ebx, dword [esp + 0x1c]
movss dword [ebx + 0x118], xmm0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x11c], eax
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x70ec854b
mov eax, dword [eax]
mov ebx, dword [esp + 0x1c]
movzx eax, word [eax + 2]
mov word [ebx + 0x120], ax
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
movzx eax, byte [eax + 0xa]
mov byte [ebx + 0x122], al
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
movzx eax, word [eax + 8]
mov word [ebx + 0x124], ax
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
movss xmm0, dword [eax + 4]
movss dword [ebx + 0x128], xmm0
mov eax, dword [esi + 0x2c]
mov eax, dword [eax]
movzx eax, byte [eax + 0xb]
mov word [ebx + 0x12c], ax
test ax, ax
je 0x70ec854b
lea edi, [ebx + 0x130]
mov dword [ebp + 8], esi
xor ebx, ebx
lea esi, [esi]
lea eax, [ebx + ebx*4]
shl eax, 4
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 4]
mov esi, dword [eax + ecx + 0x20]
test esi, esi
je 0x70ec852f
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.70ee4e30
mov eax, dword [esi]
test eax, eax
je 0x70ec844d
movzx edx, word [esi + 8]
lea ecx, [esp + 0x28]
call fcn.70ec4990
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 0x7c], 0
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.70ee4e50
mov eax, dword [esp + 0x6c]
pxor xmm0, xmm0
pxor xmm1, xmm1
pxor xmm2, xmm2
mov ecx, dword [esp + 0x18]
movzx edx, ax
shr eax, 0x10
cvtsi2ss xmm0, eax
mov eax, dword [esp + 0x68]
mulss xmm0, dword [0x70eec260]
cvtsi2ss xmm1, edx
shr eax, 5
mov edx, eax
addss xmm0, xmm1
movzx eax, ax
pxor xmm1, xmm1
and edx, 0x3ffff
cvtsi2ss xmm2, eax
mov eax, 1
shr edx, 0x10
mov word [edi + 4], ax
movzx eax, byte [esp + 0x68]
cvtsi2ss xmm1, edx
xor edx, edx
mulss xmm1, dword [0x70eec260]
mov word [edi + 8], dx
shr al, 2
and eax, 7
addss xmm1, xmm2
mov byte [edi + 6], al
mov eax, dword [ebp + 8]
movss xmm2, dword [0x70eec268]
divss xmm0, xmm1
shufps xmm2, xmm2, 0
pxor xmm1, xmm1
movaps xmm3, xmm2
divss xmm0, dword [0x70eec264]
movss xmm1, xmm0
movaps xmm0, xmm2
cmpleps xmm3, xmm1
andps xmm0, xmm3
subps xmm1, xmm0
pslld xmm3, 0x1f
cvttps2dq xmm1, xmm1
pxor xmm1, xmm3
movd dword [edi], xmm1
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x48]
movzx eax, byte [eax + 9]
mov byte [edi + 0xa], al
mov eax, dword [esp + 0x1c]
add ebx, 1
add edi, 0xc
movzx eax, word [eax + 0x12c]
cmp ebx, eax
jb 0x70ec8408
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.70ee4e50
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x1c]
mov dword [eax], esi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 0x30]
movss xmm0, dword [eax + 4]
movss dword [edi + 0x114], xmm0
mov eax, dword [esi + 0x30]
movss xmm0, dword [eax + 8]
jmp 0x70ec8378