Function at 0x4bbd45
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 1
push edi
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x78]
shl ebp, cl
xor edi, edi
dec ebp
cmp eax, edi
je 0x4bbee1
mov eax, dword [esi + 0x2c]
cmp eax, 2
je 0x4bbda0
cmp eax, 5
je 0x4bbda0
cmp eax, 3
jne 0x4bbee1
cmp ecx, 8
jne 0x4bbfb8
mov edx, dword [esi + 4]
mov ecx, dword [esi + 0x28]
push edx
mov edx, dword [esp + 0x78]
mov eax, dword [ecx]
push edx
mov edx, dword [esp + 0x78]
push edx
call dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
cmp ecx, 0x10
jne 0x4bbde0
cmp dword [esi + 4], edi
jle 0x4bc0a1
mov eax, dword [esp + 0x74]
lea ecx, [eax + 2]
mov eax, dword [esp + 0x70]
mov dl, byte [ecx + 2]
add ecx, 6
mov byte [eax], dl
mov dl, byte [ecx - 6]
inc eax
mov byte [eax], dl
mov dl, byte [ecx - 8]
inc eax
mov byte [eax], dl
mov edx, dword [esi + 4]
inc eax
inc edi
cmp edi, edx
jl 0x4bbdb9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
cmp ecx, 8
jne 0x4bbe20
cmp dword [esi + 4], edi
jle 0x4bc0a1
mov eax, dword [esp + 0x74]
lea ecx, [eax + 1]
mov eax, dword [esp + 0x70]
mov dl, byte [ecx + 1]
add ecx, 3
mov byte [eax], dl
mov dl, byte [ecx - 3]
inc eax
mov byte [eax], dl
mov dl, byte [ecx - 4]
inc eax
mov byte [eax], dl
mov edx, dword [esi + 4]
inc eax
inc edi
cmp edi, edx
jl 0x4bbdf9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edi
cmp eax, edi
jle 0x4bc0a1
mov eax, dword [esp + 0x70]
lea ebx, [eax + 1]
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0x74]
push ecx
push edi
push edx
call fcn.004bc0b0
and eax, 0xff
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x30]
add edi, eax
push eax
mov eax, dword [esp + 0x84]
push edi
push eax
call fcn.004bc0b0
mov ecx, dword [esp + 0x8c]
and eax, 0xff
mov dword [esp + 0x88], eax
mov eax, dword [esi + 0x30]
add edi, eax
push eax
push edi
push ecx
call fcn.004bc0b0
and eax, 0xff
add esp, 0x24
mov ecx, eax
mov eax, dword [esi + 0x30]
add edi, eax
mov eax, ecx
shl eax, 8
sub eax, ecx
mov ecx, dword [esp + 0x70]
cdq
idiv ebp
add ebx, 3
mov byte [ebx - 4], al
mov eax, ecx
shl eax, 8
sub eax, ecx
mov ecx, dword [esp + 0x24]
cdq
idiv ebp
mov byte [ebx - 3], al
mov eax, ecx
shl eax, 8
sub eax, ecx
cdq
idiv ebp
mov byte [ebx - 2], al
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4bbe36
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
cmp ecx, 8
jne 0x4bbfb8
mov eax, dword [esi + 4]
xor ebp, ebp
cmp eax, edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], edi
jle 0x4bc0a1
mov ebx, dword [esp + 0x70]
mov edx, dword [esi + 0x34]
test edx, edx
jle 0x4bbf3f
lea ecx, [esp + 0x2c]
lea eax, [esi + 0x38]
mov ebp, edx
mov ebx, dword [esp + 0x74]
xor edx, edx
add eax, 4
add ecx, 4
mov dl, byte [edi + ebx]
inc edi
mov dword [esp + 0x24], edx
dec ebp
fild dword [esp + 0x24]
fmul dword [eax + 0x1c]
fadd dword [eax - 4]
fstp dword [ecx - 4]
jne 0x4bbf13
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x70]
mov ecx, dword [esi + 0x28]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x1c]
mov eax, dword [ecx]
push edx
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x38]
push edx
call dword [eax + 4]
fld dword [esp + 0x14]
fmul dword [0x64669c]
call fcn.004605e0
fld dword [esp + 0x18]
fmul dword [0x64669c]
mov byte [ebx + ebp], al
call fcn.004605e0
fld dword [esp + 0x1c]
fmul dword [0x64669c]
mov byte [ebx + ebp + 1], al
call fcn.004605e0
mov byte [ebx + ebp + 2], al
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 4]
add ebp, 3
inc eax
mov dword [esp + 0x10], ebp
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4bbf03
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edi
cmp eax, edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
jle 0x4bc0a1
jmp 0x4bbfd3
xor edi, edi
mov eax, dword [esi + 0x34]
xor ebp, ebp
cmp eax, edi
jle 0x4bc02a
mov eax, dword [esi + 0x30]
lea ebx, [esp + 0x2c]
lea edi, [esi + 0x38]
mov ecx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call fcn.004bc0b0
and eax, 0xff
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x30]
fild dword [esp + 0x34]
add ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x34]
fmul dword [edi + 0x20]
inc ebp
add edi, 4
add ebx, 4
cmp ebp, ecx
fadd dword [edi - 4]
fstp dword [ebx - 4]
jl 0x4bbfe6
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
call dword [edx + 4]
fld dword [esp + 0x14]
fmul dword [0x64669c]
call fcn.004605e0
fld dword [esp + 0x18]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x70]
fmul dword [0x64669c]
mov byte [edi + ebx], al
call fcn.004605e0
fld dword [esp + 0x1c]
fmul dword [0x64669c]
mov byte [edi + ebx + 1], al
call fcn.004605e0
mov byte [edi + ebx + 2], al
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 4]
add edi, 3
inc eax
mov dword [esp + 0x20], edi
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4bbfd1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 8