Function at 0x57ffd0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, esi
mov ebx, edi
mov edx, esi
cmp esi, 4
jb switch.0x00580016
mov edx, esi
mov ebx, edi
mov eax, esi
imul esi, dword [ebx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ebx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x57fff0
jmp dword [edx*4 + 0x798f2c]
movzx edx, byte [ebx + 1]
shl edx, 8
xor eax, edx
movzx edx, byte [ebx]
xor edx, eax
imul eax, edx, 0x5bd1e995
mov edi, ecx
mov ebx, dword [ecx + 0x10]
xor ecx, ecx
test ebx, ebx
je 0x5800e1
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov edx, ebx
shr edx, 1
and edx, 0x55555555
mov eax, ebx
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x10], eax
cmp eax, 1
jbe 0x580148
mov edx, esi
cmp esi, ebx
jb 0x5800a2
mov eax, esi
xor edx, edx
div ebx
mov eax, dword [edi + 0xc]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x5800e1
mov edi, dword [eax]
test edi, edi
je 0x5800e1
lea eax, [ebx - 1]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [edi + 4]
cmp esi, eax
je 0x5800fb
cmp ecx, 1
jbe 0x580143
cmp eax, ebx
jb 0x5800d4
xor edx, edx
div ebx
mov eax, edx
cmp eax, dword [ebp - 0x18]
jne 0x5800df
mov edi, dword [edi]
test edi, edi
jne 0x5800be
xor ecx, ecx
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 8
movzx edx, byte [ebx + 2]
shl edx, 0x10
xor eax, edx
jmp case.0x580016.2
movsx ecx, byte [edi + 0x13]
test ecx, ecx
js 0x580108
lea eax, [edi + 8]
jmp 0x58010e
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 8]
test ecx, ecx
js 0x580141
sete dl
test eax, eax
setne dh
or dh, dl
je 0x580141
cmp ecx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
jne 0x5800d9
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.005c7efd
mov ecx, dword [ebp - 0x10]
add esp, 0xc
test eax, eax
jne 0x5800d9
mov ecx, dword [edi + 0x14]
jmp 0x5800e1
ud2
and eax, dword [ebp - 0x14]
jmp 0x5800d4
lea edx, [ebx - 1]
and edx, esi
jmp 0x5800a2
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
mov dword [ebp - 0x14], ecx
mov esi, dword [ebx + 4]
test esi, esi
mov dword [ebp - 0x10], ebx
je 0x58050e
mov ecx, esi
shr ecx, 1
and ecx, 0x55555555
mov eax, esi
sub eax, ecx
mov ecx, eax
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul ebx, ecx, 0x1010101
shr ebx, 0x18
cmp ebx, 1
jbe 0x5804fd
mov ecx, dword [ebp - 0x14]
mov edx, ecx
cmp ecx, esi
jb 0x5803b0
mov eax, ecx
xor edx, edx
div esi
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
mov dword [ebp - 0x18], edx
je 0x5803ff
mov edi, dword [eax]
test edi, edi
je 0x5803ff
lea eax, [esi - 1]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 4]
cmp eax, ecx
je 0x5805cb
cmp ebx, 1
jbe 0x5804f5
cmp eax, esi
jb 0x5803f2
xor edx, edx
div esi
mov eax, edx
mov edx, dword [ebp - 0x18]
cmp eax, edx
jne 0x5803ff
mov edi, dword [edi]
test edi, edi
jne 0x5803d4
mov ebx, dword [ebp - 0x10]
mov dword [esp], 0x18
call fcn.005c5789
test eax, eax
je 0x5805c9
mov edi, eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [edi], ecx
mov edx, dword [ebp - 0x14]
mov dword [edi + 4], edx
mov edx, dword [eax + 8]
mov dword [edi + 0x10], edx
movsd xmm0, qword [eax]
movsd qword [edi + 8], xmm0
mov dword [eax + 8], ecx
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [edi + 0x14], eax
mov eax, dword [ebx + 0xc]
inc eax
movd xmm0, eax
movq xmm2, qword [0x78b590]
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebx + 0x10]
test esi, esi
je 0x58051e
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x58051e
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebx]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x5804c6
mov ecx, dword [eax]
mov dword [edi], ecx
mov dword [eax], edi
inc dword [ebx + 0xc]
mov cl, 1
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], cl
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebx + 8]
mov dword [edi], eax
lea eax, [ebx + 8]
mov dword [ebx + 8], edi
mov dword [ecx + edx*4], eax
mov eax, dword [edi]
test eax, eax
je 0x5804a1
mov eax, dword [eax + 4]
lea ecx, [esi - 1]
test esi, ecx
je 0x58050a
cmp eax, esi
jb 0x5804ee
xor edx, edx
div esi
mov eax, edx
shl eax, 2
add eax, dword [ebx]
jmp 0x58049f
and eax, dword [ebp - 0x20]
jmp 0x5803f5
lea edx, [esi - 1]
mov ecx, dword [ebp - 0x14]
and edx, ecx
jmp 0x5803b0
and eax, ecx
jmp 0x5804ee
xor eax, eax
dec eax
mov dword [ebp - 0x18], eax
jmp 0x580402
xor ebx, ebx
inc ebx
jmp 0x580563
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005f8570
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
cvttss2si ecx, xmm0
mov edx, ecx
sar edx, 0x1f
subss xmm0, dword [0x78b598]
cvttss2si eax, xmm0
and eax, edx
or eax, ecx
lea ecx, [esi + esi]
cmp esi, 3
jb 0x580519
lea edx, [esi - 1]
xor ebx, ebx
test esi, edx
setne bl
or ebx, ecx
cmp ebx, eax
cmovbe ebx, eax
cmp ebx, 1
je 0x5805c2
lea eax, [ebx - 1]
test ebx, eax
je 0x580580
mov dword [esp], ebx
call fcn.00544ab0
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 4]
cmp ebx, esi
jbe 0x5805ff
mov eax, dword [ebp - 0x10]
mov dword [esp], ebx
mov esi, eax
mov ecx, eax
call fcn.004f24f0
sub esp, 4
mov eax, esi
mov esi, dword [eax + 4]
lea edx, [esi - 1]
test esi, edx
mov ebx, eax
je 0x5805ba
mov eax, dword [ebp - 0x14]
cmp eax, esi
jb 0x5805f8
xor edx, edx
div esi
jmp 0x580492
and edx, dword [ebp - 0x14]
jmp 0x580492
mov ebx, 2
jmp 0x580580
ud2
lea eax, [edi + 8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x1c]
call fcn.004c7b90
sub esp, 8
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test al, al
je 0x5803f9
xor ecx, ecx
jmp 0x5804a6
mov edx, eax
jmp 0x580492
mov eax, dword [ebp - 0x10]
jae 0x58059e
movss xmm0, dword [eax + 0xc]
orpd xmm0, xmmword [0x78b5a0]
subsd xmm0, qword [0x78b590]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [eax + 0x10]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005f8570
fstp dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x24]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x78b598]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp esi, 3
jb 0x5806a9
mov ecx, esi
shr ecx, 1
and ecx, 0x55555555
mov eax, esi
sub eax, ecx
mov ecx, eax
and ecx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, ecx
mov ecx, eax
shr ecx, 4
add ecx, eax
and ecx, 0xf0f0f0f
imul eax, ecx, 0x1010101
shr eax, 0x18
cmp eax, 1
ja 0x5806a9
lea eax, [edx - 1]
bsr ecx, eax
xor ecx, 0x1f
neg cl
xor eax, eax
inc eax
shl eax, cl
cmp edx, 2
cmovb eax, edx
jmp 0x5806b1
mov dword [esp], edx
call fcn.00544ab0
cmp ebx, eax
cmovbe ebx, eax
cmp ebx, esi
mov eax, dword [ebp - 0x10]
jb 0x58058d
jmp 0x58059e