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

Disassembly:
sub esp, 0x60
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xa
jl 0x100a1e5a
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0xffffffff
jne 0x100a1e57
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
add eax, 0xa
mov edx, dword [esi + 0x18]
mov dword [esp + 0x1c], eax
xor eax, eax
lea edi, [esp + 0x2c]
lea ecx, [edx + 1]
mov ebx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x1c]
mov edi, edx
cmp edi, eax
jge 0x100a1fb8
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x100a1e99
mov cl, byte [esp + eax + 0x2b]
mov byte [esp + eax + 0x2c], cl
dec eax
test eax, eax
jg 0x100a1e8c
mov edx, dword [esi + 0x20]
mov ecx, dword [esi]
mov al, byte [edx + edi]
mov edx, dword [ecx]
mov byte [esp + 0x2c], al
call dword [edx + 0x18]
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x100a2022
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff5
cmp ecx, 3
ja case.default.0x100a1ec7
jmp dword [ecx*4 + 0x100a21b8]
mov ecx, dword [esi + 0x20]
mov ebp, dword [esi + 0x18]
mov edx, ecx
sub edx, ebp
mov dl, byte [edx + edi]
add dl, al
mov byte [ecx + edi], dl
jmp 0x100a1fac
mov ecx, dword [esi + 0x20]
add ecx, edi
add byte [ecx], al
jmp 0x100a1fac
mov ebp, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov edx, ebp
sub edx, ecx
xor ecx, ecx
mov cl, byte [edx + edi]
xor edx, edx
mov dl, byte [edi + ebp]
add ecx, edx
sar ecx, 1
add cl, al
mov byte [edi + ebp], cl
jmp 0x100a1fac
mov ebp, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov eax, ebp
xor edx, edx
sub eax, ecx
xor ebx, ebx
mov bl, byte [edi + ebp]
mov dl, byte [eax + edi]
xor eax, eax
mov al, byte [esp + ecx + 0x2c]
mov ecx, ebx
sub ecx, eax
mov dword [esp + 0x24], eax
add ecx, edx
mov eax, ecx
sub eax, edx
mov dword [esp + 0x20], eax
jns 0x100a1f47
neg eax
mov dword [esp + 0x20], eax
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x10], eax
jns 0x100a1f57
neg eax
mov dword [esp + 0x10], eax
sub ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ecx
jns 0x100a1f67
neg ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jg 0x100a1f82
cmp eax, dword [esp + 0x14]
jg 0x100a1f82
add dl, byte [esp + 0x18]
mov byte [edi + ebp], dl
jmp 0x100a1fac
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ecx
jg 0x100a1f97
add bl, byte [esp + 0x18]
mov byte [edi + ebp], bl
jmp 0x100a1fac
mov al, byte [esp + 0x24]
mov cl, byte [esp + 0x18]
add al, cl
mov byte [edi + ebp], al
jmp 0x100a1fac
mov edx, dword [esi + 0x20]
mov byte [edx + edi], al
mov eax, dword [esi + 0x1c]
inc edi
cmp edi, eax
jl 0x100a1e85
cmp dword [esi + 4], 2
jne 0x100a21a2
mov edx, dword [esi + 0x10]
cmp edx, 1
jne 0x100a2031
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x20]
xor edx, edx
mov dl, byte [eax + ecx - 1]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
mov edi, edx
jge 0x100a21a2
mov ecx, dword [esi + 0x20]
shl edi, 8
mov dl, byte [ecx + eax]
lea ebp, [ecx + eax]
mov ecx, edx
add eax, 8
and ecx, 0xff
or edi, ecx
mov ecx, dword [esi + 0xc]
mov ebx, edi
shr ebx, cl
xor bl, dl
mov byte [ebp], bl
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jl 0x100a1fe3
mov edx, dword [esi + 0x18]
pop edi
mov dword [esi + 0x24], edx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
cmp edi, dword [esi + 0x18]
jg 0x100a1fb8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
cmp edx, 8
jne 0x100a2074
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
cmp eax, ecx
jge 0x100a21a2
mov ecx, dword [esi + 0x20]
mov ebp, dword [esi + 0xc]
mov edx, ecx
mov bl, byte [ecx + eax]
sub edx, ebp
mov dl, byte [edx + eax]
add bl, dl
mov byte [ecx + eax], bl
mov ecx, dword [esi + 0x1c]
inc eax
cmp eax, ecx
jl 0x100a2044
mov edx, dword [esi + 0x18]
pop edi
mov dword [esi + 0x24], edx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
mov ebx, dword [esi + 0xc]
xor eax, eax
lea edi, [esp + 0x2c]
lea ecx, [ebx + 1]
mov ebp, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
xor ebp, ebp
and ecx, 3
mov dword [esp + 0x14], ebp
rep stosb byte es:[edi], al
mov eax, 1
mov ecx, edx
shl eax, cl
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x20], edx
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
xor eax, eax
cmp ecx, edx
jle 0x100a21a2
test ebx, ebx
mov dword [esp + 0x10], 0
jle 0x100a2167
mov edi, dword [esi + 0x10]
cmp edx, edi
jge 0x100a2100
mov edx, dword [esi + 0x20]
mov ecx, dword [esp + 0x24]
xor ebx, ebx
mov bl, byte [edx + ecx]
mov edx, dword [esp + 0x14]
shl edx, 8
or ebx, edx
mov edx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ecx
add edx, 8
mov ebx, dword [esp + 0x10]
mov ecx, edx
mov edx, dword [esp + 0x14]
sub ecx, edi
shr edx, cl
add ebp, edi
add dl, byte [esp + ebx + 0x2c]
mov bl, byte [esp + 0x28]
and dl, bl
mov ebx, dword [esp + 0x10]
mov byte [esp + ebx + 0x2c], dl
mov edx, ecx
mov ecx, edi
mov dword [esp + 0x20], edx
shl eax, cl
xor ecx, ecx
mov cl, byte [esp + ebx + 0x2c]
or eax, ecx
cmp ebp, 8
jl 0x100a2153
mov edi, dword [esp + 0x18]
lea ecx, [ebp - 8]
mov ebx, eax
shr ebx, cl
mov ecx, dword [esi + 0x20]
inc edi
mov dword [esp + 0x18], edi
sub ebp, 8
mov byte [ecx + edi - 1], bl
mov ecx, dword [esp + 0x10]
mov ebx, dword [esi + 0xc]
inc ecx
cmp ecx, ebx
mov dword [esp + 0x10], ecx
jl 0x100a20d4
mov ecx, dword [esp + 0x1c]
mov edi, dword [esi + 8]
inc ecx
cmp ecx, edi
mov dword [esp + 0x1c], ecx
jl 0x100a20c4
test ebp, ebp
jle 0x100a21a2
mov edi, 8
mov bl, byte [esp + 0x14]
sub edi, ebp
mov dl, 1
mov ecx, edi
shl dl, cl
shl al, cl
mov ecx, dword [esp + 0x18]
dec dl
and dl, bl
add dl, al
mov eax, dword [esi + 0x20]
mov byte [eax + ecx], dl
mov edx, dword [esi + 0x18]
pop edi
mov dword [esi + 0x24], edx
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret