Function at 0x401250
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x4014b6
cmp dword [edi + 0x18], 0
je 0x4014b6
cmp dword [edi + 0x14], 0
je 0x4014b6
mov eax, dword [edi + 4]
mov ecx, 2
cmp eax, ecx
cmovg eax, ecx
mov dword [0xc0db54], eax
call fcn.0040e670
test eax, eax
jne 0x4014b6
mov eax, dword [edi]
xor esi, esi
mov edx, dword [edi + 0x10]
xor ebp, ebp
mov ecx, dword [edi + 0x18]
imul ebx, eax, 0xd
mov dword [0xc0db58], edx
imul edx, eax
mov dword [0xc79cb8], eax
mov eax, dword [edi + 4]
mov dword [0xc0db50], ecx
mov dword [esp + 0x20], ebx
mov dword [0xc6e470], esi
lea ecx, [eax + eax*2]
mov dword [esp + 0x14], edx
shl ecx, 4
lea eax, [ebx + edx]
mov dword [esp + 0x18], ecx
mov ebx, dword [0xc0db54]
mov dword [esp + 0x10], eax
xor eax, eax
cmp ebx, 2
jb 0x40131d
lea edx, [ebx - 2]
shr edx, 1
lea ecx, [edi + 0xc]
inc edx
lea eax, [edx + edx]
mov dword [esp + 0x1c], eax
mov eax, dword [ecx - 4]
lea ecx, [ecx + 8]
lea eax, [eax + eax*2]
lea esi, [esi + eax*4]
mov eax, dword [ecx - 8]
lea eax, [eax + eax*2]
lea ebp, [ebp + eax*4]
sub edx, 1
jne 0x4012f6
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jae 0x401337
mov eax, dword [edi + eax*4 + 8]
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*2]
lea edx, [edx + eax*4]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x14]
lea eax, [esi + ebp]
mov esi, dword [esp + 0x20]
add eax, dword [esp + 0x10]
add esi, dword [0xc0db50]
add eax, ecx
mov dword [edi + 0x14], eax
add esi, edx
movups xmm0, xmmword [edi]
push ecx
mov ebp, esi
mov dword [esp + 0x24], esi
movups xmmword [0xc65b60], xmm0
push 0
movq xmm0, qword [edi + 0x10]
movq qword [0xc65b70], xmm0
mov eax, dword [edi + 0x18]
mov dword [0xc65b78], eax
mov eax, esi
push eax
mov dword [0xc0db4c], ebp
add esi, ecx
call fcn.0046e200
add esp, 0xc
mov dword [0xc79cbc], 0
mov dword [0xc6e440], 1
mov dword [0xc6e400], 0xffffffff
mov dword [0xc79cc0], 0
mov dword [0xc76c80], 0
test ebx, ebx
je 0x4013ef
mov ecx, ebp
lea edx, [edi + 8]
add ecx, 0x10
mov dword [ecx - 0x10], esi
xorps xmm0, xmm0
mov eax, dword [edx]
lea edx, [edx + 4]
lea ecx, [ecx + 0x30]
movups xmmword [ecx - 0x3c], xmm0
lea eax, [eax + eax*2]
lea esi, [esi + eax*4]
mov eax, dword [edx - 4]
mov dword [ecx - 0x30], eax
movups xmmword [ecx - 0x2c], xmm0
sub ebx, 1
jne 0x4013c8
mov dword [0xc65b7c], 0x4d2
xor esi, esi
mov dword [0xc79cb4], ebp
mov dword [0xc6e474], 0
nop dword [eax + eax]
mov ecx, esi
shl ecx, 0x18
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
lea eax, [ecx + ecx]
mov edx, eax
xor edx, 0x4c11db7
test ecx, ecx
cmovns edx, eax
lea eax, [edx + edx]
mov ecx, eax
xor ecx, 0x4c11db7
test edx, edx
cmovns ecx, eax
mov dword [esi*4 + 0x793bb8], ecx
inc esi
cmp esi, 0x100
jl 0x401410
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret