Function at 0x100faf50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
xor eax, dword [ecx + 0x1400]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
xor eax, dword [ecx + 0x1408]
mov dword [esp + 0x1c], eax
shr eax, 8
movzx edx, al
push ebx
mov ebx, dword [esp + 0x1c]
xor ebx, dword [ecx + 0x1404]
push ebp
lea ebp, [ecx + 0x1400]
mov eax, ebx
shr eax, 0x10
movzx eax, al
push esi
mov esi, dword [ecx + edx*4 + 0x800]
push edi
xor esi, dword [ecx + eax*4 + 0x400]
mov edi, dword [esp + 0x30]
xor edi, dword [ebp + 0xc]
mov edx, edi
mov dword [esp + 0x30], edi
movzx eax, dl
xor esi, dword [ecx + eax*4 + 0xc00]
mov eax, dword [esp + 0x24]
shr eax, 0x18
xor esi, dword [ecx + eax*4]
mov eax, edx
shr eax, 8
movzx edx, al
mov eax, dword [esp + 0x2c]
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx + edx*4 + 0x800]
xor esi, dword [ebp + 0x10]
mov dword [esp + 0x14], esi
xor edx, dword [ecx + eax*4 + 0x400]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
movzx eax, dl
xor edi, dword [ecx + eax*4 + 0xc00]
mov eax, ebx
shr eax, 0x18
xor edi, dword [ecx + eax*4]
mov eax, edi
mov dword [esp + 0x28], edi
xor eax, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov eax, edx
shr eax, 8
movzx edx, al
mov eax, dword [esp + 0x30]
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx + edx*4 + 0x800]
xor edx, dword [ecx + eax*4 + 0x400]
movzx eax, bl
shr ebx, 8
xor edx, dword [ecx + eax*4 + 0xc00]
mov eax, dword [esp + 0x2c]
shr eax, 0x18
xor edx, dword [ecx + eax*4]
xor edx, dword [ebp + 0x18]
mov eax, dword [esp + 0x24]
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x10], edx
movzx edx, bl
mov ebx, dword [ecx + edx*4 + 0x800]
xor ebx, dword [ecx + eax*4 + 0x400]
mov eax, dword [esp + 0x2c]
movzx eax, al
xor ebx, dword [ecx + eax*4 + 0xc00]
mov eax, dword [esp + 0x30]
shr eax, 0x18
xor ebx, dword [ecx + eax*4]
xor ebx, dword [ebp + 0x1c]
mov dword [esp + 0x24], ebx
mov eax, dword [ecx + 0x14f0]
add ebp, 0x20
sar eax, 1
sub eax, 1
mov dword [esp + 0x1c], eax
je 0x100fb2ba
mov eax, dword [esp + 0x10]
shr eax, 8
movzx edx, al
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx + edx*4 + 0x800]
xor edx, dword [ecx + eax*4 + 0x400]
movzx eax, bl
mov ebx, dword [esp + 0x14]
xor edx, dword [ecx + eax*4 + 0xc00]
mov eax, ebx
shr eax, 0x18
xor edx, dword [ecx + eax*4]
xor edx, dword [ebp]
mov eax, dword [esp + 0x24]
shr eax, 8
mov dword [esp + 0x30], edx
movzx edx, al
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx + edx*4 + 0x800]
xor edx, dword [ecx + eax*4 + 0x400]
movzx eax, bl
xor edx, dword [ecx + eax*4 + 0xc00]
mov eax, dword [esp + 0x28]
shr eax, 0x18
xor edx, dword [ecx + eax*4]
mov eax, ebx
xor edx, dword [ebp + 4]
shr eax, 8
mov dword [esp + 0x18], edx
movzx edx, al
mov eax, dword [esp + 0x24]
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx + edx*4 + 0x800]
shr ebx, 0x10
xor edx, dword [ecx + eax*4 + 0x400]
mov eax, dword [esp + 0x28]
movzx eax, al
xor edx, dword [ecx + eax*4 + 0xc00]
mov eax, dword [esp + 0x10]
shr eax, 0x18
xor edx, dword [ecx + eax*4]
xor edx, dword [ebp + 8]
mov eax, dword [esp + 0x28]
shr eax, 8
mov dword [esp + 0x2c], edx
movzx edx, al
movzx eax, bl
mov ebx, dword [ecx + edx*4 + 0x800]
xor ebx, dword [ecx + eax*4 + 0x400]
mov eax, dword [esp + 0x10]
movzx eax, al
xor ebx, dword [ecx + eax*4 + 0xc00]
mov eax, dword [esp + 0x24]
shr eax, 0x18
xor ebx, dword [ecx + eax*4]
mov eax, dword [esp + 0x2c]
xor ebx, dword [ebp + 0xc]
shr eax, 8
movzx edx, al
mov eax, dword [esp + 0x18]
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx + edx*4 + 0x800]
xor edx, dword [ecx + eax*4 + 0x400]
movzx eax, bl
xor edx, dword [ecx + eax*4 + 0xc00]
mov eax, dword [esp + 0x30]
shr eax, 0x18
xor edx, dword [ecx + eax*4]
mov eax, ebx
xor edx, dword [ebp + 0x10]
shr eax, 8
mov dword [esp + 0x14], edx
movzx edx, al
mov eax, dword [esp + 0x2c]
shr eax, 0x10
mov edx, dword [ecx + edx*4 + 0x800]
movzx eax, al
xor edx, dword [ecx + eax*4 + 0x400]
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x28]
movzx eax, dl
xor esi, dword [ecx + eax*4 + 0xc00]
mov eax, dword [esp + 0x18]
mov edi, esi
shr eax, 0x18
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x2c]
shr esi, 0x18
xor edi, dword [ecx + eax*4]
mov eax, edi
mov dword [esp + 0x28], edi
xor eax, dword [ebp + 0x14]
mov dword [esp + 0x28], eax
mov eax, edx
shr eax, 8
movzx edx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 0x18
mov edx, dword [ecx + edx*4 + 0x800]
xor edx, dword [ecx + eax*4 + 0x400]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x10]
movzx eax, dl
shr edx, 8
movzx edx, dl
xor edi, dword [ecx + eax*4 + 0xc00]
xor edi, dword [ecx + esi*4]
mov edx, dword [ecx + edx*4 + 0x800]
mov eax, edi
xor eax, dword [ebp + 0x18]
mov dword [esp + 0x10], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x30]
shr eax, 0x10
movzx eax, al
xor edx, dword [ecx + eax*4 + 0x400]
mov eax, dword [esp + 0x2c]
movzx eax, al
xor edx, dword [ecx + eax*4 + 0xc00]
xor edx, dword [ecx + ebx*4]
xor edx, dword [ebp + 0x1c]
add ebp, 0x20
sub dword [esp + 0x1c], 1
mov ebx, edx
mov dword [esp + 0x24], edx
jne 0x100fb0a2
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x34]
mov edx, dword [ecx + eax*4 + 0x1000]
mov eax, dword [esp + 0x10]
and edx, 0xff0000
shr eax, 8
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x1000]
and eax, 0xff00
xor edx, eax
mov eax, ebx
shr eax, 0x18
mov eax, dword [ecx + eax*4 + 0x1000]
and eax, 0xff000000
xor edx, eax
mov eax, dword [esp + 0x24]
movzx eax, al
movzx eax, byte [ecx + eax*4 + 0x1000]
xor edx, eax
xor edx, dword [ebp]
mov eax, edx
mov byte [esi + 3], dl
shr eax, 0x18
mov byte [esi], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, edx
shr eax, 8
mov byte [esi + 2], al
mov eax, dword [esp + 0x10]
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx + eax*4 + 0x1000]
mov eax, dword [esp + 0x24]
and edx, 0xff0000
shr eax, 8
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x1000]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 0x28]
shr eax, 0x18
mov eax, dword [ecx + eax*4 + 0x1000]
and eax, 0xff000000
xor edx, eax
movzx eax, bl
movzx eax, byte [ecx + eax*4 + 0x1000]
xor edx, eax
xor edx, dword [ebp + 4]
mov eax, edx
mov byte [esi + 7], dl
shr eax, 0x18
mov byte [esi + 4], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 5], al
mov eax, edx
shr eax, 8
mov byte [esi + 6], al
mov eax, dword [esp + 0x24]
shr eax, 0x10
movzx eax, al
mov edx, dword [ecx + eax*4 + 0x1000]
mov eax, ebx
shr eax, 8
and edx, 0xff0000
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x1000]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 0x10]
shr eax, 0x18
mov eax, dword [ecx + eax*4 + 0x1000]
and eax, 0xff000000
xor edx, eax
mov eax, dword [esp + 0x28]
movzx eax, al
movzx eax, byte [ecx + eax*4 + 0x1000]
xor edx, eax
shr ebx, 0x10
xor edx, dword [ebp + 8]
mov eax, edx
mov byte [esi + 0xb], dl
shr eax, 0x18
mov byte [esi + 8], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 9], al
mov eax, edx
shr eax, 8
mov byte [esi + 0xa], al
movzx eax, bl
pop edi
mov edx, dword [ecx + eax*4 + 0x1000]
mov eax, dword [esp + 0x24]
and edx, 0xff0000
shr eax, 8
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x1000]
and eax, 0xff00
xor edx, eax
mov eax, dword [esp + 0x20]
shr eax, 0x18
mov eax, dword [ecx + eax*4 + 0x1000]
and eax, 0xff000000
xor edx, eax
mov eax, dword [esp + 0xc]
movzx eax, al
movzx eax, byte [ecx + eax*4 + 0x1000]
xor edx, eax
xor edx, dword [ebp + 0xc]
mov eax, edx
mov byte [esi + 0xf], dl
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [esi + 0xe], al
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14