Function at 0x10146440
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x1c
mov eax, dword [0x1021e964]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov byte [ebx], 0
mov esi, dword [esp + 0x38]
push edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0xa
mov ecx, dword [edi]
xor ecx, dword [esi]
mov eax, dword [edi + 4]
xor eax, dword [esi + 4]
mov dword [ebp], ecx
mov dword [ebp + 4], eax
mov edx, dword [esi + 8]
xor edx, dword [edi + 8]
movzx eax, byte [ebx]
mov ecx, dword [esi + 0xc]
add eax, eax
xor ecx, dword [edi + 0xc]
mov dword [ebp + eax*8 + 8], edx
mov dword [ebp + eax*8 + 0xc], ecx
movzx eax, byte [ebx]
movups xmm0, xmmword [0x1021c340]
inc eax
add eax, eax
movups xmmword [ebp + eax*8], xmm0
movzx eax, byte [ebx]
movups xmm0, xmmword [0x1021c330]
add eax, 2
add eax, eax
movups xmmword [ebp + eax*8], xmm0
movzx esi, byte [ebx]
lea eax, [esi + 2]
add eax, eax
mov edx, dword [ebp + eax*8]
mov ecx, dword [ebp + eax*8 + 4]
lea eax, [esi + 3]
xor edx, dword [edi]
add eax, eax
xor ecx, dword [edi + 4]
mov dword [ebp + eax*8], edx
mov dword [ebp + eax*8 + 4], ecx
movzx edx, byte [ebx]
shl edx, 4
add edx, ebp
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
xor eax, dword [edi + 0xc]
xor ecx, dword [edi + 8]
mov dword [edx + 0x38], ecx
mov dword [edx + 0x3c], eax
movzx esi, byte [ebx]
lea eax, [esi + 1]
add eax, eax
mov edx, dword [ebp + eax*8]
mov ecx, dword [ebp + eax*8 + 4]
lea eax, [esi + 4]
xor edx, dword [edi]
add eax, eax
xor ecx, dword [edi + 4]
mov esi, ebx
mov dword [ebp + eax*8], edx
mov dword [ebp + eax*8 + 4], ecx
movzx edx, byte [esi]
shl edx, 4
add edx, ebp
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x1c]
xor ecx, dword [edi + 8]
xor eax, dword [edi + 0xc]
mov dword [edx + 0x48], ecx
mov dword [edx + 0x4c], eax
mov eax, dword [esp + 0x3c]
movups xmm1, xmmword [edi]
movups xmm0, xmmword [eax]
pxor xmm1, xmm0
mov bl, byte [esi]
movups xmm0, xmmword [eax]
movzx ecx, byte [esi]
shr bl, 3
dec bl
shl ecx, 4
and bl, 1
pxor xmm1, xmm0
shl bl, 3
movzx edi, bl
shl edi, 4
add edi, ebp
lea eax, [edi + 0x40]
push eax
lea eax, [ebp + 0x40]
add eax, ecx
push eax
lea eax, [ebp + 0x30]
add eax, ecx
push eax
call fcn.10146ba0
movzx ecx, byte [esi]
lea eax, [edi + 0x30]
push eax
shl ecx, 4
lea eax, [ebp + 0x30]
add eax, ecx
push eax
lea eax, [ebp + 0x20]
add eax, ecx
push eax
call fcn.10146ba0
movzx ecx, byte [esi]
lea eax, [edi + 0x20]
push eax
shl ecx, 4
lea eax, [ebp + 0x20]
add eax, ecx
push eax
lea eax, [ebp + 0x10]
add eax, ecx
push eax
call fcn.10146ba0
movzx ecx, byte [esi]
lea eax, [edi + 0x10]
shl ecx, 4
add ecx, ebp
push eax
lea eax, [ecx + 0x10]
push eax
push ecx
call fcn.10146ba0
movzx esi, byte [esi]
movaps xmm0, xmm1
shl esi, 4
add esi, ebp
psrldq xmm0, 4
movd eax, xmm0
movaps xmm0, xmm1
movd edx, xmm1
psrldq xmm0, 8
mov ecx, dword [esi + 4]
xor edx, dword [esi]
xor ecx, eax
mov dword [esp + 0x48], edx
movd edx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 0xc
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0xc]
xor edx, dword [esi + 8]
movd eax, xmm0
push edi
mov dword [esp + 0x54], edx
xor ecx, eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esi + 0x40]
mov dword [esp + 0x5c], ecx
push eax
call fcn.10146ba0
mov esi, dword [esp + 0x4c]
add esp, 0x3c
sub dword [esp + 0x14], 1
mov eax, dword [esp + 0x3c]
mov byte [esi], bl
jne 0x10146548
pop edi
xorps xmm0, xmm0
pop esi
movlpd qword [esp + 0x10], xmm0
pop ebp
movlpd qword [esp + 0x14], xmm0
mov ecx, dword [esp + 0x1c]
pop ebx
xor ecx, esp
call fcn.1018d760
add esp, 0x1c
ret