Function at 0x6cd5ea
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x73e040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0xd0], eax
push edi
xor edi, edi
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0xc8], esi
mov eax, dword [esi]
mov dword [eax + 8], edi
call fcn.006ccdf4
mov edx, dword [esi]
mov ebx, dword [edx + 8]
mov dword [ebp - 0x94], ebx
test eax, eax
jne 0x6cd641
push edi
mov edx, ebx
mov ecx, esi
call fcn.006cc6d7
jmp 0x6cdb7b
cmp ebx, 3
jne 0x6cd670
cmp dword [esi + 0x47ec], ebx
je 0x6cd65e
cmp dword [esi + 0x47e8], edi
jne 0x6cd670
cmp dword [esi + 0x47e4], edi
jne 0x6cd670
mov dword [ebp - 0xa8], 1
mov dword [ebp - 0x94], ebx
jmp 0x6cd67a
mov dword [ebp - 0xa8], edi
test ebx, ebx
jle 0x6cd632
xorps xmm0, xmm0
mov dword [ebp - 0x98], edi
lea eax, [esi + 0x46a0]
movups xmmword [ebp - 0xc0], xmm0
lea edi, [ebp - 0x7c]
mov dword [ebp - 0xa4], eax
mov eax, dword [esi]
mov eax, dword [eax]
add eax, 3
push eax
call fcn.006e2169
pop ecx
mov ecx, dword [ebp - 0xa4]
mov dword [ecx + 0x34], eax
test eax, eax
je 0x6cdb5b
mov eax, dword [esi + 0x4684]
cdq
idiv dword [ecx]
and dword [edi + 0xc], 0
mov dword [ebp - 0x90], eax
mov dword [edi - 4], eax
mov eax, dword [esi + 0x4688]
cdq
idiv dword [ecx + 4]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0xac], eax
sar ecx, 1
mov dword [edi], eax
mov eax, dword [ebp - 0x90]
mov dword [edi + 8], ecx
dec eax
mov ecx, dword [esi]
add eax, dword [ecx]
div dword [ebp - 0x90]
mov ecx, dword [ebp - 0xa4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 0x28]
mov dword [edi - 8], eax
mov dword [edi - 0xc], eax
mov eax, dword [ebp - 0x90]
cmp eax, 1
jne 0x6cd735
mov eax, dword [ebp - 0xac]
cmp eax, 1
jne 0x6cd729
mov eax, 0x6ccf05
jmp 0x6cd75e
cmp eax, 2
jne 0x6cd759
mov eax, 0x6ccf0d
jmp 0x6cd75e
cmp eax, 2
jne 0x6cd759
mov eax, dword [ebp - 0xac]
cmp eax, 1
jne 0x6cd74c
mov eax, 0x6ccf50
jmp 0x6cd75e
cmp eax, 2
jne 0x6cd759
mov eax, dword [esi + 0x4814]
jmp 0x6cd75e
mov eax, 0x6cd239
mov dword [edi - 0x10], eax
add ecx, 0x48
mov eax, dword [ebp - 0x98]
add edi, 0x20
inc eax
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x98], eax
cmp eax, ebx
jl 0x6cd699
mov edx, dword [esi]
push 1
push dword [edx + 4]
mov edx, dword [edx]
push 4
pop ecx
call fcn.006c8866
mov edx, dword [esi]
mov edi, eax
mov dword [ebp - 0xc4], edi
pop ecx
pop ecx
test edi, edi
je 0x6cdb5d
xor ecx, ecx
mov dword [ebp - 0x90], ecx
cmp dword [edx + 4], ecx
jbe 0x6cdb31
mov eax, dword [edx]
xor edx, edx
imul eax, ecx
mov dword [ebp - 0xb0], edx
lea edi, [edi + eax*4]
mov dword [ebp - 0xa0], edi
test ebx, ebx
jle 0x6cd8ca
lea eax, [esi + 0x46bc]
mov dword [ebp - 0x98], eax
lea edi, [ebp - 0x74]
mov esi, eax
mov eax, dword [ebp - 0xa8]
lea ecx, [edi - 0x10]
mov dword [ebp - 0x94], eax
lea edx, [edi - 0x14]
mov dword [ebp - 0xa8], eax
mov eax, dword [edi - 8]
sar eax, 1
mov dword [ebp - 0x9c], ebx
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0xac], edx
cmp dword [edi], eax
jl 0x6cd832
mov eax, dword [edx]
mov edx, ecx
mov dword [ebp - 0x98], ecx
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0xa8], ecx
jmp 0x6cd848
mov eax, ecx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0xa4], eax
mov eax, dword [ecx]
push dword [edi - 0xc]
push dword [edi - 4]
push eax
push dword [edx]
push dword [esi + 0x18]
call dword [edi - 0x18]
mov ecx, dword [ebp - 0xb0]
add esp, 0x14
mov dword [ebp + ecx*4 - 0xc0], eax
mov eax, dword [edi]
inc eax
mov dword [edi], eax
cmp eax, dword [edi - 8]
jl 0x6cd89b
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0xac]
and dword [edi], 0
inc dword [edi + 4]
mov edx, dword [edx]
mov dword [eax], edx
mov eax, dword [edi + 4]
cmp eax, dword [esi]
jge 0x6cd89b
mov eax, dword [esi + 4]
add eax, edx
mov edx, dword [ebp - 0xa4]
mov dword [edx], eax
inc ecx
add edi, 0x20
add esi, 0x48
mov dword [ebp - 0xb0], ecx
cmp ecx, ebx
jl 0x6cd7e7
mov esi, dword [ebp - 0xc8]
xor edx, edx
mov edi, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x94], ebx
mov eax, dword [esi]
cmp dword [eax + 8], 3
jne 0x6cd961
cmp dword [ebp - 0xa8], 0
je 0x6cd93c
mov dword [ebp - 0xa0], edx
cmp dword [eax], edx
jbe 0x6cdb19
mov ecx, dword [ebp - 0xbc]
lea edx, [edi + 2]
mov ebx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xb8]
sub ebx, ecx
mov edi, dword [ebp - 0xa0]
sub eax, ecx
mov dword [ebp - 0x9c], eax
mov al, byte [ecx + ebx]
inc edi
mov byte [edx - 2], al
mov al, byte [ecx]
mov byte [edx - 1], al
mov eax, dword [ebp - 0x9c]
mov al, byte [ecx + eax]
inc ecx
mov byte [edx], al
lea edx, [edx + 4]
mov byte [edx - 3], 0xff
mov eax, dword [esi]
cmp edi, dword [eax]
jb 0x6cd912
jmp 0x6cdb0d
push 4
push dword [eax]
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
push edi
call dword [esi + 0x4810]
add esp, 0x18
jmp 0x6cdb13
cmp dword [eax + 8], 4
jne 0x6cdae6
mov ecx, dword [esi + 0x47e8]
test ecx, ecx
jne 0x6cda33
mov dword [ebp - 0xb0], edx
cmp dword [eax], edx
jbe 0x6cdb13
mov ecx, dword [ebp - 0xbc]
lea ebx, [edi + 2]
mov edi, dword [ebp - 0xb4]
sub ecx, edi
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xa0], ecx
sub eax, edi
mov ecx, dword [ebp - 0xb8]
sub ecx, edi
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], ecx
movzx ecx, byte [edi + eax]
movzx edx, byte [edi]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [ebx - 2], al
mov eax, dword [ebp - 0xa0]
movzx ecx, byte [edi + eax]
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [ebx - 1], al
mov eax, dword [ebp - 0x9c]
movzx ecx, byte [edi + eax]
imul ecx, edx
mov byte [ebx + 1], 0xff
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
mov ecx, dword [ebp - 0xb0]
shr eax, 8
inc ecx
mov byte [ebx], al
inc edi
mov eax, dword [esi]
lea ebx, [ebx + 4]
mov dword [ebp - 0xb0], ecx
cmp ecx, dword [eax]
mov eax, dword [ebp - 0x98]
jb 0x6cd9ba
jmp 0x6cdb0d
mov eax, dword [eax]
mov edx, dword [esi + 0x4810]
push 4
push eax
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
push edi
cmp ecx, 2
jne 0x6cdadf
call edx
mov eax, dword [esi]
add esp, 0x18
and dword [ebp - 0xa0], 0
cmp dword [eax], 0
jbe 0x6cdb13
mov ebx, dword [ebp - 0xa0]
add edi, 2
mov eax, dword [ebp - 0xb4]
movzx edx, byte [ebx + eax]
mov al, byte [edi - 2]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 2], al
mov al, byte [edi - 1]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
mov byte [edi - 1], al
mov al, byte [edi]
not al
movzx ecx, al
imul ecx, edx
sub ecx, 0xffffff80
mov eax, ecx
shr eax, 8
add eax, ecx
shr eax, 8
inc ebx
mov byte [edi], al
lea edi, [edi + 4]
mov eax, dword [esi]
cmp ebx, dword [eax]
jb 0x6cda7a
jmp 0x6cdb0d
call edx
jmp 0x6cd959
cmp dword [eax], 0
jbe 0x6cdb19
mov ebx, dword [ebp - 0xc0]
lea ecx, [edi + 1]
mov al, byte [edx + ebx]
inc edx
mov byte [ecx + 1], al
mov byte [ecx], al
lea ecx, [ecx + 4]
mov byte [ecx - 5], al
mov byte [ecx - 2], 0xff
mov eax, dword [esi]
cmp edx, dword [eax]
jb 0x6cdaf4
mov ebx, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x90]
mov edx, dword [esi]
inc ecx
mov edi, dword [ebp - 0xc4]
mov dword [ebp - 0x90], ecx
cmp ecx, dword [edx + 4]
jb 0x6cd7b8
mov edx, dword [edx + 8]
mov ecx, esi
push 0
call fcn.006cc6d7
mov eax, dword [esi]
pop ecx
mov ecx, dword [ebp - 0xcc]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [esi]
mov ecx, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ecx], eax
mov eax, edi
jmp 0x6cdb7e
mov edx, dword [esi]
mov edx, dword [edx + 8]
mov ecx, esi
push 0
call fcn.006cc6d7
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov dword [eax + 0xc], str.outofmem
xor eax, eax
pop ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006dd431
leave
ret