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

Disassembly:
mov eax, 0x1c
call fcn.2a8ca120
mov ecx, dword [esp + 0x24]
xorps xmm0, xmm0
mov edx, dword [esp + 0x28]
mov eax, edx
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, ecx
movlpd qword [esp + 0x14], xmm0
shld eax, ebp, 5
push esi
mov esi, dword [esp + 0x2c]
shl ebp, 5
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebp
push edi
mov edi, esi
test eax, eax
jb 0x2a961c54
ja 0x2a961bf6
test ebp, ebp
je 0x2a961c54
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
movzx eax, byte [edi]
lea edi, [edi + 4]
mov dword [ebx], eax
movzx edx, byte [edi - 3]
shl edx, 8
or edx, eax
mov dword [ebx], edx
movzx ecx, byte [edi - 2]
shl ecx, 0x10
or ecx, edx
mov dword [ebx], ecx
movzx eax, byte [edi - 1]
shl eax, 0x18
or eax, ecx
add esi, 1
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
adc eax, 0
add ebx, 4
mov dword [esp + 0x10], eax
cmp eax, dword [esp + 0x14]
jb 0x2a961c02
ja 0x2a961c48
cmp esi, ebp
jb 0x2a961c02
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 0x2a961cb2
jb 0x2a961c69
cmp edi, dword [esp + 0x3c]
jae 0x2a961cb2
mov eax, ecx
mov ebp, ecx
mov dword [esp + 0x10], eax
shl ebp, 7
xor esi, esi
push edx
push ecx
mov eax, ebx
sub eax, ebp
push eax
push ebx
call fcn.2a961690
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 0x2a961c76
ja 0x2a961ca4
cmp edi, dword [esp + 0x3c]
jb 0x2a961c76
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
jmp 0x2a961cb6
mov dword [esp + 0x10], ecx
mov edi, dword [esp + 0x3c]
mov eax, edi
push dword [esp + 0x38]
mov ebx, dword [esp + 0x48]
shl eax, 7
add eax, 0xffffff80
imul eax, dword [esp + 0x14]
push ecx
add eax, dword [esp + 0x54]
push eax
push ebx
call fcn.2a961690
mov ecx, dword [esp + 0x50]
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
test ecx, ecx
jb 0x2a961dd3
ja 0x2a961cfd
test edi, edi
je 0x2a961dd3
mov eax, dword [esp + 0x10]
lea edx, [ebx - 0x40]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x44]
shl eax, 7
add edx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
push ecx
push edi
push 0
push dword [edx]
call fcn.2a980bf0
mov edi, eax
xorps xmm0, xmm0
imul edi, dword [esp + 0x10]
movlpd qword [esp + 0x14], xmm0
shl edi, 7
add edi, dword [esp + 0x4c]
test ebx, ebx
jb 0x2a961d84
ja 0x2a961d51
test ebp, ebp
je 0x2a961d84
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
nop dword [eax]
mov eax, dword [esi + ecx*4]
lea edi, [edi + 4]
mov esi, dword [esp + 0x48]
xor eax, dword [edi - 4]
mov dword [esi + ecx*4], eax
add ecx, 1
mov esi, dword [esp + 0x44]
adc edx, 0
cmp edx, ebx
jb 0x2a961d60
ja 0x2a961d84
cmp ecx, ebp
jb 0x2a961d60
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x50]
push esi
call fcn.2a961690
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov edx, dword [esp + 0x24]
add eax, 1
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
adc edx, 0
mov dword [esp + 0x24], edx
cmp edx, ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
jb 0x2a961d25
ja 0x2a961dcd
cmp eax, edi
jb 0x2a961d25
mov esi, dword [esp + 0x30]
jmp 0x2a961dd7
mov ebx, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
test ebx, ebx
jb 0x2a961e25
ja 0x2a961dea
test ebp, ebp
je 0x2a961e25
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x44]
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, ebx
jb 0x2a961df2
ja 0x2a961e25
cmp edx, ebp
jb 0x2a961df2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret