Function at 0x100138b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0x40
neg esi
push 0x1007c780
push dword [ebp + 0xc]
sbb esi, esi
push dword [ebp + 8]
and esi, 0xf
mov dword [ebp + 0x14], esi
call fcn.10013f10
mov edi, eax
mov dword [ebp + 0xc], edx
add esp, 0x10
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0x10]
mov ecx, eax
xor ecx, esi
mov eax, dword [edx + ecx*8]
mov ecx, dword [edx + ecx*8 + 4]
mov edx, edi
mov dword [ebp - 0x20], eax
shrd eax, ecx, 6
rol edx, 1
shr ecx, 6
mov dword [ebp - 0x18], eax
shrd eax, ecx, 6
mov dword [ebp - 0x1c], edx
shr ecx, 6
mov dword [ebp - 0x30], eax
shrd eax, ecx, 6
ror edx, 4
mov dword [ebp - 0x28], eax
shr ecx, 6
shrd eax, ecx, 6
mov dword [ebp - 0x14], edx
mov edi, eax
shr ecx, 6
shrd edi, ecx, 6
ror edx, 4
shr ecx, 6
mov ebx, edx
mov dword [ebp - 0x38], eax
ror ebx, 4
mov dword [ebp - 0x24], ebx
ror ebx, 4
mov dword [ebp - 0x2c], edx
mov edx, edi
shrd edx, ecx, 6
mov dword [ebp - 0x34], ebx
shr ecx, 6
mov eax, edx
mov dword [ebp - 0xc], ecx
ror ebx, 4
mov esi, ebx
mov dword [ebp - 0x10], edi
mov edi, dword [ebp - 0xc]
xor ebx, dword [ebp - 0x10]
shrd eax, edi, 6
ror esi, 4
and ebx, 0x3f
mov ecx, esi
xor esi, edx
ror ecx, 4
and esi, 0x3f
xor ecx, eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x18]
and ecx, 0x3f
and eax, 0x3f
mov ecx, dword [ecx*4 + 0x1007c828]
or ecx, dword [esi*4 + 0x1007c928]
or ecx, dword [ebx*4 + 0x1007ca28]
xor ebx, ebx
or ecx, dword [eax*4 + 0x1007ce28]
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 0x20]
and eax, 0x3f
or ebx, dword [ebp - 4]
or ecx, dword [eax*4 + 0x1007cf28]
mov eax, dword [ebp - 0x24]
xor eax, dword [ebp - 0x28]
and eax, 0x3f
or ecx, dword [eax*4 + 0x1007cc28]
mov eax, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x30]
and eax, 0x3f
or ecx, dword [eax*4 + 0x1007cd28]
mov eax, dword [ebp - 0x34]
xor eax, dword [ebp - 0x38]
and eax, 0x3f
or ecx, dword [eax*4 + 0x1007cb28]
mov eax, dword [ebp + 0xc]
xor eax, ecx
xor ebx, 0
mov dword [ebp + 0xc], ebx
mov esi, dword [ebp + 0x14]
mov edi, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x10
jl 0x100138e8
xorps xmm0, xmm0
mov dword [ebp - 8], 0x10
movlpd qword [ebp - 0x3c], xmm0
xor esi, esi
mov eax, dword [ebp - 0x3c]
mov edx, 0x1007c7bd
or esi, edi
mov dword [ebp + 0xc], edx
mov edi, dword [ebp - 0x38]
mov dword [ebp + 0x14], eax
movzx ecx, byte [edx + 2]
mov eax, ebx
and eax, 1
xor edx, edx
call fcn.10001726
or dword [ebp + 0x14], eax
or edi, edx
mov eax, dword [ebp + 0xc]
xor edx, edx
shrd ebx, esi, 1
shr esi, 1
movzx ecx, byte [eax + 1]
mov eax, ebx
and eax, 1
call fcn.10001726
or dword [ebp + 0x14], eax
or edi, edx
mov ecx, dword [ebp + 0xc]
xor edx, edx
shrd ebx, esi, 1
mov eax, ebx
shr esi, 1
movzx ecx, byte [ecx]
and eax, 1
call fcn.10001726
or dword [ebp + 0x14], eax
or edi, edx
mov eax, dword [ebp + 0xc]
xor edx, edx
shrd ebx, esi, 1
shr esi, 1
movzx ecx, byte [eax - 1]
mov eax, ebx
and eax, 1
call fcn.10001726
mov ecx, dword [ebp + 0x14]
or edi, edx
mov edx, dword [ebp + 0xc]
or ecx, eax
shrd ebx, esi, 1
sub edx, 4
mov dword [ebp + 0x14], ecx
shr esi, 1
sub dword [ebp - 8], 1
mov dword [ebp + 0xc], edx
jne 0x10013a31
mov edx, edi
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret