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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edx, dword [esp + 0x30]
test edx, edx
je 0x5c4fa0
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
not ecx
cmp ebx, 0x17
jb 0x5c528a
test dl, 3
je 0x5c4f9b
mov eax, ecx
shr eax, 8
lea edi, [edx + 1]
xor cl, byte [edx]
movzx esi, cl
mov ecx, eax
mov eax, edi
xor ecx, dword [esi*4 + 0x7dc83c]
test al, 3
je 0x5c4fa7
mov eax, ecx
shr eax, 8
lea edi, [edx + 2]
xor cl, byte [edx + 1]
movzx esi, cl
mov ecx, eax
mov eax, edi
xor ecx, dword [esi*4 + 0x7dc83c]
test al, 3
je 0x5c4fad
mov eax, ecx
shr eax, 8
lea edi, [edx + 3]
xor cl, byte [edx + 2]
movzx esi, cl
mov ecx, eax
mov eax, edi
xor ecx, dword [esi*4 + 0x7dc83c]
test al, 3
je 0x5c4fb5
add ebx, 0xfffffffc
mov eax, ecx
shr eax, 8
xor cl, byte [edx + 3]
add edx, 4
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7dc83c]
mov ecx, eax
mov dword [esp], edx
jmp 0x5c4fbb
xor eax, eax
jmp 0x5c5414
mov dword [esp], eax
dec ebx
jmp 0x5c4fbb
mov dword [esp], eax
add ebx, 0xfffffffe
jmp 0x5c4fbb
mov dword [esp], eax
add ebx, 0xfffffffd
mov edx, 0xcccccccd
mov dword [esp + 0x14], ebx
mov eax, ebx
mul edx
shr edx, 4
lea eax, [edx*4]
lea ebp, [eax + eax*4]
dec edx
je 0x5c5132
mov dword [esp + 0x10], ebp
mov eax, dword [esp]
lea ebp, [eax + 0x10]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
xor eax, eax
mov dword [esp + 4], 0
xor ecx, dword [ebp - 0x10]
movzx edi, cl
movzx esi, ch
mov esi, dword [esi*4 + 0x7dd03c]
xor esi, dword [edi*4 + 0x7dcc3c]
mov edi, ecx
mov ebx, ecx
shr edi, 0xe
and edi, 0x3fc
xor esi, dword [edi + 0x7dd43c]
shr ebx, 0x18
mov ecx, esi
xor ecx, dword [ebx*4 + 0x7dd83c]
xor eax, dword [ebp - 0xc]
movzx esi, al
movzx edi, ah
mov edi, dword [edi*4 + 0x7dd03c]
xor edi, dword [esi*4 + 0x7dcc3c]
mov esi, eax
mov ebx, eax
shr esi, 0xe
and esi, 0x3fc
xor edi, dword [esi + 0x7dd43c]
shr ebx, 0x18
mov eax, edi
xor eax, dword [ebx*4 + 0x7dd83c]
mov ebx, dword [esp + 4]
xor ebx, dword [ebp - 8]
movzx esi, bl
movzx edi, bh
mov edi, dword [edi*4 + 0x7dd03c]
xor edi, dword [esi*4 + 0x7dcc3c]
mov esi, ebx
shr esi, 0xe
and esi, 0x3fc
xor edi, dword [esi + 0x7dd43c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x7dd83c]
mov dword [esp + 4], edi
mov ebx, dword [esp + 8]
xor ebx, dword [ebp - 4]
movzx esi, bl
movzx edi, bh
mov edi, dword [edi*4 + 0x7dd03c]
xor edi, dword [esi*4 + 0x7dcc3c]
mov esi, ebx
shr esi, 0xe
and esi, 0x3fc
xor edi, dword [esi + 0x7dd43c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x7dd83c]
mov dword [esp + 8], edi
mov ebx, dword [esp + 0xc]
xor ebx, dword [ebp]
movzx esi, bl
movzx edi, bh
mov edi, dword [edi*4 + 0x7dd03c]
xor edi, dword [esi*4 + 0x7dcc3c]
mov esi, ebx
shr esi, 0xe
and esi, 0x3fc
xor edi, dword [esi + 0x7dd43c]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x7dd83c]
mov dword [esp + 0xc], edi
add ebp, 0x14
dec edx
jne 0x5c5000
mov edi, dword [esp]
mov ebp, dword [esp + 0x10]
add edi, ebp
add edi, 0xffffffec
jmp 0x5c514f
mov dword [esp + 4], 0
xor eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov edi, dword [esp]
xor ecx, dword [edi]
movzx esi, cl
shr ecx, 8
xor ecx, dword [esi*4 + 0x7dc83c]
movzx esi, cl
shr ecx, 8
xor ecx, dword [esi*4 + 0x7dc83c]
movzx esi, cl
mov ebx, ecx
shr ebx, 8
xor ebx, dword [esi*4 + 0x7dc83c]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x7dc83c]
shr ebx, 8
xor eax, dword [edi + 4]
xor eax, ebx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x7dc83c]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x7dc83c]
movzx ecx, al
mov edx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x7dc83c]
movzx ecx, dl
mov eax, dword [esp + 4]
xor eax, dword [ecx*4 + 0x7dc83c]
shr edx, 8
xor eax, dword [edi + 8]
xor eax, edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x7dc83c]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x7dc83c]
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x7dc83c]
movzx ecx, al
mov edx, dword [esp + 8]
xor edx, dword [ecx*4 + 0x7dc83c]
shr eax, 8
xor edx, dword [edi + 0xc]
xor edx, eax
movzx eax, dl
mov ecx, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x7dc83c]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x7dc83c]
movzx edx, cl
mov eax, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x7dc83c]
movzx ecx, al
mov edx, dword [esp + 0xc]
xor edx, dword [ecx*4 + 0x7dc83c]
shr eax, 8
xor edx, dword [edi + 0x10]
xor edx, eax
movzx eax, dl
mov ecx, edx
shr ecx, 8
xor ecx, dword [eax*4 + 0x7dc83c]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x7dc83c]
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x7dc83c]
mov ebx, dword [esp + 0x14]
sub ebx, ebp
movzx eax, cl
shr ecx, 8
xor ecx, dword [eax*4 + 0x7dc83c]
add edi, 0x14
mov edx, edi
cmp ebx, 8
jb 0x5c533e
nop word cs:[eax + eax]
mov eax, ecx
xor cl, byte [edx]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7dc83c]
mov ecx, eax
xor al, byte [edx + 1]
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7dc83c]
mov eax, ecx
xor cl, byte [edx + 2]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7dc83c]
mov ecx, eax
xor al, byte [edx + 3]
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7dc83c]
mov eax, ecx
xor cl, byte [edx + 4]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7dc83c]
add ebx, 0xfffffff8
mov ecx, eax
xor al, byte [edx + 5]
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7dc83c]
mov eax, ecx
shr eax, 8
xor cl, byte [edx + 6]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7dc83c]
mov ecx, eax
shr ecx, 8
xor al, byte [edx + 7]
add edx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x7dc83c]
cmp ebx, 7
ja 0x5c52a0
test ebx, ebx
je 0x5c5353
test bl, 1
jne 0x5c535a
mov edi, ebx
cmp ebx, 1
jne 0x5c537a
jmp 0x5c5412
mov eax, ecx
jmp 0x5c5412
lea edi, [ebx - 1]
mov eax, ecx
shr eax, 8
xor cl, byte [edx]
inc edx
movzx ecx, cl
xor eax, dword [ecx*4 + 0x7dc83c]
mov ecx, eax
cmp ebx, 1
je 0x5c5412
lea ebx, [edi - 2]
test bl, 2
jne 0x5c53b7
mov esi, ebx
mov ebx, ecx
shr ebx, 8
xor cl, byte [edx]
movzx eax, cl
xor ebx, dword [eax*4 + 0x7dc83c]
mov eax, ebx
shr eax, 8
xor bl, byte [edx + 1]
add edx, 2
movzx ecx, bl
mov ebx, esi
xor eax, dword [ecx*4 + 0x7dc83c]
mov edi, esi
mov ecx, eax
cmp ebx, 2
jae 0x5c53bc
jmp 0x5c5412
cmp ebx, 2
jb 0x5c5412
xor esi, esi
mov eax, ecx
mov ebx, eax
xor al, byte [edx + esi]
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x7dc83c]
mov eax, ebx
xor bl, byte [edx + esi + 1]
shr eax, 8
movzx ecx, bl
xor eax, dword [ecx*4 + 0x7dc83c]
mov ebx, eax
shr ebx, 8
xor al, byte [edx + esi + 2]
movzx eax, al
xor ebx, dword [eax*4 + 0x7dc83c]
mov eax, ebx
shr eax, 8
xor bl, byte [edx + esi + 3]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x7dc83c]
add esi, 4
cmp edi, esi
jne 0x5c53c0
not eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x5c4f00