Function at 0xb3bc90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
add ebx, ebp
sub ebx, dword [esp + 0x48]
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
cmp ebx, ebp
jbe 0xb3bfc4
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
dec eax
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 0x20], ebx
jmp 0xb3bd2e
mov ebx, esi
mov esi, dword [esp + 4]
mov edi, esi
mov eax, dword [esp + 8]
sub edi, eax
mov ecx, edi
sar ecx, 2
cmp esi, dword [esp]
je 0xb3bd7b
mov edi, eax
mov esi, dword [esp + 4]
mov dword [edi + ecx*4], ebp
add esi, 4
mov dword [esp + 4], esi
mov dword [ebx + 4], esi
add ebp, dword [esp + 0x10]
mov esi, ebx
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, ebx
jae 0xb3bfc4
test edx, edx
je 0xb3bd37
cmp byte [edx], 0x3f
je 0xb3bd43
movzx ecx, byte [ebp]
mov edi, dword [esp + 0x44]
cmp cl, byte [edi]
jne 0xb3bd25
cmp dword [esp + 0x48], 2
jb 0xb3bcf0
xor ecx, ecx
jmp 0xb3bd6e
movzx edx, byte [ebp + ecx + 1]
mov edi, dword [esp + 0x44]
cmp dl, byte [edi + ecx + 1]
mov edx, dword [esp + 0x4c]
jne 0xb3be33
inc ecx
cmp dword [esp + 0x10], ecx
je 0xb3bcf0
test edx, edx
je 0xb3bd50
cmp byte [edx + ecx + 1], 0x3f
jne 0xb3bd50
jmp 0xb3bd67
mov dword [esp], edi
lea eax, [ecx + 1]
mov edx, ecx
shr edx, 1
mov dword [esp + 0x1c], ecx
add edx, ecx
cmp edx, eax
ja 0xb3bd91
mov edx, eax
mov dword [esp + 0x18], edx
lea eax, [edx*4]
push eax
call fcn.00b092b0
add esp, 4
mov edi, eax
mov edx, dword [esp + 8]
test edx, edx
mov ecx, dword [esp]
je 0xb3bfa1
cmp edi, edx
mov dword [esp + 0xc], edi
jbe 0xb3be3a
lea eax, [edx + ecx]
cmp eax, edi
jbe 0xb3be3a
test ecx, ecx
mov ebx, dword [esp + 4]
je 0xb3bf8d
mov edi, ecx
mov esi, dword [esp + 8]
lea eax, [ecx + esi]
dec eax
xor ecx, 0xfffffffe
mov edx, edi
and edx, 0xfffffffe
lea ecx, [ecx + edx*2]
mov edx, dword [esp + 0xc]
add ecx, edx
inc ecx
not esi
add esi, ebx
mov ebx, esi
mov esi, edi
and esi, 7
je 0xb3bf2f
neg esi
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax + edi]
mov byte [ecx + edi], dl
dec edi
cmp esi, edi
jne 0xb3be10
add eax, edi
add ecx, edi
mov esi, dword [esp]
add esi, edi
cmp ebx, 7
jae 0xb3bf37
jmp 0xb3bf8d
add ebp, ecx
jmp 0xb3bd25
mov ebx, ecx
mov esi, edi
shr ecx, 2
mov eax, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov ecx, edx
mov edi, ebx
mov edx, ebx
and edx, 0xfffffffc
lea eax, [esi + edx]
add edx, ecx
not ebx
or ebx, 3
lea ecx, [edi + ebx]
inc ecx
mov dword [esp + 0x14], ecx
add edi, ebx
mov dword [esp], edi
shr ecx, 1
mov esi, edx
mov edi, eax
xchg esi, esi
rep movsw word es:[edi], word [esi]
xchg esi, esi
mov esi, dword [esp + 0x14]
mov edi, esi
not esi
or esi, 1
mov ecx, dword [esp]
add ecx, esi
inc ecx
inc ecx
je 0xb3bf8d
and edi, 0xfffffffe
add edx, edi
add eax, edi
add ebx, esi
add ebx, dword [esp + 4]
sub ebx, dword [esp + 8]
lea esi, [ebx + 1]
mov edi, ecx
and edi, 7
je 0xb3becb
mov dword [esp + 4], esi
mov esi, ebx
xor ecx, ecx
nop
movzx ebx, byte [edx + ecx]
mov byte [eax + ecx], bl
inc ecx
cmp edi, ecx
jne 0xb3beb0
sub esi, ecx
add esi, 2
add edx, ecx
add eax, ecx
mov ecx, esi
mov esi, dword [esp + 4]
cmp esi, 7
jb 0xb3bf8d
xor esi, esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [edx + esi]
mov byte [eax + esi], bl
movzx ebx, byte [edx + esi + 1]
mov byte [eax + esi + 1], bl
movzx ebx, byte [edx + esi + 2]
mov byte [eax + esi + 2], bl
movzx ebx, byte [edx + esi + 3]
mov byte [eax + esi + 3], bl
movzx ebx, byte [edx + esi + 4]
mov byte [eax + esi + 4], bl
movzx ebx, byte [edx + esi + 5]
mov byte [eax + esi + 5], bl
movzx ebx, byte [edx + esi + 6]
mov byte [eax + esi + 6], bl
movzx ebx, byte [edx + esi + 7]
mov byte [eax + esi + 7], bl
add esi, 8
cmp ecx, esi
jne 0xb3bee0
jmp 0xb3bf8d
mov esi, dword [esp]
cmp ebx, 7
jb 0xb3bf8d
neg esi
xor edx, edx
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
movzx ebx, byte [eax + edx - 1]
mov byte [ecx + edx - 1], bl
movzx ebx, byte [eax + edx - 2]
mov byte [ecx + edx - 2], bl
movzx ebx, byte [eax + edx - 3]
mov byte [ecx + edx - 3], bl
movzx ebx, byte [eax + edx - 4]
mov byte [ecx + edx - 4], bl
movzx ebx, byte [eax + edx - 5]
mov byte [ecx + edx - 5], bl
movzx ebx, byte [eax + edx - 6]
mov byte [ecx + edx - 6], bl
movzx ebx, byte [eax + edx - 7]
mov byte [ecx + edx - 7], bl
add edx, 0xfffffff8
cmp esi, edx
jne 0xb3bf40
push dword [esp + 8]
call fcn.00b092c0
add esp, 4
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0xc]
mov dword [ebx], edi
mov ecx, dword [esp + 0x1c]
lea esi, [edi + ecx*4]
mov eax, dword [esp + 0x18]
lea eax, [edi + eax*4]
mov dword [esp], eax
mov dword [ebx + 8], eax
mov dword [esp + 8], edi
mov edx, dword [esp + 0x4c]
jmp 0xb3bd0e
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret