Function at 0x6d3c82b0
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 0x6d3c8565
mov eax, dword [esi]
mov ebx, 0x13c
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.6d3e4e30
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x6d3c82f7
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 0x6d3c832f
mov edi, dword [esp + 0x1c]
movzx edx, word [esi + 0xa]
lea ecx, [edi + 4]
call fcn.6d3c4810
mov ebx, dword [esi + 0x30]
test ebx, ebx
je 0x6d3c8390
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 0x6d3c8570
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 0x6d3c854b
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 0x6d3c854b
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 0x6d3c852f
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.6d3e4e30
mov eax, dword [esi]
test eax, eax
je 0x6d3c844d
movzx edx, word [esi + 8]
lea ecx, [esp + 0x28]
call fcn.6d3c4990
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esp + 0x7c], 0
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.6d3e4e50
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 [0x6d3ec260]
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 [0x6d3ec260]
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 [0x6d3ec268]
divss xmm0, xmm1
shufps xmm2, xmm2, 0
pxor xmm1, xmm1
movaps xmm3, xmm2
divss xmm0, dword [0x6d3ec264]
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 0x6d3c8408
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x60]
mov dword [esp], eax
call fcn.6d3e4e50
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 0x6d3c8378