Function at 0x100bb000
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x44
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [esp + 0x4c], esi
mov edi, dword [esi + 0x10]
cmp edi, 3
jae 0x100bb024
call fcn.100bd060
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x44
ret
mov ecx, dword [esi]
push ebp
mov dword [esp + 0x34], 2
mov dword [esp + 0x38], 0
movzx edx, byte [ecx]
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
mov dword [esp + 0x20], 0
movzx eax, byte [ecx + 1]
xor edx, dword [esi + eax*4 + 0x60]
mov eax, dword [esi + 0x24]
movzx ecx, dx
mov edx, dword [eax + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esi + 4]
mov dword [ecx], eax
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
mov ebp, dword [esi]
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x10], ebp
mov ebp, dword [esi + 4]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
lea ecx, [ecx + eax*8]
mov eax, ebp
mov dword [esp + 0x14], edx
mov ebp, dword [esp + 0x2c]
lea esi, [ecx + 4]
sub eax, ebp
mov dword [esp + 0x18], ecx
cmp ebp, dword [esp + 0x28]
mov dword [esp + 0x1c], esi
sbb ebp, ebp
and ebp, eax
mov dword [esp + 0x40], ebp
cmp ebp, edx
mov ebp, dword [esp + 0x10]
jae 0x100bb1ba
nop
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
sub esi, edx
cmp dword [esp + 0x44], esi
mov edx, dword [esp + 0x38]
sbb eax, eax
mov dword [esp + 0x30], esi
and eax, dword [esp + 0x2c]
sub ebp, esi
sub eax, esi
add eax, dword [esp + 0x44]
lea ecx, [ecx + eax*8]
mov eax, dword [esp + 0x20]
cmp edx, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx]
cmovb eax, edx
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x10]
mov cl, byte [eax + ebp]
cmp cl, byte [eax + edx]
mov edx, dword [esp + 0x14]
jne 0x100bb162
inc eax
cmp eax, edi
je 0x100bb145
mov esi, dword [esp + 0x10]
mov cl, byte [eax + ebp]
cmp cl, byte [eax + esi]
mov esi, dword [esp + 0x30]
jne 0x100bb145
inc eax
cmp eax, edi
je 0x100bb145
mov ecx, dword [esp + 0x10]
mov esi, ebp
sub esi, ecx
lea edx, [eax + ecx]
nop
mov cl, byte [esi + edx]
cmp cl, byte [edx]
jne 0x100bb13d
inc eax
inc edx
cmp eax, edi
jne 0x100bb130
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x34], eax
jae 0x100bb162
mov dword [ebx], eax
lea ecx, [esi - 1]
mov dword [ebx + 4], ecx
add ebx, 8
mov dword [esp + 0x34], eax
cmp eax, edi
je 0x100bb1ec
mov cl, byte [eax + ebp]
mov ebp, dword [esp + 0x10]
cmp cl, byte [eax + ebp]
jae 0x100bb18b
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [ecx], edx
mov ecx, dword [esp + 0x24]
add ecx, 4
mov dword [esp + 0x18], ecx
mov edx, dword [ecx]
jmp 0x100bb1a5
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
mov dword [ecx], edx
mov ecx, dword [esp + 0x24]
mov esi, ecx
mov dword [esp + 0x1c], esi
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
sub dword [esp + 0x3c], 1
mov dword [esp + 0x14], edx
je 0x100bb1ba
cmp dword [esp + 0x40], edx
jb 0x100bb0c0
mov dword [ecx], 0
mov dword [esi], 0
mov eax, dword [esp + 0x50]
pop ebp
mov ecx, dword [eax + 4]
inc dword [eax + 0x14]
inc ecx
inc dword [eax]
mov dword [eax + 4], ecx
cmp ecx, dword [eax + 8]
jne 0x100bb1e3
mov ecx, eax
call fcn.100bcad0
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x44
ret
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x4c]
mov dword [ecx], eax
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
jmp 0x100bb1c6