Function at 0x5b8c50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x1c
call fcn.00655180
mov edx, dword [esp + 0x28]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x24]
mov eax, edx
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, ecx
mov dword [esp + 0x20], edx
shld eax, ebp, 5
push esi
mov esi, dword [esp + 0x2c]
shl ebp, 5
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebp
movlpd qword [esp + 0x20], xmm0
push edi
mov edi, esi
test eax, eax
jb 0x5b8cf8
ja 0x5b8c9a
test ebp, ebp
je 0x5b8cf8
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
movzx eax, byte [edi]
lea edi, [edi + 4]
mov dword [ebx], eax
movzx ecx, byte [edi - 3]
shl ecx, 8
or ecx, eax
mov dword [ebx], ecx
movzx edx, byte [edi - 2]
shl edx, 0x10
or edx, ecx
mov dword [ebx], edx
movzx eax, byte [edi - 1]
shl eax, 0x18
or eax, edx
add esi, 1
mov dword [ebx], eax
mov eax, dword [esp + 0x18]
adc eax, 0
add ebx, 4
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x5b8ca6
ja 0x5b8cec
cmp esi, ebp
jb 0x5b8ca6
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
xor eax, eax
mov edi, 1
cmp eax, dword [esp + 0x40]
ja 0x5b8d4c
jb 0x5b8d0d
cmp edi, dword [esp + 0x3c]
jae 0x5b8d4c
mov ebp, ecx
shl ebp, 7
xor esi, esi
push edx
push ecx
mov eax, ebx
sub eax, ebp
push eax
push ebx
call fcn.005b8b10
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov edx, dword [esp + 0x38]
add edi, 1
adc esi, 0
add ebx, ebp
cmp esi, dword [esp + 0x40]
jb 0x5b8d14
ja 0x5b8d42
cmp edi, dword [esp + 0x3c]
jb 0x5b8d14
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
jmp 0x5b8d51
mov ebp, ecx
shl ebp, 7
mov ebx, dword [esp + 0x3c]
mov eax, ebx
push dword [esp + 0x38]
mov edi, dword [esp + 0x48]
shl eax, 7
add eax, 0xffffff80
imul eax, ecx
push ecx
add eax, dword [esp + 0x54]
push eax
push edi
call fcn.005b8b10
mov ecx, dword [esp + 0x50]
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
test ecx, ecx
jb 0x5b8e65
ja 0x5b8d96
test ebx, ebx
je 0x5b8e65
mov eax, dword [esp + 0x28]
lea edx, [edi - 0x40]
mov esi, dword [esp + 0x14]
add edx, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebp
push ecx
push ebx
push 0
push dword [edx]
call fcn.006550e0
mov edx, eax
xorps xmm0, xmm0
mov eax, dword [esp + 0x34]
imul edx, eax
movlpd qword [esp + 0x24], xmm0
shl edx, 7
add edx, dword [esp + 0x4c]
test esi, esi
jb 0x5b8e23
ja 0x5b8de4
cmp dword [esp + 0x10], 0
je 0x5b8e1f
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x44]
mov eax, dword [ebp + ecx*4]
lea edx, [edx + 4]
mov ebx, dword [esp + 0x48]
xor eax, dword [edx - 4]
mov dword [ebx + ecx*4], eax
add ecx, 1
mov ebx, dword [esp + 0x10]
adc edi, 0
cmp edi, esi
jb 0x5b8df0
ja 0x5b8e15
cmp ecx, ebx
jb 0x5b8df0
mov eax, dword [esp + 0x34]
mov edi, ebp
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x3c]
push dword [esp + 0x38]
push eax
push dword [esp + 0x50]
push edi
call fcn.005b8b10
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, dword [esp + 0x40]
add ebp, 1
mov edx, dword [esp + 0x20]
adc eax, 0
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
cmp eax, ecx
jb 0x5b8db3
ja 0x5b8e61
cmp ebp, ebx
jb 0x5b8db3
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x14], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x24], xmm0
jb 0x5b8ec2
mov ebx, dword [esp + 0x10]
ja 0x5b8e7f
test ebx, ebx
je 0x5b8ec2
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x44]
nop dword [eax + eax]
mov ecx, dword [ebp + edx*4]
lea esi, [esi + 4]
mov byte [esi - 4], cl
mov eax, ecx
shr eax, 8
mov byte [esi - 3], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
add edx, 1
mov byte [esi - 2], al
adc edi, 0
mov byte [esi - 1], cl
cmp edi, dword [esp + 0x14]
jb 0x5b8e90
ja 0x5b8ec2
cmp edx, ebx
jb 0x5b8e90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret