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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x1c]
mov eax, ecx
not eax
cmp ebx, 0x40
jb 0x4224ea
nop dword [eax + eax]
movzx ecx, byte [edx + 0xe]
mov esi, eax
mov dword [esp + 4], ebx
mov ebx, eax
movzx ebp, ah
movzx edi, byte [edx + 0xf]
shr esi, 0x18
shr ebx, 0x10
mov dword [esp], ecx
movzx ecx, al
mov eax, dword [esp]
mov eax, dword [eax*4 + 0x8ae878]
xor eax, dword [edi*4 + 0x8ae478]
movzx edi, byte [edx + 0xd]
xor eax, dword [edi*4 + 0x8aec78]
movzx edi, byte [edx + 0xc]
xor eax, dword [edi*4 + 0x8af078]
movzx edi, byte [edx + 0xb]
xor eax, dword [edi*4 + 0x8af478]
movzx edi, byte [edx + 0xa]
xor eax, dword [edi*4 + 0x8af878]
movzx edi, byte [edx + 9]
xor eax, dword [edi*4 + 0x8afc78]
movzx edi, byte [edx + 8]
xor eax, dword [edi*4 + 0x8b0078]
movzx edi, byte [edx + 7]
xor eax, dword [edi*4 + 0x8b0478]
movzx edi, byte [edx + 6]
xor eax, dword [edi*4 + 0x8b0878]
movzx edi, byte [edx + 5]
xor eax, dword [edi*4 + 0x8b0c78]
movzx edi, byte [edx + 4]
xor eax, dword [edi*4 + 0x8b1078]
movzx edi, byte [edx + 3]
xor esi, edi
movzx edi, bl
xor eax, dword [esi*4 + 0x8b1478]
movzx esi, byte [edx + 2]
xor edi, esi
movzx esi, byte [edx + 1]
xor eax, dword [edi*4 + 0x8b1878]
xor ebp, esi
movzx esi, byte [edx]
xor eax, dword [ebp*4 + 0x8b1c78]
xor esi, ecx
movzx ecx, byte [edx + 0x1f]
xor eax, dword [esi*4 + 0x8b2078]
movzx esi, byte [edx + 0x1e]
mov dword [esp], ecx
mov ebx, eax
mov edi, eax
movzx ebp, ah
movzx ecx, al
mov eax, dword [esi*4 + 0x8ae878]
mov esi, dword [esp]
shr edi, 0x18
shr ebx, 0x10
xor eax, dword [esi*4 + 0x8ae478]
movzx esi, byte [edx + 0x1d]
xor eax, dword [esi*4 + 0x8aec78]
movzx esi, byte [edx + 0x1c]
xor eax, dword [esi*4 + 0x8af078]
movzx esi, byte [edx + 0x1b]
xor eax, dword [esi*4 + 0x8af478]
movzx esi, byte [edx + 0x1a]
xor eax, dword [esi*4 + 0x8af878]
movzx esi, byte [edx + 0x19]
xor eax, dword [esi*4 + 0x8afc78]
movzx esi, byte [edx + 0x18]
xor eax, dword [esi*4 + 0x8b0078]
movzx esi, byte [edx + 0x17]
xor eax, dword [esi*4 + 0x8b0478]
movzx esi, byte [edx + 0x16]
xor eax, dword [esi*4 + 0x8b0878]
movzx esi, byte [edx + 0x15]
xor eax, dword [esi*4 + 0x8b0c78]
movzx esi, byte [edx + 0x14]
xor eax, dword [esi*4 + 0x8b1078]
movzx esi, byte [edx + 0x13]
xor edi, esi
movzx esi, byte [edx + 0x12]
xor eax, dword [edi*4 + 0x8b1478]
movzx edi, bl
xor edi, esi
movzx esi, byte [edx + 0x11]
xor eax, dword [edi*4 + 0x8b1878]
xor ebp, esi
movzx esi, byte [edx + 0x10]
xor eax, dword [ebp*4 + 0x8b1c78]
xor esi, ecx
movzx ecx, byte [edx + 0x2f]
xor eax, dword [esi*4 + 0x8b2078]
movzx esi, byte [edx + 0x2e]
mov dword [esp], ecx
mov ebx, eax
mov edi, eax
movzx ebp, ah
movzx ecx, al
mov eax, dword [esi*4 + 0x8ae878]
mov esi, dword [esp]
shr edi, 0x18
shr ebx, 0x10
xor eax, dword [esi*4 + 0x8ae478]
movzx esi, byte [edx + 0x2d]
xor eax, dword [esi*4 + 0x8aec78]
movzx esi, byte [edx + 0x2c]
xor eax, dword [esi*4 + 0x8af078]
movzx esi, byte [edx + 0x2b]
xor eax, dword [esi*4 + 0x8af478]
movzx esi, byte [edx + 0x2a]
xor eax, dword [esi*4 + 0x8af878]
movzx esi, byte [edx + 0x29]
xor eax, dword [esi*4 + 0x8afc78]
movzx esi, byte [edx + 0x28]
xor eax, dword [esi*4 + 0x8b0078]
movzx esi, byte [edx + 0x27]
xor eax, dword [esi*4 + 0x8b0478]
movzx esi, byte [edx + 0x26]
xor eax, dword [esi*4 + 0x8b0878]
movzx esi, byte [edx + 0x25]
xor eax, dword [esi*4 + 0x8b0c78]
movzx esi, byte [edx + 0x24]
xor eax, dword [esi*4 + 0x8b1078]
movzx esi, byte [edx + 0x23]
xor edi, esi
movzx esi, byte [edx + 0x22]
xor eax, dword [edi*4 + 0x8b1478]
movzx edi, bl
xor edi, esi
movzx esi, byte [edx + 0x21]
xor eax, dword [edi*4 + 0x8b1878]
xor ebp, esi
movzx esi, byte [edx + 0x20]
xor eax, dword [ebp*4 + 0x8b1c78]
xor esi, ecx
movzx ecx, byte [edx + 0x3f]
xor eax, dword [esi*4 + 0x8b2078]
movzx esi, byte [edx + 0x3e]
mov dword [esp], ecx
mov ebx, eax
mov edi, eax
movzx ebp, ah
movzx ecx, al
mov eax, dword [esi*4 + 0x8ae878]
mov esi, dword [esp]
shr edi, 0x18
shr ebx, 0x10
xor eax, dword [esi*4 + 0x8ae478]
movzx esi, byte [edx + 0x3d]
xor eax, dword [esi*4 + 0x8aec78]
movzx esi, byte [edx + 0x3c]
xor eax, dword [esi*4 + 0x8af078]
movzx esi, byte [edx + 0x3b]
xor eax, dword [esi*4 + 0x8af478]
movzx esi, byte [edx + 0x3a]
xor eax, dword [esi*4 + 0x8af878]
movzx esi, byte [edx + 0x39]
xor eax, dword [esi*4 + 0x8afc78]
movzx esi, byte [edx + 0x38]
xor eax, dword [esi*4 + 0x8b0078]
movzx esi, byte [edx + 0x37]
xor eax, dword [esi*4 + 0x8b0478]
movzx esi, byte [edx + 0x36]
xor eax, dword [esi*4 + 0x8b0878]
movzx esi, byte [edx + 0x35]
xor eax, dword [esi*4 + 0x8b0c78]
movzx esi, byte [edx + 0x34]
xor eax, dword [esi*4 + 0x8b1078]
movzx esi, byte [edx + 0x33]
xor edi, esi
movzx esi, byte [edx + 0x32]
xor eax, dword [edi*4 + 0x8b1478]
movzx edi, bl
mov ebx, dword [esp + 4]
xor edi, esi
movzx esi, byte [edx + 0x31]
xor eax, dword [edi*4 + 0x8b1878]
add ebx, 0xffffffc0
xor ebp, esi
movzx esi, byte [edx + 0x30]
add edx, 0x40
xor eax, dword [ebp*4 + 0x8b1c78]
xor esi, ecx
xor eax, dword [esi*4 + 0x8b2078]
cmp ebx, 0x3f
ja 0x422190
test ebx, ebx
je 0x422506
nop
movzx ecx, byte [edx]
inc edx
xor cl, al
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x8ae478]
dec ebx
jne 0x4224f0
not eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret