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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [esp + 0xc], ecx
mov esi, dword [esp + 0x40]
movzx ebx, byte [esi]
test bl, 1
je 0x66066f
mov ebx, dword [esi + 4]
mov esi, dword [esi + 8]
jmp 0x660672
inc esi
shr ebx, 1
mov eax, ebx
mov ecx, esi
mov edx, ebx
cmp ebx, 4
jb 0x660702
lea edx, [ebx - 4]
test dl, 4
jne 0x6606b0
imul eax, dword [esi], 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul eax, ebx, 0x5bd1e995
xor eax, ecx
lea ecx, [esi + 4]
mov edi, edx
cmp edx, 4
jae 0x6606bb
jmp 0x660702
mov edi, ebx
mov ecx, esi
mov eax, ebx
cmp edx, 4
jb 0x660702
mov edx, edi
nop dword [eax]
imul edi, dword [ecx], 0x5bd1e995
mov ebp, edi
shr ebp, 0x18
xor ebp, edi
imul edi, ebp, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
imul edi, dword [ecx + 4], 0x5bd1e995
mov ebp, edi
shr ebp, 0x18
xor ebp, edi
imul edi, ebp, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 8
add edx, 0xfffffff8
cmp edx, 3
ja 0x6606c0
cmp edx, 1
je 0x660727
cmp edx, 2
je 0x66071a
cmp edx, 3
jne 0x660736
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
mov ebp, ebx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
jmp 0x660729
mov ebp, ebx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
jmp 0x660738
mov ebp, ebx
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ebx, eax
shr ebx, 0xf
xor ebx, eax
mov eax, dword [esp + 0xc]
mov edi, dword [eax + 4]
test edi, edi
mov dword [esp + 0x14], ebx
je 0x6607a3
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov ecx, edi
sub ecx, eax
mov eax, ecx
and eax, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, eax
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [esp + 0x20], eax
cmp eax, 1
mov dword [esp + 0x10], edi
ja 0x6607b6
lea edx, [edi - 1]
and edx, ebx
jmp 0x6607c8
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0xc]
mov ebp, edi
jmp 0x6608cb
mov edx, ebx
cmp ebx, edi
jb 0x6607c8
mov eax, ebx
xor edx, edx
div dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x18], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x6608c3
mov edi, dword [eax]
test edi, edi
je 0x6608c3
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x1c], eax
jmp 0x66080e
mov edi, dword [edi]
test edi, edi
mov ebx, dword [esp + 0x14]
je 0x6608c3
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x660844
cmp dword [esp + 0x20], 1
ja 0x660830
and eax, dword [esp + 0x1c]
jmp 0x66083e
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jb 0x66083e
xor edx, edx
div ecx
mov eax, edx
cmp eax, dword [esp + 0x18]
jne 0x6608c3
movzx ecx, byte [edi + 8]
mov eax, ecx
shr eax, 1
mov edx, eax
test cl, 1
je 0x660856
mov edx, dword [edi + 0xc]
cmp edx, ebp
jne 0x660800
lea edx, [edi + 9]
test cl, 1
je 0x660865
mov edx, dword [edi + 0x10]
jne 0x6608a0
xor ecx, ecx
test ebp, ebp
je 0x660b02
nop word cs:[eax + eax]
movzx edx, byte [edi + ecx + 9]
cmp dl, byte [esi + ecx]
jne 0x660800
inc ecx
cmp eax, ecx
jne 0x660880
jmp 0x6608bc
test ebp, ebp
je 0x6608bc
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], edx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
test eax, eax
jne 0x660800
xor ecx, ecx
jmp 0x660b02
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x10]
mov esi, dword [esp + 0x44]
mov dword [esp], 0x14
call fcn.0051c3d0
mov edi, eax
mov eax, dword [esi + 8]
mov dword [edi + 0x10], eax
movsd xmm0, qword [esi]
movsd qword [edi + 8], xmm0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [esp + 0x14]
mov dword [edi + 4], eax
mov dword [edi], 0
mov eax, dword [ebx + 0xc]
inc eax
movq xmm2, qword [0x8d0420]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebx + 0x10]
test ebp, ebp
je 0x660957
movd xmm3, ebp
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x660957
mov edx, dword [esp + 0x18]
jmp 0x660abd
mov eax, ebp
add eax, ebp
mov ebx, 1
cmp ebp, 3
jb 0x66096f
lea ecx, [ebp - 1]
xor ebx, ebx
test ebp, ecx
setne bl
or ebx, eax
divss xmm0, xmm1
movss dword [esp], xmm0
call fcn.0052a3a0
fstp dword [esp + 0x28]
movss xmm0, dword [esp + 0x28]
cvttss2si ecx, xmm0
mov edx, ecx
sar edx, 0x1f
subss xmm0, dword [0x8d0428]
cvttss2si eax, xmm0
and eax, edx
or eax, ecx
cmp ebx, eax
cmova eax, ebx
mov ebp, 2
cmp eax, 1
mov ebx, dword [esp + 0xc]
je 0x6609c6
lea ecx, [eax - 1]
test eax, ecx
je 0x6609c4
mov dword [esp], eax
call fcn.004cdfe0
mov ebp, eax
mov esi, dword [ebx + 4]
cmp ebp, esi
jbe 0x6609df
mov dword [esp], ebp
mov ecx, ebx
call fcn.00660b20
sub esp, 4
jmp 0x660a9d
jae 0x660a9d
movss xmm0, dword [ebx + 0xc]
orpd xmm0, xmmword [0x8d0430]
subsd xmm0, qword [0x8d0420]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebx + 0x10]
movss dword [esp], xmm0
call fcn.0052a3a0
fstp dword [esp + 0x24]
movss xmm0, dword [esp + 0x24]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x8d0428]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp esi, 3
jb 0x660a88
mov eax, esi
shr eax, 1
and eax, 0x55555555
mov ecx, esi
sub ecx, eax
mov eax, ecx
and eax, 0x33333333
shr ecx, 2
and ecx, 0x33333333
add ecx, eax
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
cmp eax, 1
ja 0x660a88
lea eax, [edx - 1]
bsr ecx, eax
xor ecx, 0x1f
neg cl
mov eax, 1
shl eax, cl
cmp edx, 2
cmovb eax, edx
jmp 0x660a90
mov dword [esp], edx
call fcn.004cdfe0
cmp ebp, eax
cmovbe ebp, eax
cmp ebp, esi
jb 0x6609cd
mov ebp, dword [ebx + 4]
lea edx, [ebp - 1]
test ebp, edx
jne 0x660aad
and edx, dword [esp + 0x14]
jmp 0x660abd
mov eax, dword [esp + 0x14]
cmp eax, ebp
jae 0x660ab9
mov edx, eax
jmp 0x660abd
xor edx, edx
div ebp
mov ecx, dword [ebx]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x660acc
mov ecx, dword [eax]
mov dword [edi], ecx
jmp 0x660afb
lea eax, [ebx + 8]
mov esi, dword [eax]
mov dword [edi], esi
mov dword [eax], edi
mov dword [ecx + edx*4], eax
mov eax, dword [edi]
test eax, eax
je 0x660afd
mov eax, dword [eax + 4]
lea ecx, [ebp - 1]
test ebp, ecx
jne 0x660aec
and eax, ecx
jmp 0x660af6
cmp eax, ebp
jb 0x660af6
xor edx, edx
div ebp
mov eax, edx
shl eax, 2
add eax, dword [ebx]
mov dword [eax], edi
inc dword [ebx + 0xc]
mov cl, 1
movzx edx, cl
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 8