Function at 0x1002dc40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp - 4], edx
push ebx
mov dword [ebp - 0x10], eax
mov ebx, edx
sar eax, 1
push esi
push edi
mov dword [ebp - 8], eax
cmp edx, eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
mov dword [ebp - 0xc], edx
jge 0x1002dd50
nop word [eax + eax]
mov edx, dword [eax]
lea esi, [ebx + ebx]
mov ecx, esi
shl ecx, 4
sub ecx, esi
sub edx, 1
je 0x1002dc9b
sub edx, 1
je 0x1002dc8a
xor cl, cl
jmp 0x1002dcad
vmovss xmm0, dword [edi + ecx*4 + 0x60]
vcomiss xmm0, dword [edi + ecx*4 + 0x9c]
jmp 0x1002dcaa
vmovss xmm0, dword [edi + ecx*4 + 0x5c]
vcomiss xmm0, dword [edi + ecx*4 + 0x98]
seta cl
mov edx, dword [ebp - 4]
inc esi
movzx ebx, cl
xor ebx, 1
shl edx, 4
sub edx, dword [ebp - 4]
add ebx, esi
mov esi, ebx
shl esi, 4
sub esi, ebx
mov ecx, dword [edi + esi*4]
mov dword [edi + edx*4], ecx
mov ecx, dword [edi + esi*4 + 4]
mov dword [edi + edx*4 + 4], ecx
mov ecx, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], ecx
mov ecx, dword [edi + esi*4 + 0xc]
mov dword [edi + edx*4 + 0xc], ecx
mov ecx, dword [edi + esi*4 + 0x10]
mov dword [edi + edx*4 + 0x10], ecx
mov ecx, dword [edi + esi*4 + 0x14]
mov dword [edi + edx*4 + 0x14], ecx
mov ecx, dword [edi + esi*4 + 0x18]
mov dword [edi + edx*4 + 0x18], ecx
mov ecx, dword [edi + esi*4 + 0x1c]
mov dword [edi + edx*4 + 0x1c], ecx
mov ecx, dword [edi + esi*4 + 0x20]
mov dword [edi + edx*4 + 0x20], ecx
mov ecx, dword [edi + esi*4 + 0x24]
mov dword [edi + edx*4 + 0x24], ecx
mov ecx, dword [edi + esi*4 + 0x28]
mov dword [edi + edx*4 + 0x28], ecx
movzx ecx, byte [edi + esi*4 + 0x2c]
mov byte [edi + edx*4 + 0x2c], cl
mov ecx, dword [edi + esi*4 + 0x30]
mov dword [edi + edx*4 + 0x30], ecx
movzx ecx, byte [edi + esi*4 + 0x34]
mov byte [edi + edx*4 + 0x34], cl
mov ecx, dword [edi + esi*4 + 0x38]
mov dword [edi + edx*4 + 0x38], ecx
mov edx, ebx
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp ebx, ecx
jl 0x1002dc70
jmp 0x1002dd53
mov ecx, dword [ebp - 8]
cmp ebx, ecx
jne 0x1002ddf3
mov ecx, dword [ebp + 8]
test cl, 1
jne 0x1002ddf3
mov esi, ecx
shl edx, 4
shl esi, 4
sub esi, ecx
sub edx, dword [ebp - 4]
mov ecx, dword [edi + esi*4 - 0x3c]
mov dword [edi + edx*4], ecx
mov ecx, dword [edi + esi*4 - 0x38]
mov dword [edi + edx*4 + 4], ecx
mov ecx, dword [edi + esi*4 - 0x34]
mov dword [edi + edx*4 + 8], ecx
mov ecx, dword [edi + esi*4 - 0x30]
mov dword [edi + edx*4 + 0xc], ecx
mov ecx, dword [edi + esi*4 - 0x2c]
mov dword [edi + edx*4 + 0x10], ecx
mov ecx, dword [edi + esi*4 - 0x28]
mov dword [edi + edx*4 + 0x14], ecx
mov ecx, dword [edi + esi*4 - 0x24]
mov dword [edi + edx*4 + 0x18], ecx
mov ecx, dword [edi + esi*4 - 0x20]
mov dword [edi + edx*4 + 0x1c], ecx
mov ecx, dword [edi + esi*4 - 0x1c]
mov dword [edi + edx*4 + 0x20], ecx
mov ecx, dword [edi + esi*4 - 0x18]
mov dword [edi + edx*4 + 0x24], ecx
mov ecx, dword [edi + esi*4 - 0x14]
mov dword [edi + edx*4 + 0x28], ecx
movzx ecx, byte [edi + esi*4 - 0x10]
mov byte [edi + edx*4 + 0x2c], cl
mov ecx, dword [edi + esi*4 - 0xc]
mov dword [edi + edx*4 + 0x30], ecx
movzx ecx, byte [edi + esi*4 - 8]
mov byte [edi + edx*4 + 0x34], cl
mov ecx, dword [edi + esi*4 - 4]
mov dword [edi + edx*4 + 0x38], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], edx
jge 0x1002ded1
nop dword [eax]
mov ecx, dword [eax]
lea ebx, [edx - 1]
sar ebx, 1
mov esi, ebx
shl esi, 4
sub esi, ebx
sub ecx, 1
je 0x1002de2c
sub ecx, 1
jne 0x1002ded1
mov ecx, dword [ebp + 0xc]
vmovss xmm0, dword [ecx + 0x24]
vcomiss xmm0, dword [edi + esi*4 + 0x24]
jmp 0x1002de3a
mov ecx, dword [ebp + 0xc]
vmovss xmm0, dword [ecx + 0x20]
vcomiss xmm0, dword [edi + esi*4 + 0x20]
seta cl
test cl, cl
je 0x1002ded1
mov ecx, dword [edi + esi*4]
shl edx, 4
sub edx, dword [ebp - 4]
mov dword [edi + edx*4], ecx
mov ecx, dword [edi + esi*4 + 4]
mov dword [edi + edx*4 + 4], ecx
mov ecx, dword [edi + esi*4 + 8]
mov dword [edi + edx*4 + 8], ecx
mov ecx, dword [edi + esi*4 + 0xc]
mov dword [edi + edx*4 + 0xc], ecx
mov ecx, dword [edi + esi*4 + 0x10]
mov dword [edi + edx*4 + 0x10], ecx
mov ecx, dword [edi + esi*4 + 0x14]
mov dword [edi + edx*4 + 0x14], ecx
mov ecx, dword [edi + esi*4 + 0x18]
mov dword [edi + edx*4 + 0x18], ecx
mov ecx, dword [edi + esi*4 + 0x1c]
mov dword [edi + edx*4 + 0x1c], ecx
mov ecx, dword [edi + esi*4 + 0x20]
mov dword [edi + edx*4 + 0x20], ecx
mov ecx, dword [edi + esi*4 + 0x24]
mov dword [edi + edx*4 + 0x24], ecx
mov ecx, dword [edi + esi*4 + 0x28]
mov dword [edi + edx*4 + 0x28], ecx
movzx ecx, byte [edi + esi*4 + 0x2c]
mov byte [edi + edx*4 + 0x2c], cl
mov ecx, dword [edi + esi*4 + 0x30]
mov dword [edi + edx*4 + 0x30], ecx
movzx ecx, byte [edi + esi*4 + 0x34]
mov byte [edi + edx*4 + 0x34], cl
mov ecx, dword [edi + esi*4 + 0x38]
mov dword [edi + edx*4 + 0x38], ecx
mov edx, ebx
mov dword [ebp - 4], edx
cmp dword [ebp - 0xc], ebx
jl 0x1002de00
mov ecx, edx
shl ecx, 4
sub ecx, edx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [edi + ecx*4], eax
mov eax, dword [edx + 4]
mov dword [edi + ecx*4 + 4], eax
mov eax, dword [edx + 8]
mov dword [edi + ecx*4 + 8], eax
mov eax, dword [edx + 0xc]
mov dword [edi + ecx*4 + 0xc], eax
mov eax, dword [edx + 0x10]
mov dword [edi + ecx*4 + 0x10], eax
mov eax, dword [edx + 0x14]
mov dword [edi + ecx*4 + 0x14], eax
mov eax, dword [edx + 0x18]
mov dword [edi + ecx*4 + 0x18], eax
mov eax, dword [edx + 0x1c]
mov dword [edi + ecx*4 + 0x1c], eax
mov eax, dword [edx + 0x20]
mov dword [edi + ecx*4 + 0x20], eax
mov eax, dword [edx + 0x24]
mov dword [edi + ecx*4 + 0x24], eax
mov eax, dword [edx + 0x28]
mov dword [edi + ecx*4 + 0x28], eax
movzx eax, byte [edx + 0x2c]
mov byte [edi + ecx*4 + 0x2c], al
mov eax, dword [edx + 0x30]
mov dword [edi + ecx*4 + 0x30], eax
movzx eax, byte [edx + 0x34]
mov byte [edi + ecx*4 + 0x34], al
mov eax, dword [edx + 0x38]
mov dword [edi + ecx*4 + 0x38], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret