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

Disassembly:
push ebx
push esi
push edi
push ebp
not eax
mov ebx, 0x529448
jmp 0x504068
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ebx + esi*4]
xor esi, eax
dec ecx
mov eax, esi
test ecx, ecx
je 0x504071
test dl, 3
jne 0x504051
cmp ecx, 0x20
jb 0x5042c6
xor eax, dword [edx]
lea edi, [ebx + 0xc00]
mov esi, eax
lea ebp, [ebx + 0x800]
and esi, 0xff
add edx, 4
sub ecx, 0x20
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebp + edi*4]
mov edi, eax
shr edi, 0x10
lea ebp, [ebx + 0x400]
and edi, 0xff
shr eax, 0x18
xor esi, dword [ebp + edi*4]
lea edi, [ebx + 0xc00]
lea ebp, [ebx + 0x800]
xor esi, dword [ebx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov esi, eax
and esi, 0xff
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebp + edi*4]
mov edi, eax
shr edi, 0x10
lea ebp, [ebx + 0x400]
and edi, 0xff
shr eax, 0x18
xor esi, dword [ebp + edi*4]
lea edi, [ebx + 0xc00]
lea ebp, [ebx + 0x800]
xor esi, dword [ebx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov esi, eax
and esi, 0xff
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebp + edi*4]
mov edi, eax
shr edi, 0x10
lea ebp, [ebx + 0x400]
and edi, 0xff
shr eax, 0x18
xor esi, dword [ebp + edi*4]
lea edi, [ebx + 0xc00]
lea ebp, [ebx + 0x800]
xor esi, dword [ebx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov esi, eax
and esi, 0xff
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebp + edi*4]
mov edi, eax
shr edi, 0x10
lea ebp, [ebx + 0x400]
and edi, 0xff
shr eax, 0x18
xor esi, dword [ebp + edi*4]
lea edi, [ebx + 0xc00]
lea ebp, [ebx + 0x800]
xor esi, dword [ebx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov esi, eax
and esi, 0xff
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebp + edi*4]
mov edi, eax
shr edi, 0x10
lea ebp, [ebx + 0x400]
and edi, 0xff
shr eax, 0x18
xor esi, dword [ebp + edi*4]
lea edi, [ebx + 0xc00]
lea ebp, [ebx + 0x800]
xor esi, dword [ebx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov esi, eax
and esi, 0xff
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebp + edi*4]
mov edi, eax
shr edi, 0x10
lea ebp, [ebx + 0x400]
and edi, 0xff
shr eax, 0x18
xor esi, dword [ebp + edi*4]
lea edi, [ebx + 0xc00]
lea ebp, [ebx + 0x800]
xor esi, dword [ebx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov esi, eax
and esi, 0xff
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebp + edi*4]
mov edi, eax
shr edi, 0x10
lea ebp, [ebx + 0x400]
and edi, 0xff
shr eax, 0x18
xor esi, dword [ebp + edi*4]
lea edi, [ebx + 0xc00]
lea ebp, [ebx + 0x800]
xor esi, dword [ebx + eax*4]
mov eax, esi
xor eax, dword [edx]
add edx, 4
mov esi, eax
and esi, 0xff
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebp + edi*4]
mov edi, eax
shr edi, 0x10
lea ebp, [ebx + 0x400]
and edi, 0xff
shr eax, 0x18
xor esi, dword [ebp + edi*4]
xor esi, dword [ebx + eax*4]
cmp ecx, 0x20
mov eax, esi
jae 0x50407a
cmp ecx, 4
jb 0x50431b
xor eax, dword [edx]
lea edi, [ebx + 0xc00]
mov esi, eax
lea ebp, [ebx + 0x800]
and esi, 0xff
add edx, 4
sub ecx, 4
mov esi, dword [edi + esi*4]
mov edi, eax
shr edi, 8
and edi, 0xff
xor esi, dword [ebp + edi*4]
mov edi, eax
shr edi, 0x10
lea ebp, [ebx + 0x400]
and edi, 0xff
shr eax, 0x18
xor esi, dword [ebp + edi*4]
xor esi, dword [ebx + eax*4]
cmp ecx, 4
mov eax, esi
jae 0x5042cb
test ecx, ecx
je 0x504338
movzx esi, byte [edx]
xor esi, eax
inc edx
and esi, 0xff
shr eax, 8
mov esi, dword [ebx + esi*4]
xor esi, eax
dec ecx
mov eax, esi
jne 0x50431f
not eax
pop ebp
pop edi
pop esi
pop ebx
ret