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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
not eax
je 0x595658
test cl, 3
je 0x595658
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x7c70f4]
xor eax, edx
inc ecx
dec edi
jne 0x595635
cmp edi, 0x20
mov esi, ecx
jb 0x595854
mov edx, edi
shr edx, 5
mov ebx, dword [esi]
xor ecx, ecx
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
add esi, 4
add esi, 4
mov ecx, dword [ecx*4 + 0x7c74f4]
add esi, 4
xor ecx, dword [ebx*4 + 0x7c78f4]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
add esi, 4
xor ecx, dword [ebx*4 + 0x7c70f4]
add esi, 4
mov ebx, dword [eax*4 + 0x7c7cf4]
xor eax, eax
xor ecx, ebx
mov ebx, dword [esi - 0x10]
xor ecx, ebx
xor ebx, ebx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x7c74f4]
xor eax, dword [ebx*4 + 0x7c78f4]
mov ebx, ecx
shr ebx, 0x18
and ecx, 0xff
xor eax, dword [ebx*4 + 0x7c70f4]
mov ebx, dword [ecx*4 + 0x7c7cf4]
xor ecx, ecx
xor eax, ebx
mov ebx, dword [esi - 0xc]
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x7c74f4]
xor ecx, dword [ebx*4 + 0x7c78f4]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor ecx, dword [ebx*4 + 0x7c70f4]
mov ebx, dword [eax*4 + 0x7c7cf4]
xor eax, eax
xor ecx, ebx
mov ebx, dword [esi - 8]
xor ecx, ebx
xor ebx, ebx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x7c74f4]
xor eax, dword [ebx*4 + 0x7c78f4]
mov ebx, ecx
shr ebx, 0x18
and ecx, 0xff
xor eax, dword [ebx*4 + 0x7c70f4]
mov ebx, dword [ecx*4 + 0x7c7cf4]
xor ecx, ecx
xor eax, ebx
mov ebx, dword [esi - 4]
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x7c74f4]
xor ecx, dword [ebx*4 + 0x7c78f4]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor ecx, dword [ebx*4 + 0x7c70f4]
mov ebx, dword [eax*4 + 0x7c7cf4]
xor ecx, ebx
mov ebx, dword [esi]
xor ecx, ebx
xor eax, eax
mov dword [ebp + 0xc], ecx
xor ebx, ebx
mov al, byte [ebp + 0xe]
mov bl, ch
add esi, 4
sub edi, 0x20
mov eax, dword [eax*4 + 0x7c74f4]
add esi, 4
xor eax, dword [ebx*4 + 0x7c78f4]
mov ebx, ecx
shr ebx, 0x18
and ecx, 0xff
add esi, 4
xor eax, dword [ebx*4 + 0x7c70f4]
mov ebx, dword [ecx*4 + 0x7c7cf4]
xor ecx, ecx
xor eax, ebx
mov ebx, dword [esi - 8]
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov cl, byte [ebp + 0xe]
mov ecx, dword [ecx*4 + 0x7c74f4]
xor ecx, dword [ebx*4 + 0x7c78f4]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor ecx, dword [ebx*4 + 0x7c70f4]
mov ebx, dword [eax*4 + 0x7c7cf4]
xor eax, eax
xor ecx, ebx
mov ebx, dword [esi - 4]
xor ecx, ebx
xor ebx, ebx
mov dword [ebp + 0xc], ecx
mov bl, ch
mov al, byte [ebp + 0xe]
mov eax, dword [eax*4 + 0x7c74f4]
xor eax, dword [ebx*4 + 0x7c78f4]
mov ebx, ecx
shr ebx, 0x18
and ecx, 0xff
xor eax, dword [ebx*4 + 0x7c70f4]
mov ebx, dword [ecx*4 + 0x7c7cf4]
xor eax, ebx
dec edx
jne 0x595668
cmp edi, 4
jb 0x5958a1
mov ecx, edi
shr ecx, 2
mov ebx, dword [esi]
xor edx, edx
xor eax, ebx
xor ebx, ebx
mov dword [ebp + 0xc], eax
mov bl, ah
mov dl, byte [ebp + 0xe]
add esi, 4
sub edi, 4
mov edx, dword [edx*4 + 0x7c74f4]
xor edx, dword [ebx*4 + 0x7c78f4]
mov ebx, eax
shr ebx, 0x18
and eax, 0xff
xor edx, dword [ebx*4 + 0x7c70f4]
mov ebx, dword [eax*4 + 0x7c7cf4]
xor edx, ebx
dec ecx
mov eax, edx
jne 0x59585e
test edi, edi
je 0x5958c3
mov ecx, eax
xor edx, edx
mov dl, byte [esi]
and ecx, 0xff
xor ecx, edx
shr eax, 8
mov ecx, dword [ecx*4 + 0x7c70f4]
xor eax, ecx
inc esi
dec edi
jne 0x5958a5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret