Function at 0x52bc90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
nop
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x52c2c0
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
sub esi, edx
sar esi, 4
inc esi
mov eax, 0x7d48a0
add eax, dword [0x7d48a0]
mov dword [ebp - 0x54], eax
mov eax, dword [0x7d48a4]
mov dword [ebp - 0x38], eax
xor eax, eax
cmp dword [0x84e548], 0xf7f8132d
sete al
mov ebx, 0x7d49ac
add ebx, dword [0x7d49ac]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x48], eax
mov ecx, dword [ecx + eax + 8]
mov dword [ebp - 0x20], edx
sub ecx, edx
sar ecx, 4
mov eax, ecx
shr eax, 1
mov edx, 0xfffffff
sub edx, eax
add eax, ecx
cmp eax, esi
mov dword [ebp - 0x44], esi
cmovbe eax, esi
cmp ecx, edx
mov ecx, 0xfffffff
cmova eax, ecx
cmp eax, 0x10000000
jae 0x52c153
mov ecx, eax
shl ecx, 4
cmp eax, 0x100
mov dword [ebp - 0x2c], ecx
jb 0x52bd70
cmp eax, 0xffffffe
jb 0x52bd59
nop
test byte [0x889ae0], 1
je 0x52c158
lea eax, [ecx + 0x23]
push eax
call fcn.0071993d
add esp, 4
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x52bd8e
xor edi, edi
test eax, eax
je 0x52bd8e
nop
test byte [0x889bf0], 1
jne 0x52bd8e
nop
push dword [ebp - 0x2c]
call fcn.0071993d
add esp, 4
mov edi, eax
nop
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x40], eax
add eax, edi
mov dword [ebp - 0x30], eax
cmp dword [0x84e54c], 0x4f53f11c
je 0x52bdc9
nop
mov ecx, dword [0x84e544]
lea edx, [ecx + 1]
mov dword [0x84e544], edx
test edx, ecx
je 0x52bdc9
mov dword [ebp - 0x28], 0
jmp 0x52be68
nop
mov ecx, dword [ebx]
mov al, 1
mov dword [ebp - 0x28], eax
mov eax, ebx
xor ebx, ebx
cmp dword [ebp - 0x38], 0
jle 0x52be68
mov dword [ebp - 0x4c], eax
add ecx, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0
jmp 0x52be0e
xor edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], edx
add ebx, 2
cmp ebx, dword [ebp - 0x38]
jge 0x52be6f
nop
mov eax, dword [ebp - 0x54]
lea edx, [eax + ebx]
mov esi, ecx
sub esi, edx
mov edx, dword [ebp - 0x3c]
sbb edx, 0
cmp esi, 2
sbb edx, 0
movzx edx, word [eax + ebx]
jge 0x52be00
lea ecx, [esi*8]
mov eax, 0xffffffff
shl eax, cl
not eax
and edx, eax
mov eax, dword [ebp - 0x34]
lea ecx, [eax + 1]
mov dword [ebp - 0x50], ecx
add ebx, esi
add ebx, 2
mov esi, dword [ebp - 0x4c]
lea ecx, [esi + eax*4]
add ecx, 4
add ecx, dword [esi + eax*4 + 4]
mov dword [ebp - 0x3c], 0
nop
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
jmp 0x52be00
mov dword [ebp - 0x20], 0
nop
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ebp - 0x30]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [ebp + 8]
cmp esi, eax
je 0x52c015
cmp ecx, eax
je 0x52bf50
xor edx, edx
nop dword [eax + eax]
nop
movzx ebx, byte [ecx + edx]
mov byte [edi + edx], bl
movzx ebx, byte [ecx + edx + 1]
mov byte [edi + edx + 1], bl
movzx ebx, byte [ecx + edx + 2]
mov byte [edi + edx + 2], bl
movzx ebx, byte [ecx + edx + 3]
mov byte [edi + edx + 3], bl
movzx ebx, byte [ecx + edx + 4]
mov byte [edi + edx + 4], bl
movzx ebx, byte [ecx + edx + 5]
mov byte [edi + edx + 5], bl
movzx ebx, byte [ecx + edx + 6]
mov byte [edi + edx + 6], bl
movzx ebx, byte [ecx + edx + 7]
mov byte [edi + edx + 7], bl
movzx ebx, byte [ecx + edx + 8]
mov byte [edi + edx + 8], bl
movzx ebx, byte [ecx + edx + 9]
mov byte [edi + edx + 9], bl
movzx ebx, byte [ecx + edx + 0xa]
mov byte [edi + edx + 0xa], bl
movzx ebx, byte [ecx + edx + 0xb]
mov byte [edi + edx + 0xb], bl
movzx ebx, byte [ecx + edx + 0xc]
mov byte [edi + edx + 0xc], bl
movzx ebx, byte [ecx + edx + 0xd]
mov byte [edi + edx + 0xd], bl
movzx ebx, byte [ecx + edx + 0xe]
mov byte [edi + edx + 0xe], bl
movzx ebx, byte [ecx + edx + 0xf]
mov byte [edi + edx + 0xf], bl
lea esi, [ecx + edx]
add esi, 0x10
add edx, 0x10
cmp esi, eax
jne 0x52beb0
nop
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + 8]
cmp ecx, eax
je 0x52c0c0
mov edx, dword [ebp - 0x40]
add edx, edi
add edx, 0x1f
xor esi, esi
nop dword [eax]
nop
movzx ebx, byte [eax + esi]
mov byte [edx + esi - 0xf], bl
movzx ebx, byte [eax + esi + 1]
mov byte [edx + esi - 0xe], bl
movzx ebx, byte [eax + esi + 2]
mov byte [edx + esi - 0xd], bl
movzx ebx, byte [eax + esi + 3]
mov byte [edx + esi - 0xc], bl
movzx ebx, byte [eax + esi + 4]
mov byte [edx + esi - 0xb], bl
movzx ebx, byte [eax + esi + 5]
mov byte [edx + esi - 0xa], bl
movzx ebx, byte [eax + esi + 6]
mov byte [edx + esi - 9], bl
movzx ebx, byte [eax + esi + 7]
mov byte [edx + esi - 8], bl
movzx ebx, byte [eax + esi + 8]
mov byte [edx + esi - 7], bl
movzx ebx, byte [eax + esi + 9]
mov byte [edx + esi - 6], bl
movzx ebx, byte [eax + esi + 0xa]
mov byte [edx + esi - 5], bl
movzx ebx, byte [eax + esi + 0xb]
mov byte [edx + esi - 4], bl
movzx ebx, byte [eax + esi + 0xc]
mov byte [edx + esi - 3], bl
movzx ebx, byte [eax + esi + 0xd]
mov byte [edx + esi - 2], bl
movzx ebx, byte [eax + esi + 0xe]
mov byte [edx + esi - 1], bl
movzx ebx, byte [eax + esi + 0xf]
mov byte [edx + esi], bl
lea ebx, [eax + esi]
add ebx, 0x10
add esi, 0x10
cmp ebx, ecx
jne 0x52bf70
jmp 0x52c0c0
cmp ecx, esi
je 0x52c0c6
xor eax, eax
nop
nop
movzx edx, byte [ecx + eax]
mov byte [edi + eax], dl
movzx edx, byte [ecx + eax + 1]
mov byte [edi + eax + 1], dl
movzx edx, byte [ecx + eax + 2]
mov byte [edi + eax + 2], dl
movzx edx, byte [ecx + eax + 3]
mov byte [edi + eax + 3], dl
movzx edx, byte [ecx + eax + 4]
mov byte [edi + eax + 4], dl
movzx edx, byte [ecx + eax + 5]
mov byte [edi + eax + 5], dl
movzx edx, byte [ecx + eax + 6]
mov byte [edi + eax + 6], dl
movzx edx, byte [ecx + eax + 7]
mov byte [edi + eax + 7], dl
movzx edx, byte [ecx + eax + 8]
mov byte [edi + eax + 8], dl
movzx edx, byte [ecx + eax + 9]
mov byte [edi + eax + 9], dl
movzx edx, byte [ecx + eax + 0xa]
mov byte [edi + eax + 0xa], dl
movzx edx, byte [ecx + eax + 0xb]
mov byte [edi + eax + 0xb], dl
movzx edx, byte [ecx + eax + 0xc]
mov byte [edi + eax + 0xc], dl
movzx edx, byte [ecx + eax + 0xd]
mov byte [edi + eax + 0xd], dl
movzx edx, byte [ecx + eax + 0xe]
mov byte [edi + eax + 0xe], dl
movzx edx, byte [ecx + eax + 0xf]
mov byte [edi + eax + 0xf], dl
lea edx, [ecx + eax]
add edx, 0x10
add eax, 0x10
cmp edx, esi
jne 0x52c020
nop
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x48]
or edx, 8
test ecx, ecx
je 0x52c124
nop
mov eax, dword [ebp - 0x24]
mov esi, edx
mov eax, dword [eax + edx]
sub eax, ecx
cmp eax, 0x1000
jb 0x52c0f5
nop
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x52c15d
add eax, 0x23
mov ecx, edx
nop
movzx edx, word [0x7d489c]
cmp dx, word [ebp - 0x20]
setne dl
mov ebx, dword [ebp - 0x28]
and bl, dl
or bl, byte [0x889bf0]
and bl, 1
mov byte [0x889bf0], bl
push eax
push ecx
call fcn.0071996d
add esp, 8
mov edx, esi
nop
mov eax, dword [ebp - 0x24]
mov dword [eax], edi
mov ecx, dword [ebp - 0x44]
shl ecx, 4
add ecx, edi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x2c]
add ecx, edi
mov dword [eax + edx], ecx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x30]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
call fcn.00455870
call fcn.00455870
nop
mov dword [ebp - 0x10], 0
call fcn.006fce21
nop word [eax + eax]
push ebp
sub esp, 8
add ebp, 0xc
call fcn.007311e0
int3