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

Disassembly:
push ebp
push edi
push esi
push ebx
push edi
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x58f840
mov eax, dword [esp + 0x18]
not eax
mov esi, dword [esp + 0x20]
test esi, esi
je 0x58f5d2
test cl, 3
je 0x58f5e0
mov edx, dword [esp + 0x20]
jmp 0x58f5bd
test cl, 3
je 0x58f5dc
mov bl, byte [ecx]
xor ebx, eax
movzx ebx, bl
shr eax, 8
xor eax, dword [ebx*4 + 0x615f00]
inc ecx
dec edx
jne 0x58f5b8
not eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], edx
cmp dword [esp + 0x20], 0x1f
jbe 0x58f7b8
mov esi, dword [esp + 0x20]
mov ebx, ecx
mov dword [esp], ecx
xor eax, dword [ebx]
movzx ebp, ah
mov edx, eax
shr edx, 0x10
and edx, 0xff
movzx edi, al
shr eax, 0x18
mov ecx, dword [edi*4 + 0x616b00]
xor ecx, dword [eax*4 + 0x615f00]
xor ecx, dword [ebx + 4]
xor ecx, dword [ebp*4 + 0x616700]
xor ecx, dword [edx*4 + 0x616300]
movzx edx, ch
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx ebp, cl
mov edi, ecx
shr edi, 0x18
mov ecx, dword [ebp*4 + 0x616b00]
xor ecx, dword [edi*4 + 0x615f00]
xor ecx, dword [ebx + 8]
xor ecx, dword [edx*4 + 0x616700]
xor ecx, dword [eax*4 + 0x616300]
movzx edx, ch
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx edi, cl
mov ebp, ecx
shr ebp, 0x18
mov ecx, dword [edi*4 + 0x616b00]
xor ecx, dword [ebp*4 + 0x615f00]
xor ecx, dword [ebx + 0xc]
xor ecx, dword [edx*4 + 0x616700]
xor ecx, dword [eax*4 + 0x616300]
movzx edx, ch
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx ebp, cl
mov edi, ecx
shr edi, 0x18
mov ecx, dword [ebp*4 + 0x616b00]
xor ecx, dword [edi*4 + 0x615f00]
xor ecx, dword [ebx + 0x10]
xor ecx, dword [edx*4 + 0x616700]
xor ecx, dword [eax*4 + 0x616300]
movzx edx, ch
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx edi, cl
mov ebp, ecx
shr ebp, 0x18
mov ecx, dword [edi*4 + 0x616b00]
xor ecx, dword [ebp*4 + 0x615f00]
xor ecx, dword [ebx + 0x14]
xor ecx, dword [edx*4 + 0x616700]
xor ecx, dword [eax*4 + 0x616300]
movzx edx, ch
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx ebp, cl
mov edi, ecx
shr edi, 0x18
mov ecx, dword [ebp*4 + 0x616b00]
xor ecx, dword [edi*4 + 0x615f00]
xor ecx, dword [ebx + 0x18]
xor ecx, dword [edx*4 + 0x616700]
xor ecx, dword [eax*4 + 0x616300]
movzx edi, ch
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx edx, cl
mov ebp, ecx
shr ebp, 0x18
mov edx, dword [edx*4 + 0x616b00]
xor edx, dword [ebp*4 + 0x615f00]
xor edx, dword [ebx + 0x1c]
xor edx, dword [edi*4 + 0x616700]
xor edx, dword [eax*4 + 0x616300]
add ebx, 0x20
mov edi, edx
shr edi, 0x10
and edi, 0xff
mov eax, edx
shr eax, 0x18
movzx ebp, dl
mov eax, dword [eax*4 + 0x615f00]
xor eax, dword [ebp*4 + 0x616b00]
movzx edx, dh
xor eax, dword [edx*4 + 0x616700]
xor eax, dword [edi*4 + 0x616300]
sub esi, 0x20
cmp esi, 0x1f
ja 0x58f5f4
mov ecx, dword [esp]
mov edx, dword [esp + 0x20]
sub edx, 0x20
and edx, 0xffffffe0
lea ecx, [ecx + edx + 0x20]
and dword [esp + 0x20], 0x1f
cmp dword [esp + 0x20], 3
jbe 0x58f812
mov edx, dword [esp + 0x20]
sub edx, 4
shr edx, 2
lea esi, [ecx + edx*4 + 4]
lea esi, [esi]
mov edx, dword [ecx]
xor edx, eax
add ecx, 4
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
mov eax, edx
shr eax, 0x18
movzx edi, dl
mov eax, dword [eax*4 + 0x615f00]
xor eax, dword [edi*4 + 0x616b00]
movzx edx, dh
xor eax, dword [edx*4 + 0x616700]
xor eax, dword [ebx*4 + 0x616300]
cmp ecx, esi
jne 0x58f7d0
and dword [esp + 0x20], 3
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x58f5d2
mov ebx, dword [esp + 0x20]
add ebx, ecx
mov dl, byte [ecx]
xor edx, eax
movzx edx, dl
shr eax, 8
xor eax, dword [edx*4 + 0x615f00]
inc ecx
cmp ecx, ebx
jne 0x58f824
jmp 0x58f5d2
xor eax, eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret