Function at 0x6d6530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
movzx edx, byte [esi + 0x21]
sub edx, 1
js 0x6d6567
mov ah, byte [ecx]
nop
cmp byte [esi + edx*4], ah
jne 0x6d6562
mov al, byte [esi + edx*4 + 1]
cmp al, byte [ecx + 1]
je 0x6d68b6
sub edx, 1
jns 0x6d6550
movzx eax, byte [ecx]
xorps xmm0, xmm0
mov dword [esp + 0x58], eax
movzx eax, byte [ecx + 1]
mov ecx, edi
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1b]
movaps xmmword [esp + 0x24], xmm0
push eax
movaps xmmword [esp + 0x38], xmm0
mov dword [esp + 0x58], 0
call fcn.006d68c0
cmp byte [eax], 0
je 0x6d68b6
movss xmm0, dword [ebp + 0x10]
mulss xmm0, dword [0x719d80]
movss xmm1, dword [esp + 0x54]
comiss xmm1, xmm0
jb 0x6d68b6
mov eax, dword [ebp + 0xc]
movaps xmm3, xmmword [esp + 0x30]
movaps xmm1, xmmword [esp + 0x20]
mov cl, byte [eax]
cmp cl, 6
ja 0x6d6696
cmp cl, 2
ja 0x6d6602
mov eax, dword [edi + 0x18]
movaps xmm2, xmm3
movaps xmm0, xmm3
shufps xmm2, xmm3, 0x55
shufps xmm0, xmm3, 0
mulps xmm0, xmmword [eax]
mulps xmm2, xmmword [eax + 0x10]
addps xmm2, xmm0
movaps xmm0, xmm3
shufps xmm0, xmm3, 0xaa
jmp 0x6d6624
mov eax, dword [edi + 0x14]
movaps xmm2, xmm1
movaps xmm0, xmm1
shufps xmm2, xmm1, 0x55
shufps xmm0, xmm1, 0
mulps xmm0, xmmword [eax]
mulps xmm2, xmmword [eax + 0x10]
addps xmm2, xmm0
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xaa
mulps xmm0, xmmword [eax + 0x20]
xor ecx, ecx
addps xmm0, xmmword [eax + 0x30]
movzx eax, byte [esi + 0x21]
mov dword [esp + 0x1c], eax
addps xmm2, xmm0
test eax, eax
jle 0x6d6693
movss xmm3, dword [0x77f9a4]
xor edx, edx
cmp byte [esi + ecx*4], 6
ja 0x6d668b
mov eax, dword [edi + 0x10]
movaps xmm1, xmm2
subps xmm1, xmmword [edx + eax + 0x10]
mulps xmm1, xmm1
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
shufps xmm1, xmm1, 0xaa
addss xmm1, xmm0
movss xmm0, dword [edi + 0xb0]
mulss xmm0, xmm0
addss xmm0, xmm3
comiss xmm0, xmm1
jae 0x6d68b6
mov eax, dword [esp + 0x1c]
inc ecx
add edx, 0x30
cmp ecx, eax
jl 0x6d6647
mov eax, dword [ebp + 0xc]
cmp byte [esi + 0x21], 8
jae 0x6d68b6
push eax
push dword [edi + 4]
mov ecx, esi
push dword [edi]
call fcn.006d3d60
mov edx, eax
mov dword [esp + 0x1c], edx
test edx, edx
js 0x6d68b6
mov ecx, dword [edi + 0x10]
mov eax, dword [esp + 0x58]
mov ecx, dword [ecx]
mov dword [esp + 0x18], ecx
cmp eax, 2
jg 0x6d6740
mov edx, dword [ebp + 0xc]
movaps xmm2, xmmword [esp + 0x30]
movaps xmm1, xmm2
movaps xmm0, xmm2
shufps xmm1, xmm2, 0x55
movzx ecx, byte [edx]
movzx eax, word [edx + 2]
mov edx, dword [esp + 0x18]
shufps xmm0, xmm2, 0
shufps xmm2, xmm2, 0xaa
shl ecx, 4
mov dword [edx + 0x20], eax
mov eax, dword [edi + 0x18]
mulps xmm1, xmmword [eax + 0x10]
mulps xmm0, xmmword [eax]
mulps xmm2, xmmword [eax + 0x20]
addps xmm1, xmm0
movss xmm0, dword [esp + 0x50]
shufps xmm0, xmm0, 0
addps xmm2, xmmword [eax + 0x30]
addps xmm1, xmm2
movaps xmmword [edx], xmm1
movaps xmm1, xmmword [0x719550]
add ecx, dword [edi + 0x14]
subps xmm1, xmm0
shufps xmm1, xmm1, 0
mulps xmm1, xmmword [ecx]
mov ecx, edx
mov edx, dword [esp + 0x1c]
movaps xmmword [ecx + 0x10], xmm1
jmp 0x6d680a
movaps xmm2, xmmword [esp + 0x20]
cmp eax, 6
mov eax, dword [ebp + 0xc]
movaps xmm1, xmm2
movaps xmm0, xmm2
shufps xmm1, xmm2, 0x55
shufps xmm0, xmm2, 0
shufps xmm2, xmm2, 0xaa
jg 0x6d67b9
movzx ecx, byte [eax]
mov esi, dword [esp + 0x18]
sub ecx, 4
movzx eax, word [eax + 2]
shl ecx, 4
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x14]
mulps xmm1, xmmword [eax + 0x10]
mulps xmm0, xmmword [eax]
mulps xmm2, xmmword [eax + 0x20]
addps xmm1, xmm0
movss xmm0, dword [esp + 0x50]
shufps xmm0, xmm0, 0
addps xmm2, xmmword [eax + 0x30]
mov eax, esi
mov esi, dword [ebp + 8]
addps xmm1, xmm2
movaps xmmword [eax], xmm1
movaps xmm1, xmmword [0x719550]
add ecx, dword [edi + 0x18]
subps xmm1, xmm0
shufps xmm1, xmm1, 0
mulps xmm1, xmmword [ecx]
mov ecx, eax
movaps xmmword [ecx + 0x10], xmm1
jmp 0x6d680a
movzx eax, word [eax + 2]
mov dword [ecx + 0x20], eax
mov eax, dword [edi + 0x14]
mulps xmm2, xmmword [eax + 0x20]
mulps xmm1, xmmword [eax + 0x10]
mulps xmm0, xmmword [eax]
addps xmm2, xmmword [eax + 0x30]
addps xmm1, xmm0
addps xmm1, xmm2
movaps xmmword [ecx], xmm1
movaps xmm1, xmmword [esp + 0x40]
mov eax, dword [edi + 0x14]
movaps xmm2, xmm1
shufps xmm2, xmm1, 0x55
movaps xmm0, xmm1
shufps xmm0, xmm1, 0
shufps xmm1, xmm1, 0xaa
mulps xmm2, xmmword [eax + 0x10]
mulps xmm0, xmmword [eax]
mulps xmm1, xmmword [eax + 0x20]
addps xmm2, xmm0
addps xmm2, xmm1
movaps xmmword [ecx + 0x10], xmm2
movss xmm0, dword [esp + 0x54]
movss dword [ecx + 0x1c], xmm0
cmp byte [esi + 0x21], 1
jbe 0x6d6852
mov eax, dword [edi + 0x10]
mov eax, dword [eax]
movaps xmm1, xmmword [eax - 0x20]
mulps xmm1, xmmword [ecx + 0x10]
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
addss xmm0, xmm1
shufps xmm1, xmm1, 0xaa
addss xmm1, xmm0
xorps xmm0, xmm0
shufps xmm1, xmm1, 0
subps xmm0, xmm1
shufps xmm0, xmm0, 0
movmskps eax, xmm0
xor al, 0xff
test al, 1
jne 0x6d6880
push dword [esp + 0x18]
mov ecx, dword [edi + 0xc]
push 0
push dword [edi + 0x10]
push dword [edi + 8]
mov eax, dword [ecx]
push dword [edi + 4]
push dword [edi]
mov eax, dword [eax + 0xc]
call eax
mov edx, dword [esp + 0x1c]
mov ecx, 0xffff
mov word [esi + edx*4 + 2], ax
cmp ax, cx
jne 0x6d6890
push edx
mov ecx, esi
call fcn.006d3dc0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
add dword [eax], 0x30
mov ax, word [esi + edx*4 + 2]
mov word [ecx + 2], ax
movzx eax, word [esi + edx*4 + 2]
mov edx, dword [esp + 0x18]
mov dword [edx + 0x20], eax
cmp byte [ecx], 6
ja 0x6d68b6
inc byte [esi + 0x20]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc