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

Disassembly:
mov eax, 0x14
call fcn.10107480
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.1010a7f0
mov dword [esp + 0x1c], eax
mov ecx, eax
mov eax, edx
mov dword [esp + 0x20], edx
test eax, eax
jb 0x100f88bf
ja 0x100f8884
test ecx, ecx
jbe 0x100f88bf
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 0x100f8884
ja 0x100f88bf
cmp dword [esp + 0x14], ecx
jb 0x100f8884
mov edi, dword [esp + 0x38]
xor ebp, ebp
mov eax, 1
mov dword [esp + 0x14], eax
cmp ebp, edi
ja 0x100f8918
jb 0x100f88da
cmp eax, dword [esp + 0x34]
jae 0x100f8918
mov eax, ebx
shl eax, 7
mov dword [esp + 0x10], eax
jmp 0x100f88e9
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x30]
push ecx
push ebx
mov ecx, esi
sub ecx, eax
push esi
call fcn.100f8760
add esp, 0xc
add dword [esp + 0x14], 1
adc ebp, 0
add esi, dword [esp + 0x10]
cmp ebp, edi
jb 0x100f88e5
ja 0x100f8918
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x14], edx
jb 0x100f88e5
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.100f8760
xor eax, eax
add esp, 0xc
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
cmp edi, eax
jb 0x100f8a0b
ja 0x100f8958
cmp dword [esp + 0x34], eax
jbe 0x100f8a0b
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.1010b8f0
imul eax, ebx
shl eax, 7
add eax, dword [esp + 0x44]
xor ecx, ecx
xor edx, edx
test esi, esi
jb 0x100f89cc
ja 0x100f89a0
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jbe 0x100f89cc
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 0x100f89a0
ja 0x100f89c8
mov edi, dword [esp + 0x1c]
cmp ecx, edi
jb 0x100f89a0
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.100f8760
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 0x100f8970
ja 0x100f8a0b
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x34]
jb 0x100f8970
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 0x100f8a55
ja 0x100f8a25
test edx, edx
jbe 0x100f8a55
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 0x100f8a25
ja 0x100f8a55
cmp esi, edx
jb 0x100f8a25
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret