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

Disassembly:
test edx, edx
je 0x403ef7
push ebp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [esp + 0x1c]
not ecx
test edi, edi
je 0x403eeb
mov esi, edx
lea ebp, [edi - 0x20]
xor ebx, ebx
lea eax, [esi + ebx]
test al, 3
je 0x403efc
movzx eax, byte [eax]
movzx edx, cl
shr ecx, 8
inc ebx
dec ebp
xor edx, eax
xor ecx, dword [edx*4 + 0x40a104]
cmp edi, ebx
jne 0x403ecc
not ecx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
mov eax, ecx
ret
xor ecx, ecx
mov eax, ecx
ret
mov edx, edi
sub edx, ebx
cmp edx, 0x20
mov dword [esp + 4], edx
jb 0x404121
xor ecx, dword [eax]
mov dword [esp], eax
movzx edx, ch
movzx eax, cl
mov edx, dword [edx*4 + 0x40a904]
xor edx, dword [eax*4 + 0x40ad04]
mov eax, ecx
shr ecx, 0x18
shr eax, 0xe
and eax, 0x3fc
xor edx, dword [eax + 0x40a504]
mov eax, dword [esp]
xor edx, dword [ecx*4 + 0x40a104]
xor edx, dword [eax + 4]
movzx eax, dh
movzx ecx, dl
mov eax, dword [eax*4 + 0x40a904]
xor eax, dword [ecx*4 + 0x40ad04]
mov ecx, edx
shr edx, 0x18
shr ecx, 0xe
and ecx, 0x3fc
xor eax, dword [ecx + 0x40a504]
mov ecx, dword [esp]
xor eax, dword [edx*4 + 0x40a104]
xor eax, dword [ecx + 8]
movzx edx, ah
movzx ecx, al
mov edx, dword [edx*4 + 0x40a904]
xor edx, dword [ecx*4 + 0x40ad04]
mov ecx, eax
shr eax, 0x18
shr ecx, 0xe
and ecx, 0x3fc
xor edx, dword [ecx + 0x40a504]
xor edx, dword [eax*4 + 0x40a104]
mov eax, dword [esp]
xor edx, dword [eax + 0xc]
movzx eax, dh
movzx ecx, dl
mov eax, dword [eax*4 + 0x40a904]
xor eax, dword [ecx*4 + 0x40ad04]
mov ecx, edx
shr edx, 0x18
shr ecx, 0xe
and ecx, 0x3fc
xor eax, dword [ecx + 0x40a504]
mov ecx, dword [esp]
xor eax, dword [edx*4 + 0x40a104]
xor eax, dword [ecx + 0x10]
movzx edx, ah
movzx ecx, al
mov edx, dword [edx*4 + 0x40a904]
xor edx, dword [ecx*4 + 0x40ad04]
mov ecx, eax
shr eax, 0x18
shr ecx, 0xe
and ecx, 0x3fc
xor edx, dword [ecx + 0x40a504]
xor edx, dword [eax*4 + 0x40a104]
mov eax, dword [esp]
xor edx, dword [eax + 0x14]
movzx eax, dh
movzx ecx, dl
mov eax, dword [eax*4 + 0x40a904]
xor eax, dword [ecx*4 + 0x40ad04]
mov ecx, edx
shr edx, 0x18
shr ecx, 0xe
and ecx, 0x3fc
xor eax, dword [ecx + 0x40a504]
mov ecx, dword [esp]
xor eax, dword [edx*4 + 0x40a104]
xor eax, dword [ecx + 0x18]
movzx edx, ah
movzx ecx, al
mov edx, dword [edx*4 + 0x40a904]
xor edx, dword [ecx*4 + 0x40ad04]
mov ecx, eax
shr eax, 0x18
shr ecx, 0xe
and ecx, 0x3fc
xor edx, dword [ecx + 0x40a504]
xor edx, dword [eax*4 + 0x40a104]
mov eax, dword [esp]
xor edx, dword [eax + 0x1c]
movzx ecx, dh
movzx eax, dl
mov ecx, dword [ecx*4 + 0x40a904]
xor ecx, dword [eax*4 + 0x40ad04]
mov eax, edx
shr edx, 0x18
shr eax, 0xe
and eax, 0x3fc
xor ecx, dword [eax + 0x40a504]
mov eax, dword [esp]
xor ecx, dword [edx*4 + 0x40a104]
mov edx, dword [esp + 4]
add eax, 0x20
add edx, 0xffffffe0
cmp edx, 0x1f
mov dword [esp + 4], edx
ja 0x403f0d
and ebp, 0xffffffe0
sub edi, ebp
add esi, ebp
sub edi, ebx
lea eax, [ebx + esi + 0x20]
add edi, 0xffffffe0
cmp edi, 4
jae 0x40412a
test edi, edi
je 0x403eeb
mov esi, eax
movzx eax, byte [eax]
movzx edx, cl
shr ecx, 8
xor edx, eax
xor ecx, dword [edx*4 + 0x40a104]
dec edi
je 0x403eeb
inc esi
movzx eax, byte [esi]
movzx edx, cl
shr ecx, 8
inc esi
xor edx, eax
xor ecx, dword [edx*4 + 0x40a104]
dec edi
je 0x403eeb
jmp 0x404105
mov edi, dword [esp + 4]
cmp edi, 4
jb 0x4040e1
lea edx, [edi - 4]
mov ebx, eax
mov dword [esp], eax
mov esi, edx
shr esi, 2
mov dword [esp + 4], esi
xor ecx, dword [ebx]
add edi, 0xfffffffc
add ebx, 4
movzx esi, ch
movzx ebp, cl
mov eax, ecx
shr ecx, 0xe
mov esi, dword [esi*4 + 0x40a904]
and ecx, 0x3fc
shr eax, 0x18
xor esi, dword [ebp*4 + 0x40ad04]
xor esi, dword [ecx + 0x40a504]
mov ecx, esi
xor ecx, dword [eax*4 + 0x40a104]
cmp edi, 3
ja 0x40413b
mov eax, dword [esp]
mov esi, dword [esp + 4]
and edx, 3
mov edi, edx
lea eax, [eax + esi*4 + 4]
test edi, edi
je 0x403eeb
jmp 0x4040e9