Function at 0x58f98c
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 0x58fc40
mov eax, dword [esp + 0x18]
not eax
mov esi, dword [esp + 0x20]
test esi, esi
je 0x58f9d2
test cl, 3
je 0x58f9e0
mov edx, dword [esp + 0x20]
jmp 0x58f9bd
test cl, 3
je 0x58f9dc
mov bl, byte [ecx]
xor ebx, eax
movzx ebx, bl
shr eax, 8
xor eax, dword [ebx*4 + 0x615fe0]
inc ecx
dec edx
jne 0x58f9b8
not eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], edx
cmp dword [esp + 0x20], 0x1f
jbe 0x58fbb8
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 + 0x616be0]
xor ecx, dword [eax*4 + 0x615fe0]
xor ecx, dword [ebx + 4]
xor ecx, dword [ebp*4 + 0x6167e0]
xor ecx, dword [edx*4 + 0x6163e0]
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 + 0x616be0]
xor ecx, dword [edi*4 + 0x615fe0]
xor ecx, dword [ebx + 8]
xor ecx, dword [edx*4 + 0x6167e0]
xor ecx, dword [eax*4 + 0x6163e0]
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 + 0x616be0]
xor ecx, dword [ebp*4 + 0x615fe0]
xor ecx, dword [ebx + 0xc]
xor ecx, dword [edx*4 + 0x6167e0]
xor ecx, dword [eax*4 + 0x6163e0]
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 + 0x616be0]
xor ecx, dword [edi*4 + 0x615fe0]
xor ecx, dword [ebx + 0x10]
xor ecx, dword [edx*4 + 0x6167e0]
xor ecx, dword [eax*4 + 0x6163e0]
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 + 0x616be0]
xor ecx, dword [ebp*4 + 0x615fe0]
xor ecx, dword [ebx + 0x14]
xor ecx, dword [edx*4 + 0x6167e0]
xor ecx, dword [eax*4 + 0x6163e0]
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 + 0x616be0]
xor ecx, dword [edi*4 + 0x615fe0]
xor ecx, dword [ebx + 0x18]
xor ecx, dword [edx*4 + 0x6167e0]
xor ecx, dword [eax*4 + 0x6163e0]
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 + 0x616be0]
xor edx, dword [ebp*4 + 0x615fe0]
xor edx, dword [ebx + 0x1c]
xor edx, dword [edi*4 + 0x6167e0]
xor edx, dword [eax*4 + 0x6163e0]
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 + 0x615fe0]
xor eax, dword [ebp*4 + 0x616be0]
movzx edx, dh
xor eax, dword [edx*4 + 0x6167e0]
xor eax, dword [edi*4 + 0x6163e0]
sub esi, 0x20
cmp esi, 0x1f
ja 0x58f9f4
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 0x58fc12
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 + 0x615fe0]
xor eax, dword [edi*4 + 0x616be0]
movzx edx, dh
xor eax, dword [edx*4 + 0x6167e0]
xor eax, dword [ebx*4 + 0x6163e0]
cmp ecx, esi
jne 0x58fbd0
and dword [esp + 0x20], 3
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x58f9d2
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 + 0x615fe0]
inc ecx
cmp ecx, ebx
jne 0x58fc24
jmp 0x58f9d2
xor eax, eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret