Function at 0x7b57a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ebp, dword [esp + 0x48]
mov edx, 1
mov esi, dword [esp + 0x3c]
mov ecx, ebp
shl edx, cl
mov ecx, edx
mov dword [esp + 0x14], edx
shr ecx, 1
test ebp, ebp
lea eax, [esi + 4]
mov ebp, edx
mov dword [esp + 0x28], eax
lea ebx, [edx - 1]
mov eax, 1
mov dword [esp + 0x20], ebx
cmovne eax, ecx
mov ecx, edx
shr ecx, 3
xor edx, edx
add ecx, 3
shr ebp, 1
add ebp, ecx
mov ecx, dword [esp + 0x4c]
lea eax, [esi + eax*4]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], eax
xor esi, esi
mov eax, dword [esp + 0x44]
inc eax
mov dword [esp + 0x10], eax
mov edi, ebx
lea eax, [ecx + eax*2]
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [esp + 0x44]
cmovae edx, ecx
add eax, 2
add eax, ecx
adc esi, edx
shrd eax, esi, 1
shr esi, 1
add eax, 2
adc esi, 0
shld esi, eax, 2
shl eax, 2
test esi, esi
jb 0x7b5859
ja 0x7b584c
cmp eax, dword [esp + 0x50]
jbe 0x7b5859
pop edi
pop esi
pop ebp
mov eax, 0xffffffd4
pop ebx
add esp, 0x28
ret
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x10]
mov word [ecx], ax
mov eax, dword [esp + 0x4c]
mov word [ecx + 2], dx
xor ecx, ecx
mov word [eax], cx
mov ecx, 1
cmp esi, ecx
jb 0x7b58dc
mov edx, dword [esp + 0x40]
mov ebx, esi
sub eax, edx
mov ebp, eax
nop dword [eax]
movzx eax, word [edx]
movzx esi, word [edx + ebp]
mov dword [esp + 0x3c], eax
cmp ax, 0xffff
jne 0x7b58ba
lea eax, [esi + 1]
mov esi, dword [esp + 0x4c]
mov word [esi + ecx*2], ax
lea eax, [ecx - 1]
mov esi, dword [esp + 0x18]
mov byte [edi + esi + 2], al
dec edi
jmp 0x7b58c8
mov eax, dword [esp + 0x3c]
add eax, esi
mov esi, dword [esp + 0x4c]
mov word [esi + ecx*2], ax
inc ecx
add edx, 2
cmp ecx, ebx
jbe 0x7b5890
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
movzx eax, ax
mov ecx, eax
inc eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x18]
mov word [ecx], ax
xor eax, eax
cmp edi, ebx
jne 0x7b59cc
mov edi, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x30], xmm0
lea esi, [edi + 2]
add esi, ecx
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x10], eax
jbe 0x7b5980
mov edx, dword [esp + 0x34]
xor ebx, ebx
mov ebp, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
movsx ecx, word [ecx + eax*2]
mov dword [esp + 0x50], ecx
mov dword [esi + ebx], ebp
mov dword [esi + ebx + 4], edx
cmp ecx, 8
jle 0x7b595f
add ecx, 0xfffffff7
mov dword [esi + ebx + 8], ebp
lea edi, [esi + ebx]
shr ecx, 2
and ecx, 0x3ffffffe
mov dword [edi + 0xc], edx
lea esi, [edi + 8]
add edi, 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x50]
mov esi, dword [esp + 0x3c]
add ebx, ecx
inc eax
add ebp, 0x1010101
adc edx, 0x1010101
cmp eax, dword [esp + 0x10]
jb 0x7b5921
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
xor edx, edx
xor esi, esi
test edi, edi
je 0x7b5a06
nop dword [eax]
mov eax, dword [esp + 0x3c]
mov ecx, edx
mov edi, dword [esp + 0x18]
and ecx, ebx
movzx eax, byte [eax + esi]
mov byte [ecx + edi + 2], al
lea ecx, [edx + ebp]
mov eax, dword [esp + 0x3c]
lea edx, [edx + ebp*2]
and ecx, ebx
and edx, ebx
movzx eax, byte [eax + esi + 1]
add esi, 2
mov byte [ecx + edi + 2], al
cmp esi, dword [esp + 0x14]
jb 0x7b5990
mov ebp, dword [esp + 0x14]
xor esi, esi
jmp 0x7b5a10
xor edx, edx
test esi, esi
je 0x7b5a06
mov ecx, dword [esp + 0x40]
movsx ecx, word [ecx + edx*2]
test ecx, ecx
jle 0x7b5a01
mov esi, dword [esp + 0x18]
mov byte [eax + esi + 2], dl
add eax, ebp
and eax, ebx
cmp eax, edi
jbe 0x7b59f8
nop
add eax, ebp
and eax, ebx
cmp eax, edi
ja 0x7b59f0
sub ecx, 1
jne 0x7b59e2
mov esi, dword [esp + 0x10]
inc edx
cmp edx, esi
jb 0x7b59d2
mov ebp, dword [esp + 0x14]
xor esi, esi
test ebp, ebp
je 0x7b5a42
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
movzx edi, ax
nop dword [eax + eax]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x4c]
movzx eax, byte [eax + esi + 2]
lea edx, [ecx + eax*2]
movzx eax, word [edx]
lea ecx, [edi + esi]
inc esi
mov word [ebx + eax*2], cx
inc word [edx]
cmp esi, ebp
jb 0x7b5a20
mov edx, dword [esp + 0x2c]
xor edi, edi
mov esi, dword [esp + 0x40]
xor ebx, ebx
add edx, 8
movsx esi, word [esi + ebx*2]
cmp esi, 0xffffffff
je 0x7b5a9d
test esi, esi
je 0x7b5a8f
cmp esi, 1
je 0x7b5a9d
mov ecx, dword [esp + 0x48]
lea eax, [esi - 1]
bsr eax, eax
sub ecx, eax
shl esi, cl
shl ecx, 0x10
sub ecx, esi
mov esi, dword [esp + 0x40]
mov dword [edx], ecx
mov ecx, edi
movsx eax, word [esi + ebx*2]
sub ecx, eax
mov dword [edx - 4], ecx
movsx eax, word [esi + ebx*2]
add edi, eax
jmp 0x7b5ab3
mov eax, dword [esp + 0x48]
inc eax
shl eax, 0x10
sub eax, ebp
mov dword [edx], eax
jmp 0x7b5aaf
mov eax, dword [esp + 0x48]
shl eax, 0x10
sub eax, ebp
mov dword [edx], eax
lea eax, [edi - 1]
mov dword [edx - 4], eax
inc edi
mov esi, dword [esp + 0x40]
inc ebx
add edx, 8
cmp ebx, dword [esp + 0x44]
jbe 0x7b5a51
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret