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

Disassembly:
test edx, edx
jne 0x10021da6
xor eax, eax
ret
jmp 0x10021dac
push ebx
push esi
mov esi, dword [esp + 0xc]
mov ebx, ecx
not ebx
test esi, esi
je 0x10021dd7
test dl, 3
je 0x10021dd7
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x1003fba0]
inc edx
sub esi, 1
jne 0x10021dba
push edi
cmp esi, 0x20
jb 0x10021fbe
push ebp
mov ebp, esi
shr ebp, 5
xor ebx, dword [edx]
add edx, 4
mov eax, ebx
mov dword [esp + 0x14], edx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edi, dword [esp + 0x14]
mov edx, dword [ecx*4 + 0x1003ffa0]
xor edx, dword [eax*4 + 0x100403a0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x1003fba0]
movzx eax, bl
xor edx, dword [eax*4 + 0x100407a0]
xor edx, dword [edi]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x1003ffa0]
xor ebx, dword [eax*4 + 0x100403a0]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x1003fba0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x100407a0]
xor ebx, dword [edi + 4]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x1003ffa0]
xor edx, dword [eax*4 + 0x100403a0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x1003fba0]
movzx eax, bl
xor edx, dword [eax*4 + 0x100407a0]
xor edx, dword [edi + 8]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x1003ffa0]
xor ebx, dword [eax*4 + 0x100403a0]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x1003fba0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x100407a0]
xor ebx, dword [edi + 0xc]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x1003ffa0]
xor edx, dword [eax*4 + 0x100403a0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x1003fba0]
movzx eax, bl
xor edx, dword [eax*4 + 0x100407a0]
xor edx, dword [edi + 0x10]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x1003ffa0]
xor ebx, dword [eax*4 + 0x100403a0]
sub esi, 0x20
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x1003fba0]
movzx eax, dl
xor ebx, dword [eax*4 + 0x100407a0]
xor ebx, dword [edi + 0x14]
mov eax, ebx
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov edx, dword [ecx*4 + 0x1003ffa0]
xor edx, dword [eax*4 + 0x100403a0]
mov eax, ebx
shr eax, 0x18
xor edx, dword [eax*4 + 0x1003fba0]
movzx eax, bl
xor edx, dword [eax*4 + 0x100407a0]
xor edx, dword [edi + 0x18]
add edi, 0x1c
mov eax, edx
mov dword [esp + 0x14], edi
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ebx, dword [ecx*4 + 0x1003ffa0]
xor ebx, dword [eax*4 + 0x100403a0]
mov eax, edx
shr eax, 0x18
xor ebx, dword [eax*4 + 0x1003fba0]
movzx eax, dl
mov edx, edi
xor ebx, dword [eax*4 + 0x100407a0]
sub ebp, 1
jne 0x10021de7
pop ebp
cmp esi, 4
jb 0x1002200b
mov edi, esi
shr edi, 2
xor ebx, dword [edx]
sub esi, 4
mov eax, ebx
add edx, 4
shr eax, 0x10
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x1003ffa0]
xor ecx, dword [eax*4 + 0x100403a0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x1003fba0]
movzx eax, bl
xor ecx, dword [eax*4 + 0x100407a0]
mov ebx, ecx
sub edi, 1
jne 0x10021fc8
pop edi
test esi, esi
je 0x10022028
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x1003fba0]
inc edx
sub esi, 1
jne 0x10022010
not ebx
pop esi
mov eax, ebx
pop ebx
ret