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

Disassembly:
mov eax, 0x18
call fcn.2a8b8f90
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 0x2a937ece
ja 0x2a937e84
test ebx, ebx
je 0x2a937ece
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 0x2a937e90
ja 0x2a937ec6
cmp edx, ebx
jb 0x2a937e90
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
xor eax, eax
mov ebp, 1
cmp eax, dword [esp + 0x3c]
ja 0x2a937f25
jb 0x2a937ee3
cmp ebp, dword [esp + 0x38]
jae 0x2a937f25
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.2a937950
mov edx, dword [esp + 0x40]
add esp, 0x10
add ebp, 1
adc esi, 0
add edi, ebx
cmp esi, dword [esp + 0x3c]
jb 0x2a937ef0
ja 0x2a937f1d
cmp ebp, dword [esp + 0x38]
jb 0x2a937ef0
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.2a937950
mov ecx, dword [esp + 0x4c]
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
test ecx, ecx
jb 0x2a938044
ja 0x2a937f6b
test edi, edi
je 0x2a938044
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.2a94bd80
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 0x2a937ff8
ja 0x2a937fbf
test ebx, ebx
je 0x2a937ff8
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jmp 0x2a937fd0
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 0x2a937fd0
ja 0x2a937ff4
cmp ecx, ebx
jb 0x2a937fd0
mov eax, dword [esp + 0x30]
push dword [esp + 0x34]
push eax
push dword [esp + 0x4c]
push esi
call fcn.2a937950
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 0x2a937f91
ja 0x2a93803e
cmp eax, edi
jb 0x2a937f91
mov esi, dword [esp + 0x2c]
jmp 0x2a938048
mov ebp, dword [esp + 0x10]
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
test ebp, ebp
jb 0x2a938096
ja 0x2a93805b
test ebx, ebx
je 0x2a938096
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 0x2a938063
ja 0x2a938096
cmp edx, ebx
jb 0x2a938063
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret