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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0xc]
movzx ebx, byte [eax]
mov ecx, dword [eax + 4]
mov edi, ebx
shr edi, 1
test bl, 1
mov edx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
lea esi, [edx + ecx]
mov dword [ebp - 0x28], edi
lea edi, [eax + edi + 1]
cmovne edi, esi
lea esi, [eax + 1]
cmovne esi, edx
sub edi, esi
cmp edi, 4
mov dword [ebp - 0x2c], ebx
jb 0x42d5ed
mov edx, esi
mov eax, edi
nop word cs:[eax + eax]
nop dword [eax]
imul ecx, dword [edx], 0x5bd1e995
mov ebx, ecx
shr ebx, 0x18
xor ebx, ecx
imul ecx, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, ecx
add edx, 4
add edi, 0xfffffffc
cmp edi, 3
ja 0x42d5c0
cmp edi, 1
jne 0x42d5f6
jmp 0x42d612
mov eax, edi
mov edx, esi
cmp edi, 1
je 0x42d612
cmp edi, 2
je 0x42d609
cmp edi, 3
jne 0x42d61d
movzx ecx, byte [edx + 2]
shl ecx, 0x10
xor eax, ecx
movzx ecx, byte [edx + 1]
shl ecx, 8
xor eax, ecx
movzx ecx, byte [edx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, eax
shr ecx, 0xf
xor ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 4]
test edi, edi
mov dword [ebp - 0x14], edi
je 0x42d685
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 [ebp - 0x30], eax
cmp eax, 1
ja 0x42d691
lea edx, [edi - 1]
and edx, dword [ebp - 0x10]
jmp 0x42d6a5
mov dword [ebp - 0x20], 0xffffffff
jmp 0x42d794
mov eax, dword [ebp - 0x10]
mov edx, eax
cmp eax, edi
jb 0x42d6a5
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x14]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x42d794
mov ebx, dword [eax]
test ebx, ebx
je 0x42d794
lea eax, [edi - 1]
mov dword [ebp - 0x24], eax
test byte [ebp - 0x2c], 1
mov eax, dword [ebp - 0x18]
cmove eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
jmp 0x42d6ed
mov ebx, dword [ebx]
test ebx, ebx
mov edi, dword [ebp - 0x14]
je 0x42d794
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x10]
je 0x42d714
cmp dword [ebp - 0x30], 1
ja 0x42d700
and eax, dword [ebp - 0x24]
jmp 0x42d70b
cmp eax, edi
jb 0x42d70b
xor edx, edx
div dword [ebp - 0x14]
mov eax, edx
cmp eax, dword [ebp - 0x20]
jne 0x42d794
movzx ecx, byte [ebx + 8]
mov eax, ecx
shr eax, 1
mov edx, eax
test cl, 1
je 0x42d726
mov edx, dword [ebx + 0xc]
cmp edx, dword [ebp - 0x18]
jne 0x42d6e0
lea edx, [ebx + 8]
add edx, 1
test cl, 1
je 0x42d739
mov edx, dword [ebx + 0x10]
jne 0x42d770
xor ecx, ecx
cmp dword [ebp - 0x18], 0
je 0x42d91a
nop word [eax + eax]
movzx edx, byte [ebx + ecx + 9]
cmp dl, byte [esi + ecx]
jne 0x42d6e0
add ecx, 1
cmp eax, ecx
jne 0x42d750
jmp 0x42d78a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42d78a
push eax
push esi
push edx
call fcn.005152ed
add esp, 0xc
test eax, eax
jne 0x42d6e0
xor ecx, ecx
mov edi, dword [ebp + 8]
jmp 0x42d909
mov esi, dword [ebp + 0x10]
push 0x18
call fcn.00512878
add esp, 4
mov ebx, eax
mov eax, dword [esi + 8]
mov dword [ebx + 0x10], eax
movsd xmm0, qword [esi]
movsd qword [ebx + 8], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov dword [ebx], 0
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi + 0xc]
add eax, 1
movd xmm0, eax
movq xmm2, qword [0x53f3b0]
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [esi + 0x10]
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x42d829
movd xmm3, edx
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x42d829
mov edi, dword [ebp - 0x20]
jmp 0x42d8b9
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
mov edi, edx
call fcn.00529570
add esp, 8
fstp dword [ebp - 0x34]
movss xmm0, dword [ebp - 0x34]
movss xmm1, dword [0x53f54c]
movaps xmm2, xmm0
subss xmm2, xmm1
cvttss2si ecx, xmm2
xor ecx, 0x80000000
cvttss2si eax, xmm0
ucomiss xmm0, xmm1
cmovae eax, ecx
lea ecx, [edi + edi]
mov edx, 1
cmp edi, 3
jb 0x42d888
lea esi, [edi - 1]
xor edx, edx
test edi, esi
mov esi, dword [ebp - 0x1c]
setne dl
or edx, ecx
cmp edx, eax
cmovb edx, eax
mov ecx, esi
push edx
call fcn.00407040
mov edx, dword [esi + 4]
lea edi, [edx - 1]
test edx, edi
jne 0x42d8a6
and edi, dword [ebp - 0x10]
jmp 0x42d8b9
mov edi, dword [ebp - 0x10]
cmp edi, edx
jb 0x42d8b9
mov eax, edi
mov ecx, edx
xor edx, edx
div ecx
mov edi, edx
mov edx, ecx
mov ecx, dword [esi]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x42d8cb
mov ecx, dword [eax]
mov dword [ebx], ecx
mov edi, dword [ebp + 8]
jmp 0x42d901
mov eax, dword [esi + 8]
mov dword [ebx], eax
lea eax, [esi + 8]
mov dword [esi + 8], ebx
mov dword [ecx + edi*4], eax
mov eax, dword [ebx]
test eax, eax
mov edi, dword [ebp + 8]
je 0x42d903
mov eax, dword [eax + 4]
lea ecx, [edx - 1]
test edx, ecx
jne 0x42d8f0
and eax, ecx
jmp 0x42d8fc
cmp eax, edx
jb 0x42d8fc
mov ecx, edx
xor edx, edx
div ecx
mov eax, edx
shl eax, 2
add eax, dword [esi]
mov dword [eax], ebx
add dword [esi + 0xc], 1
mov cl, 1
mov dword [edi], ebx
mov byte [edi + 4], cl
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [ebp + 8]
jmp 0x42d909