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

Disassembly:
mov eax, 0x14
call fcn.005c5c30
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x2c]
mov ebx, edi
shld ecx, ebx, 5
xor edx, edx
shl ebx, 5
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ebx
cmp ecx, edx
jb 0x5b0b8a
ja 0x5b0b50
cmp ebx, edx
jbe 0x5b0b8a
nop
movzx ebp, byte [eax]
mov dword [esi], ebp
movzx ebp, byte [eax + 1]
shl ebp, 8
or dword [esi], ebp
movzx ebp, byte [eax + 2]
shl ebp, 0x10
or dword [esi], ebp
movzx ebp, byte [eax + 3]
shl ebp, 0x18
or dword [esi], ebp
add eax, 4
add dword [esp + 0x14], 1
adc edx, 0
add esi, 4
cmp edx, ecx
jb 0x5b0b50
ja 0x5b0b8a
cmp dword [esp + 0x14], ebx
jb 0x5b0b50
mov ebx, dword [esp + 0x38]
xor ebp, ebp
mov eax, 1
mov dword [esp + 0x14], eax
cmp ebp, ebx
ja 0x5b0be4
jb 0x5b0ba5
cmp eax, dword [esp + 0x34]
jae 0x5b0be4
mov eax, edi
shl eax, 7
mov dword [esp + 0x10], eax
jmp 0x5b0bb4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
mov edx, esi
push edi
sub edx, eax
push edx
push esi
call fcn.005b0770
add esp, 0x10
add dword [esp + 0x14], 1
adc ebp, 0
add esi, dword [esp + 0x10]
cmp ebp, ebx
jb 0x5b0bb0
ja 0x5b0be4
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x14], eax
jb 0x5b0bb0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
dec edx
imul edx, edi
push ecx
shl edx, 7
add edx, dword [esp + 0x48]
push edi
push edx
push esi
call fcn.005b0770
xor eax, eax
add esp, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp ebx, eax
jb 0x5b0cd0
ja 0x5b0c25
cmp dword [esp + 0x34], eax
jbe 0x5b0cd0
mov eax, edi
shl eax, 7
lea ecx, [eax + esi - 0x40]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push ebx
push ecx
push 0
push eax
call fcn.005c5ed0
imul eax, edi
shl eax, 7
add eax, dword [esp + 0x44]
xor ecx, ecx
xor edx, edx
test esi, esi
jb 0x5b0c90
ja 0x5b0c66
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x5b0c90
mov ebx, dword [esp + 0x3c]
mov ebx, dword [ebx + ecx*4]
xor ebx, dword [eax]
mov ebp, dword [esp + 0x40]
add eax, 4
mov dword [ebp + ecx*4], ebx
add ecx, 1
adc edx, 0
cmp edx, esi
jb 0x5b0c66
ja 0x5b0c8c
cmp ecx, dword [esp + 0x1c]
jb 0x5b0c66
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
push edx
push edi
push eax
push ecx
call fcn.005b0770
mov eax, dword [esp + 0x28]
add esp, 0x10
add dword [esp + 0x14], 1
adc eax, 0
mov dword [esp + 0x18], eax
cmp eax, ebx
jb 0x5b0c36
ja 0x5b0cd0
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x34]
jb 0x5b0c36
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
xor esi, esi
xor edi, edi
test ebp, ebp
jb 0x5b0d22
ja 0x5b0cf0
test edx, edx
je 0x5b0d22
lea ebx, [ebx]
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + esi*4]
mov byte [eax], cl
mov ebx, ecx
shr ebx, 8
mov byte [eax + 1], bl
mov ebx, ecx
shr ebx, 0x10
shr ecx, 0x18
mov byte [eax + 2], bl
mov byte [eax + 3], cl
add eax, 4
add esi, 1
adc edi, 0
cmp edi, ebp
jb 0x5b0cf0
ja 0x5b0d22
cmp esi, edx
jb 0x5b0cf0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret