Function at 0x528fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov edi, dword [ecx + 8]
mov dword [esp + 8], edx
mov edx, dword [ecx + 4]
xor esi, esi
mov dword [esp + 4], ecx
mov ecx, 0
cmp edi, 3
jb 0x528ff3
movzx ebx, byte [edi + edx - 2]
xor esi, esi
mov eax, ebx
and al, 0xf0
cmp al, 0xa0
jne 0x528ff3
xor esi, esi
cmp byte [edi + edx - 3], 0xed
jne 0x528ff3
movzx esi, byte [edi + edx - 1]
and ebx, 0xf
mov cl, 1
shl ebx, 0x10
and esi, 0x3f
shl esi, 0xa
or esi, ebx
mov eax, dword [ebp + 8]
cmp eax, 3
jb 0x52902e
mov eax, dword [esp + 8]
cmp byte [eax], 0xed
jne 0x529036
mov eax, dword [esp + 8]
movzx ebx, byte [eax + 1]
mov eax, ebx
and al, 0xf0
cmp al, 0xb0
setne al
xor cl, 1
or cl, al
jne 0x529036
cmp edi, 3
jae 0x5290b0
mov ecx, dword [esp + 4]
jmp 0x5290ba
test eax, eax
je 0x52916d
mov esi, dword [esp + 8]
mov eax, dword [ebp + 8]
lea ecx, [esi + eax]
jmp 0x52905a
add esi, 2
cmp ebx, ecx
cmovne ebx, esi
nop word [eax + eax]
cmp ebx, ecx
mov esi, ebx
je 0x52916d
movzx eax, byte [esi]
lea ebx, [esi + 1]
test al, al
jns 0x529050
cmp al, 0xe0
jb 0x529042
cmp al, 0xed
jne 0x529090
cmp ebx, ecx
je 0x52916d
lea eax, [esi + 2]
cmp eax, ecx
je 0x52916d
cmp byte [esi + 1], 0x9f
ja 0x529165
add esi, 3
mov ebx, esi
jmp 0x529050
add esi, 2
cmp ebx, ecx
cmove esi, ebx
xor ebx, ebx
cmp esi, ecx
setne bl
add ebx, esi
cmp al, 0xf0
jb 0x529050
xor eax, eax
cmp ebx, ecx
setne al
add ebx, eax
jmp 0x529050
mov ecx, dword [esp + 4]
add edi, 0xfffffffd
mov dword [ecx + 8], edi
mov eax, dword [esp + 8]
mov edx, dword [ecx]
shl ebx, 6
movzx eax, byte [eax + 2]
mov ecx, edx
sub ecx, edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
inc eax
cmp ecx, eax
jb 0x5291b2
mov dword [esp + 0xc], edx
and ebx, 0x3c0
or ebx, esi
mov esi, dword [esp + 0x10]
or esi, ebx
shl ebx, 0xa
lea edx, [esi + 0x10000]
and ebx, 0xff0000
shl esi, 0x18
mov eax, edx
shr edx, 4
shr eax, 0x12
and edx, 0xff00
or edx, eax
or ebx, edx
or esi, ebx
cmp ecx, 3
movd xmm0, esi
pand xmm0, xmmword [str._a___]
por xmm0, xmmword [0x576d80]
jbe 0x5291d9
mov esi, dword [esp + 4]
mov ebx, dword [ebp + 8]
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 4]
add dword [esp + 8], 3
add ebx, 0xfffffffd
movd dword [ecx + edi], xmm0
add edi, 4
sub eax, edi
mov dword [esi + 8], edi
cmp eax, ebx
jb 0x529208
add ecx, edi
push ebx
push dword [esp + 0xc]
push ecx
jmp 0x529184
mov eax, dword [esp + 4]
mov byte [eax + 0xc], 0
mov esi, dword [esp + 4]
mov ebx, dword [ebp + 8]
mov eax, dword [esi]
sub eax, edi
cmp eax, ebx
jb 0x529199
add edx, edi
push ebx
push dword [esp + 0xc]
push edx
call sym._memcpy
add esp, 0xc
add edi, ebx
mov dword [esi + 8], edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, edi
mov ecx, esi
push 1
push 1
push ebx
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
mov edx, dword [esi + 4]
mov edi, dword [esi + 8]
jmp 0x52917c
mov ecx, dword [esp + 4]
mov edx, edi
push 1
push 1
push eax
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edi, dword [eax + 8]
mov dword [esp + 0xc], ecx
sub ecx, edi
jmp 0x5290df
mov esi, dword [esp + 4]
mov edx, edi
mov ecx, esi
push 1
push 1
push 4
movdqa xmmword [esp + 0x1c], xmm0
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
movdqa xmm0, xmmword [esp + 0x1c]
add esp, 0xc
mov eax, dword [esi]
mov edi, dword [esi + 8]
mov ebx, dword [ebp + 8]
jmp 0x52913b
mov ecx, esi
mov edx, edi
push 1
push 1
push ebx
call sym.alloc::raw_vec::RawVecInner_LT_A_GT_::reserve::do_reserve_and_handle::h35901dc27c78f3f2
add esp, 0xc
mov ecx, dword [esi + 4]
mov edi, dword [esi + 8]
jmp 0x52915b