Function at 0x100c2940
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 0x100c2b9d
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 0x100c29ac
mov ecx, 0x20
jmp 0x100c29f6
mov edx, eax
shr edx, 0x1c
mov edx, dword [edx*4 + 0x10112f18]
test edx, edx
jne 0x100c29f3
test eax, 0xffff0000
jne 0x100c29cd
mov ecx, eax
mov edx, 0x10
shl ecx, 0x10
test ecx, 0xff000000
jne 0x100c29db
add edx, 8
shl ecx, 8
test ecx, 0xf0000000
jne 0x100c29e9
add edx, 4
shl ecx, 4
shr ecx, 0x1c
add edx, dword [ecx*4 + 0x10112f18]
lea ecx, [edx - 1]
cmp ecx, 0x20
jae 0x100c2a02
mov ebx, ecx
jmp 0x100c2abe
mov ebx, 0x20
sub ebx, edi
mov eax, dword [esi + 0x14]
cmp eax, 0x400
jae 0x100c2a42
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 0x100c2a5c
push esi
call fcn.100bf380
add esp, 4
test eax, eax
je 0x100c2b93
mov eax, dword [esi + 0x101c]
mov edi, dword [esi + 0x18]
test eax, eax
mov ecx, eax
jne 0x100c2a69
mov ecx, 0x20
jmp 0x100c2ab3
mov edx, eax
shr edx, 0x1c
mov edx, dword [edx*4 + 0x10112f18]
test edx, edx
jne 0x100c2ab0
test eax, 0xffff0000
jne 0x100c2a8a
mov ecx, eax
mov edx, 0x10
shl ecx, 0x10
test ecx, 0xff000000
jne 0x100c2a98
add edx, 8
shl ecx, 8
test ecx, 0xf0000000
jne 0x100c2aa6
add edx, 4
shl ecx, 4
shr ecx, 0x1c
add edx, dword [ecx*4 + 0x10112f18]
lea ecx, [edx - 1]
add ebx, ecx
cmp ecx, 0x20
jae 0x100c2a09
shl eax, cl
add edi, ecx
mov ecx, dword [esp + 0x34]
cmp edi, ecx
ja 0x100c2ad7
mov edx, eax
shr edx, cl
lea ecx, [ebp + 1]
shl eax, cl
add edi, ecx
jmp 0x100c2b49
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 0x100c2b1c
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 0x100c2b34
push esi
call fcn.100bf380
add esp, 4
test eax, eax
je 0x100c2b93
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 0x100c2b9d
jmp 0x100c2996
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