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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x408982
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
test ecx, ecx
not eax
je 0x40870f
test bl, 3
je 0x408724
mov ecx, dword [esp + 0x1c]
jmp 0x4086f5
test bl, 3
je 0x408720
add ebx, 1
mov edx, eax
shr eax, 8
xor dl, byte [ebx - 1]
movzx edx, dl
xor eax, dword [edx*4 + 0x40e0c0]
sub ecx, 1
jne 0x4086f0
pop ebx
not eax
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x1c], 0x1f
jbe 0x4088f9
mov esi, dword [esp + 0x1c]
mov ecx, ebx
mov dword [esp + 0x18], ebx
lea esi, [esi]
xor eax, dword [ecx]
mov ebp, eax
movzx edi, al
mov edx, eax
shr ebp, 0x18
mov edi, dword [edi*4 + 0x40ecc0]
shr edx, 0x10
xor edi, dword [ebp*4 + 0x40e0c0]
movzx eax, ah
movzx edx, dl
xor edi, dword [ecx + 4]
xor edi, dword [eax*4 + 0x40e8c0]
mov eax, dword [edx*4 + 0x40e4c0]
xor eax, edi
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x40ecc0]
xor edx, dword [ebp*4 + 0x40e0c0]
xor edx, dword [ecx + 8]
xor edx, dword [eax*4 + 0x40e8c0]
xor edx, dword [edi*4 + 0x40e4c0]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x40ecc0]
xor eax, dword [ebp*4 + 0x40e0c0]
xor eax, dword [ecx + 0xc]
xor eax, dword [edx*4 + 0x40e8c0]
xor eax, dword [edi*4 + 0x40e4c0]
mov edx, eax
mov ebp, eax
shr edx, 0x10
shr ebp, 0x18
movzx edi, dl
movzx edx, al
movzx eax, ah
mov edx, dword [edx*4 + 0x40ecc0]
xor edx, dword [ebp*4 + 0x40e0c0]
xor edx, dword [ecx + 0x10]
xor edx, dword [eax*4 + 0x40e8c0]
xor edx, dword [edi*4 + 0x40e4c0]
mov eax, edx
mov ebp, edx
shr eax, 0x10
shr ebp, 0x18
movzx edi, al
movzx eax, dl
movzx edx, dh
mov eax, dword [eax*4 + 0x40ecc0]
xor eax, dword [ebp*4 + 0x40e0c0]
xor eax, dword [ecx + 0x14]
xor eax, dword [edx*4 + 0x40e8c0]
xor eax, dword [edi*4 + 0x40e4c0]
mov ebp, eax
mov edx, eax
movzx edi, al
shr ebp, 0x18
shr edx, 0x10
mov edi, dword [edi*4 + 0x40ecc0]
xor edi, dword [ebp*4 + 0x40e0c0]
movzx eax, ah
movzx edx, dl
xor edi, dword [ecx + 0x18]
mov ebx, dword [edx*4 + 0x40e4c0]
add ecx, 0x20
xor edi, dword [eax*4 + 0x40e8c0]
sub esi, 0x20
xor ebx, edi
mov ebp, ebx
movzx edx, bl
mov eax, ebx
shr ebp, 0x18
mov edx, dword [edx*4 + 0x40ecc0]
shr eax, 0x10
xor edx, dword [ebp*4 + 0x40e0c0]
movzx edi, bh
movzx eax, al
xor edx, dword [ecx - 4]
xor edx, dword [edi*4 + 0x40e8c0]
xor edx, dword [eax*4 + 0x40e4c0]
mov eax, edx
movzx ebp, dl
shr eax, 0x10
movzx edi, al
mov eax, edx
movzx edx, dh
shr eax, 0x18
mov eax, dword [eax*4 + 0x40e0c0]
xor eax, dword [ebp*4 + 0x40ecc0]
xor eax, dword [edx*4 + 0x40e8c0]
xor eax, dword [edi*4 + 0x40e4c0]
cmp esi, 0x1f
ja 0x408740
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
and dword [esp + 0x1c], 0x1f
lea edx, [esi - 0x20]
and edx, 0xffffffe0
lea ebx, [ebx + edx + 0x20]
cmp dword [esp + 0x1c], 3
jbe 0x408989
mov esi, dword [esp + 0x1c]
lea edx, [esi - 4]
shr edx, 2
lea ecx, [ebx + edx*4 + 4]
add ebx, 4
xor eax, dword [ebx - 4]
mov edx, eax
mov esi, eax
shr edx, 0x10
shr esi, 0x18
movzx edi, dl
movzx edx, al
mov esi, dword [esi*4 + 0x40e0c0]
xor esi, dword [edx*4 + 0x40ecc0]
movzx edx, ah
mov eax, dword [edx*4 + 0x40e8c0]
xor eax, esi
xor eax, dword [edi*4 + 0x40e4c0]
cmp ebx, ecx
jne 0x408912
and dword [esp + 0x1c], 3
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x40870f
mov edx, dword [esp + 0x1c]
add edx, ecx
add ecx, 1
mov ebx, eax
shr eax, 8
xor bl, byte [ecx - 1]
movzx ebx, bl
xor eax, dword [ebx*4 + 0x40e0c0]
cmp ecx, edx
jne 0x408964
jmp 0x40870f
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
mov ecx, ebx
jmp 0x408952