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

Disassembly:
mov eax, 0x18
call fcn.101704b0
mov edx, dword [esp + 0x20]
xorps xmm0, xmm0
mov eax, dword [esp + 0x24]
push ebx
mov ebx, edx
movlpd qword [esp + 0xc], xmm0
shld eax, ebx, 5
push ebp
push esi
mov esi, dword [esp + 0x28]
mov ecx, esi
shl ebx, 5
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ebx
push edi
mov edi, dword [esp + 0x48]
test eax, eax
jb 0x101025ee
ja 0x101025a4
test ebx, ebx
je 0x101025ee
mov ebp, dword [esp + 0x1c]
mov esi, eax
mov edx, dword [esp + 0x18]
mov edi, edi
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov dword [edi], eax
movzx eax, byte [ecx - 3]
shl eax, 8
or dword [edi], eax
movzx eax, byte [ecx - 2]
shl eax, 0x10
or dword [edi], eax
movzx eax, byte [ecx - 1]
shl eax, 0x18
or dword [edi], eax
add edx, 1
adc ebp, 0
add edi, 4
cmp ebp, esi
jb 0x101025b0
ja 0x101025e6
cmp edx, ebx
jb 0x101025b0
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
xor eax, eax
mov ebp, 1
cmp eax, dword [esp + 0x3c]
ja 0x10102645
jb 0x10102603
cmp ebp, dword [esp + 0x38]
jae 0x10102645
mov ebx, edx
shl ebx, 7
xor esi, esi
lea ebx, [ebx]
push dword [esp + 0x34]
mov eax, edi
push edx
sub eax, ebx
push eax
push edi
call fcn.10101f30
mov edx, dword [esp + 0x40]
add esp, 0x10
add ebp, 1
adc esi, 0
add edi, ebx
cmp esi, dword [esp + 0x3c]
jb 0x10102610
ja 0x1010263d
cmp ebp, dword [esp + 0x38]
jb 0x10102610
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x30]
push dword [esp + 0x34]
lea eax, [edi - 1]
imul eax, ebp
push ebp
shl eax, 7
add eax, dword [esp + 0x50]
push eax
push dword [esp + 0x4c]
call fcn.10101f30
mov ecx, dword [esp + 0x4c]
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
test ecx, ecx
jb 0x10102764
ja 0x1010268b
test edi, edi
je 0x10102764
mov esi, dword [esp + 0x40]
mov eax, ebp
mov ebp, dword [esp + 0x10]
shl eax, 7
lea edx, [esi - 0x40]
add edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
push ecx
push edi
push 0
push dword [edx]
call fcn.10170e60
mov edi, eax
xorps xmm0, xmm0
mov eax, dword [esp + 0x30]
imul edi, eax
movlpd qword [esp + 0x10], xmm0
shl edi, 7
add edi, dword [esp + 0x48]
test ebp, ebp
jb 0x10102718
ja 0x101026df
test ebx, ebx
je 0x10102718
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x101026f0
mov eax, dword [esi + ecx*4]
lea edi, [edi + 4]
mov esi, dword [esp + 0x44]
xor eax, dword [edi - 4]
mov dword [esi + ecx*4], eax
add ecx, 1
mov esi, dword [esp + 0x40]
adc edx, 0
cmp edx, ebp
jb 0x101026f0
ja 0x10102714
cmp ecx, ebx
jb 0x101026f0
mov eax, dword [esp + 0x30]
push dword [esp + 0x34]
push eax
push dword [esp + 0x4c]
push esi
call fcn.10101f30
mov eax, dword [esp + 0x28]
add esp, 0x10
mov edx, dword [esp + 0x20]
add eax, 1
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
adc edx, 0
mov dword [esp + 0x20], edx
cmp edx, ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
jb 0x101026b1
ja 0x1010275e
cmp eax, edi
jb 0x101026b1
mov esi, dword [esp + 0x2c]
jmp 0x10102768
mov ebp, dword [esp + 0x10]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
test ebp, ebp
jb 0x101027b6
ja 0x1010277b
test ebx, ebx
je 0x101027b6
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x40]
lea esi, [esi + 4]
mov ecx, dword [eax + edx*4]
mov eax, ecx
shr eax, 8
mov byte [esi - 4], cl
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, ebp
jb 0x10102783
ja 0x101027b6
cmp edx, ebx
jb 0x10102783
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret