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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov dword [esp + 8], ecx
mov esi, dword [ebp + 0xc]
movzx edx, byte [esi + 0xb]
test dl, dl
jns 0x523a70
mov edx, dword [esi + 4]
mov esi, dword [esi]
mov eax, edx
mov ecx, esi
mov ebx, edx
mov dword [esp + 0x10], edx
cmp edx, 4
jb 0x523afc
mov eax, dword [esp + 0x10]
lea ebx, [eax - 4]
test bl, 4
jne 0x523aaf
mov edx, eax
imul eax, dword [esi], 0x5bd1e995
mov ecx, eax
shr ecx, 0x18
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
imul eax, edx, 0x5bd1e995
xor eax, ecx
lea ecx, [esi + 4]
mov edx, ebx
jmp 0x523ab3
mov edx, eax
mov ecx, esi
cmp ebx, 4
jb 0x523afc
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
imul edi, dword [ecx + 4], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 8
add edx, 0xfffffff8
cmp edx, 3
ja 0x523ab8
mov ebx, edx
cmp ebx, 1
mov dword [esp + 0x14], esi
je 0x523b21
cmp ebx, 2
je 0x523b18
cmp ebx, 3
jne 0x523b2c
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
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 [esp + 4], ecx
mov eax, dword [esp + 8]
mov edi, dword [eax + 4]
test edi, edi
je 0x523c86
mov eax, edi
shr eax, 1
and eax, 0x55555555
mov ecx, edi
sub ecx, eax
mov eax, 0x33333333
mov edx, ecx
and edx, eax
shr ecx, 2
and ecx, eax
add ecx, edx
mov eax, ecx
shr eax, 4
add eax, ecx
and eax, 0xf0f0f0f
imul eax, eax, 0x1010101
shr eax, 0x18
mov dword [esp + 0x28], eax
cmp eax, 1
ja 0x523d6f
lea edx, [edi - 1]
mov ecx, dword [esp + 4]
and edx, ecx
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 0xc], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x523c8d
mov eax, dword [eax]
mov dword [esp], eax
test eax, eax
je 0x523c8d
lea eax, [edi - 1]
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0x14]
mov eax, dword [esp]
mov eax, dword [eax + 4]
cmp eax, ecx
je 0x523be7
cmp dword [esp + 0x28], 1
ja 0x523c42
and eax, dword [esp + 0x24]
cmp eax, dword [esp + 0xc]
jne 0x523c8d
mov eax, dword [esp]
movzx eax, byte [eax + 0x13]
mov ecx, eax
test al, al
jns 0x523bfa
mov ecx, dword [esp]
mov ecx, dword [ecx + 0xc]
cmp ecx, dword [esp + 0x10]
jne 0x523c70
mov ecx, dword [esp]
add ecx, 8
mov edx, dword [ecx]
test al, al
cmovs ecx, edx
js 0x523c4e
test al, al
je 0x523def
mov ecx, dword [esp + 0x14]
cmp byte [ecx], dl
jne 0x523c70
dec eax
xor ecx, ecx
cmp eax, ecx
je 0x523def
mov edx, dword [esp]
mov dl, byte [edx + ecx + 9]
mov esi, edi
lea edi, [ecx + 1]
cmp dl, byte [ebx + ecx + 1]
mov ecx, edi
mov edi, esi
je 0x523c22
jmp 0x523c70
cmp eax, edi
jb 0x523bdd
xor edx, edx
div edi
mov eax, edx
jmp 0x523bdd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x523def
push eax
push dword [esp + 0x18]
push ecx
call fcn.004cf0db
add esp, 0xc
test eax, eax
je 0x523def
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [esp], eax
test eax, eax
mov ecx, dword [esp + 4]
jne 0x523bc8
jmp 0x523c8d
xor eax, eax
dec eax
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0x14]
push 0x18
call fcn.004cf0a6
add esp, 4
mov ebx, eax
lea ecx, [eax + 8]
push dword [esi]
call section..text
xor eax, eax
mov dword [ebx + 0x14], eax
mov ecx, dword [esp + 4]
mov dword [ebx + 4], ecx
mov dword [esp], ebx
mov dword [ebx], eax
mov esi, dword [esp + 8]
mov eax, dword [esi + 0xc]
inc eax
movq xmm2, qword [0x5792a0]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [esi + 0x10]
test edi, edi
je 0x523d2f
movd xmm3, edi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x523d2f
mov edx, dword [esp + 0xc]
mov ecx, dword [esi]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x523d88
mov ecx, dword [eax]
mov edx, dword [esp]
mov dword [edx], ecx
mov ecx, dword [esp]
mov dword [eax], ecx
inc dword [esi + 0xc]
mov cl, 1
mov eax, dword [ebp + 8]
mov edx, dword [esp]
mov dword [eax], edx
mov byte [eax + 4], cl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
sub esp, 8
movsd qword [esp], xmm0
call fcn.004e82b0
add esp, 8
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fisttp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
lea ecx, [edi + edi]
cmp edi, 3
jb 0x523dbb
lea esi, [edi - 1]
xor edx, edx
test edi, esi
mov esi, dword [esp + 8]
setne dl
jmp 0x523dbe
mov ecx, dword [esp + 4]
mov edx, ecx
cmp ecx, edi
jb 0x523b9b
mov eax, ecx
xor edx, edx
div edi
jmp 0x523b9b
mov ebx, edx
mov eax, dword [esi + 8]
mov edx, dword [esp]
mov dword [edx], eax
lea eax, [esi + 8]
mov dword [esi + 8], edx
mov dword [ecx + ebx*4], eax
mov eax, dword [edx]
test eax, eax
je 0x523d15
mov eax, dword [eax + 4]
lea ecx, [edi - 1]
test edi, ecx
jne 0x523dff
and eax, ecx
shl eax, 2
add eax, dword [esi]
jmp 0x523d10
xor edx, edx
inc edx
or edx, ecx
cmp edx, eax
cmovb edx, eax
mov ecx, esi
push edx
call fcn.00417e30
mov edi, dword [esi + 4]
lea edx, [edi - 1]
test edi, edx
jne 0x523de0
and edx, dword [esp + 4]
jmp 0x523d00
mov eax, dword [esp + 4]
cmp eax, edi
jae 0x523df6
mov edx, eax
jmp 0x523d00
xor ecx, ecx
jmp 0x523d1a
xor edx, edx
div edi
jmp 0x523d00
cmp eax, edi
jb 0x523db1
xor edx, edx
div edi
mov eax, edx
jmp 0x523db1