Function at 0x404fc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x425004]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.qpie7r4fl3nb54fy879w8s6d508273h4gfd87aytsdb]
mov eax, dword [0x4239d0]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
movups xmm0, xmmword [0x4239b8]
cmovne eax, esi
mov dword [ebp - 0x3c], ecx
mov esi, edx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], eax
movups xmmword [ebp - 0x20], xmm0
movq xmm0, qword [0x4239c8]
movq qword [ebp - 0x10], xmm0
test esi, esi
je 0x4052b2
push edi
push esi
call fcn.0040e3c5
push esi
push dword [ebp - 0x3c]
mov edi, eax
push edi
call fcn.00406d00
add esp, 0x10
cmp esi, 0x19
jle 0x405273
mov edx, dword [ebp - 0x38]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x38], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405048
sub ecx, dword [ebp - 0x38]
sub esp, 0xc
push ecx
push edx
mov edx, esi
mov ecx, edi
call fcn.00404e80
add esp, 0x14
test eax, eax
je 0x405273
lea ecx, [esi - 1]
nop
mov al, byte [ecx + edi - 1]
xor byte [ecx + edi], al
dec ecx
test ecx, ecx
jg 0x405070
xorps xmm3, xmm3
lea eax, [edi + 5]
xorps xmm2, xmm2
mov ecx, 2
nop word [eax + eax]
movd xmm1, dword [eax - 4]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea eax, [eax + 8]
punpcklwd xmm1, xmm0
pxor xmm3, xmm1
movd xmm1, dword [eax - 8]
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
sub ecx, 1
jne 0x405090
pxor xmm2, xmm3
mov eax, 0x66666667
movaps xmm0, xmm2
sub esp, 0xc
psrldq xmm0, 8
pxor xmm2, xmm0
movups xmm0, xmm2
psrldq xmm0, 4
pxor xmm2, xmm0
movd ecx, xmm2
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [esi - 0x11]
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
lea eax, [edi + 1]
add ecx, 6
push ecx
push eax
lea ecx, [edi + 0x11]
call fcn.00404e80
lea edx, [esi - 0x19]
add esp, 0x14
lea esi, [edi + 0x19]
test esi, esi
jne 0x40511f
xor eax, eax
jmp 0x40520d
test edx, edx
jne 0x405131
mov edx, esi
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405128
sub edx, ecx
mov eax, 0xffffffff
cmp edx, 8
jb 0x4051ed
mov ebx, edx
shr ebx, 3
movzx ecx, byte [esi]
sub edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x423540]
movzx ecx, byte [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x423540]
movzx ecx, byte [esi + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x423540]
movzx ecx, byte [esi + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x423540]
movzx ecx, byte [esi + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x423540]
movzx ecx, byte [esi + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x423540]
movzx ecx, byte [esi + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x423540]
movzx ecx, byte [esi + 7]
add esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x423540]
sub ebx, 1
jne 0x405144
mov ebx, dword [ebp - 0x40]
test edx, edx
je 0x40520b
movzx ecx, byte [esi]
lea esi, [esi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x423540]
sub edx, 1
jne 0x4051f1
not eax
cmp eax, dword [edi + 0x11]
jne 0x405273
mov esi, dword [edi + 0x15]
lea eax, [ebp - 0x34]
test ebx, ebx
mov dword [ebp - 0x34], 0
cmovne eax, ebx
xor ecx, ecx
mov ebx, eax
mov eax, esi
add eax, 0x3e9
setb cl
neg ecx
or ecx, eax
push ecx
push dword [ebx]
call fcn.00407280
xor edx, edx
mov dword [ebx], eax
mov ecx, esi
add ecx, 1
setb dl
neg edx
or edx, ecx
push edx
push eax
call fcn.00407280
mov dword [ebx], eax
add esp, 0x10
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x405275
push eax
call fcn.004087f6
add esp, 4
mov dword [ebp - 0x34], 0
jmp 0x405275
xor esi, esi
test edi, edi
je 0x405282
push edi
call fcn.004087f6
add esp, 4
pop edi
test esi, esi
jne 0x4052a0
test ebx, ebx
je 0x4052a0
mov eax, dword [ebx]
test eax, eax
je 0x4052a0
push eax
call fcn.004087f6
add esp, 4
mov dword [ebx], 0
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004054b6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.004054b6
mov esp, ebp
pop ebp
ret