Function at 0x100c2980
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
or eax, 0xffffffff
and ebp, 0xff
mov dword [esp + 0x18], eax
mov ecx, ebp
xor edx, edx
shl eax, cl
push esi
push edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], edx
not eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
cmp eax, edx
jbe 0x100c2bdd
mov esi, dword [esp + 0x28]
lea eax, [ebp + 1]
mov ecx, 0x20
sub ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x101c]
mov edi, dword [esi + 0x18]
test eax, eax
mov ecx, eax
jne 0x100c29ec
mov ecx, 0x20
jmp 0x100c2a36
mov edx, eax
shr edx, 0x1c
mov edx, dword [edx*4 + 0x10112ef4]
test edx, edx
jne 0x100c2a33
test eax, 0xffff0000
jne 0x100c2a0d
mov ecx, eax
mov edx, 0x10
shl ecx, 0x10
test ecx, 0xff000000
jne 0x100c2a1b
add edx, 8
shl ecx, 8
test ecx, 0xf0000000
jne 0x100c2a29
add edx, 4
shl ecx, 4
shr ecx, 0x1c
add edx, dword [ecx*4 + 0x10112ef4]
lea ecx, [edx - 1]
cmp ecx, 0x20
jae 0x100c2a42
mov ebx, ecx
jmp 0x100c2afe
mov ebx, 0x20
sub ebx, edi
mov eax, dword [esi + 0x14]
cmp eax, 0x400
jae 0x100c2a82
mov ecx, dword [esi + eax*4 + 0x1c]
inc eax
mov dword [esi + 0x14], eax
mov eax, ecx
mov edx, ecx
and eax, 0xff0000
shr edx, 0x10
or eax, edx
mov edx, ecx
shl edx, 0x10
and ecx, 0xff00
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
xor edi, edi
jmp 0x100c2a9c
push esi
call fcn.100bf3c0
add esp, 4
test eax, eax
je 0x100c2bd3
mov eax, dword [esi + 0x101c]
mov edi, dword [esi + 0x18]
test eax, eax
mov ecx, eax
jne 0x100c2aa9
mov ecx, 0x20
jmp 0x100c2af3
mov edx, eax
shr edx, 0x1c
mov edx, dword [edx*4 + 0x10112ef4]
test edx, edx
jne 0x100c2af0
test eax, 0xffff0000
jne 0x100c2aca
mov ecx, eax
mov edx, 0x10
shl ecx, 0x10
test ecx, 0xff000000
jne 0x100c2ad8
add edx, 8
shl ecx, 8
test ecx, 0xf0000000
jne 0x100c2ae6
add edx, 4
shl ecx, 4
shr ecx, 0x1c
add edx, dword [ecx*4 + 0x10112ef4]
lea ecx, [edx - 1]
add ebx, ecx
cmp ecx, 0x20
jae 0x100c2a49
shl eax, cl
add edi, ecx
mov ecx, dword [esp + 0x34]
cmp edi, ecx
ja 0x100c2b17
mov edx, eax
shr edx, cl
lea ecx, [ebp + 1]
shl eax, cl
add edi, ecx
jmp 0x100c2b89
mov edx, dword [esp + 0x34]
shr eax, cl
sub edi, edx
mov ebp, edi
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
cmp eax, 0x400
jae 0x100c2b5c
mov ecx, dword [esi + eax*4 + 0x1c]
inc eax
mov dword [esi + 0x14], eax
mov eax, ecx
mov edx, ecx
and eax, 0xff0000
shr edx, 0x10
or eax, edx
mov edx, ecx
shl edx, 0x10
and ecx, 0xff00
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
jmp 0x100c2b74
push esi
call fcn.100bf3c0
add esp, 4
test eax, eax
je 0x100c2bd3
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0x101c]
add edi, ebp
mov ecx, 0x20
mov edx, eax
sub ecx, ebp
shr edx, cl
mov ecx, dword [esp + 0x44]
or edx, ecx
mov ecx, ebp
shl eax, cl
mov ebp, dword [esp + 0x10]
mov dword [esi + 0x101c], eax
mov ecx, ebp
mov dword [esi + 0x18], edi
shl ebx, cl
and edx, dword [esp + 0x18]
or ebx, edx
mov edx, dword [esp + 0x28]
mov eax, ebx
add edx, 4
mov ecx, eax
mov dword [esp + 0x28], edx
and ecx, 1
shr eax, 1
mov ecx, dword [esp + ecx*4 + 0x1c]
xor ecx, eax
mov eax, dword [esp + 0x14]
mov dword [edx - 4], ecx
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jae 0x100c2bdd
jmp 0x100c29d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret