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

Disassembly:
mov eax, 0x1c
call fcn.1011d0a0
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 0x100c59b4
ja 0x100c5956
test ebp, ebp
je 0x100c59b4
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 0x100c5962
ja 0x100c59a8
cmp esi, ebp
jb 0x100c5962
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 0x100c5a12
jb 0x100c59c9
cmp edi, dword [esp + 0x3c]
jae 0x100c5a12
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.100c53f0
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 0x100c59d6
ja 0x100c5a04
cmp edi, dword [esp + 0x3c]
jb 0x100c59d6
mov esi, dword [esp + 0x30]
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
jmp 0x100c5a16
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.100c53f0
mov ecx, dword [esp + 0x50]
add esp, 0x10
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
test ecx, ecx
jb 0x100c5b33
ja 0x100c5a5d
test edi, edi
je 0x100c5b33
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.1011d7d0
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 0x100c5ae4
ja 0x100c5ab1
test ebp, ebp
je 0x100c5ae4
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 0x100c5ac0
ja 0x100c5ae4
cmp ecx, ebp
jb 0x100c5ac0
push dword [esp + 0x38]
push dword [esp + 0x38]
push dword [esp + 0x50]
push esi
call fcn.100c53f0
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 0x100c5a85
ja 0x100c5b2d
cmp eax, edi
jb 0x100c5a85
mov esi, dword [esp + 0x30]
jmp 0x100c5b37
mov ebx, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
test ebx, ebx
jb 0x100c5b85
ja 0x100c5b4a
test ebp, ebp
je 0x100c5b85
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 0x100c5b52
ja 0x100c5b85
cmp edx, ebp
jb 0x100c5b52
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret