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

Disassembly:
mov eax, 0x14
call fcn.10264a90
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x28]
xor ebp, ebp
push ebp
push 0x20
push eax
push ebx
mov dword [esp + 0x24], ebp
call fcn.10268760
mov dword [esp + 0x1c], eax
mov ecx, eax
mov eax, edx
mov dword [esp + 0x20], edx
test eax, eax
jb 0x1022124f
ja 0x10221214
test ecx, ecx
jbe 0x1022124f
movzx edx, byte [edi]
mov dword [esi], edx
movzx edx, byte [edi + 1]
inc edi
shl edx, 8
or dword [esi], edx
movzx edx, byte [edi + 1]
inc edi
shl edx, 0x10
or dword [esi], edx
movzx edx, byte [edi + 1]
inc edi
shl edx, 0x18
or dword [esi], edx
inc edi
add dword [esp + 0x14], 1
adc ebp, 0
add esi, 4
cmp ebp, eax
jb 0x10221214
ja 0x1022124f
cmp dword [esp + 0x14], ecx
jb 0x10221214
mov edi, dword [esp + 0x38]
xor ebp, ebp
mov eax, 1
mov dword [esp + 0x14], eax
cmp ebp, edi
ja 0x102212a8
jb 0x1022126a
cmp eax, dword [esp + 0x34]
jae 0x102212a8
mov eax, ebx
shl eax, 7
mov dword [esp + 0x10], eax
jmp 0x10221279
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push ebx
mov ecx, esi
sub ecx, eax
push esi
call fcn.102210f0
add esp, 0xc
add dword [esp + 0x14], 1
adc ebp, 0
add esi, dword [esp + 0x10]
cmp ebp, edi
jb 0x10221275
ja 0x102212a8
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x14], edx
jb 0x10221275
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x3c]
dec ecx
imul ecx, ebx
push eax
shl ecx, 7
add ecx, dword [esp + 0x48]
push ebx
push esi
call fcn.102210f0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp edi, eax
jb 0x1022139b
ja 0x102212e8
cmp dword [esp + 0x34], eax
jbe 0x1022139b
mov ecx, ebx
shl ecx, 7
lea edx, [ecx + esi - 0x40]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], edx
lea esp, [esp]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push edi
push edx
push 0
push ecx
call fcn.102686e0
imul eax, ebx
shl eax, 7
add eax, dword [esp + 0x44]
xor ecx, ecx
xor edx, edx
test esi, esi
jb 0x1022135c
ja 0x10221330
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jbe 0x1022135c
mov edi, dword [esp + 0x3c]
mov edi, dword [edi + ecx*4]
xor edi, dword [eax]
mov ebp, dword [esp + 0x40]
add eax, 4
mov dword [ebp + ecx*4], edi
add ecx, 1
adc edx, 0
cmp edx, esi
jb 0x10221330
ja 0x10221358
mov edi, dword [esp + 0x1c]
cmp ecx, edi
jb 0x10221330
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x4c]
call fcn.102210f0
mov eax, dword [esp + 0x24]
add esp, 0xc
add dword [esp + 0x14], 1
adc eax, 0
mov dword [esp + 0x18], eax
cmp eax, edi
jb 0x10221300
ja 0x1022139b
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x34]
jb 0x10221300
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 0x102213e5
ja 0x102213b5
test edx, edx
jbe 0x102213e5
mov ecx, dword [esp + 0x3c]
mov ecx, dword [ecx + esi*4]
mov byte [eax], cl
inc eax
mov ebx, ecx
shr ebx, 8
mov byte [eax], bl
inc eax
mov ebx, ecx
shr ebx, 0x10
mov byte [eax], bl
inc eax
shr ecx, 0x18
mov byte [eax], cl
inc eax
add esi, 1
adc edi, 0
cmp edi, ebp
jb 0x102213b5
ja 0x102213e5
cmp esi, edx
jb 0x102213b5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret