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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
movsx ebx, byte [edx + 0xb]
test ebx, ebx
jns 0x58350c
mov ebx, dword [edx + 4]
mov edx, dword [edx]
test ebx, ebx
js 0x583877
sete al
test edx, edx
setne cl
or cl, al
je 0x583877
mov eax, ebx
mov dword [ebp - 0x20], edx
mov ecx, edx
mov edx, ebx
cmp ebx, 4
jb switch.0x00583566
mov edx, ebx
mov ecx, dword [ebp - 0x20]
mov eax, ebx
nop dword [eax]
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x583540
jmp dword [edx*4 + 0x79f0f8]
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 edi, eax
shr edi, 0xf
xor edi, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 4]
test edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edi
je 0x58386c
mov ecx, edx
shr ecx, 1
and ecx, 0x55555555
mov eax, edx
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 esi, ecx, 0x1010101
shr esi, 0x18
cmp esi, 1
jbe 0x58385e
cmp edi, edx
mov ecx, edx
mov edx, edi
jb 0x5835f6
mov eax, edi
xor edx, edx
div ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
mov dword [ebp - 0x10], edx
je 0x58363d
mov edi, dword [eax]
test edi, edi
je 0x58363d
lea eax, [ecx - 1]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
cmp eax, dword [ebp - 0x18]
je 0x58374e
cmp esi, 1
jbe 0x583840
cmp eax, ecx
jb 0x583630
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 0x10]
cmp eax, edx
jne 0x58363d
mov edi, dword [edi]
test edi, edi
jne 0x583611
mov dword [esp], 0x30
call fcn.005c8b59
test eax, eax
mov ebx, dword [ebp - 0x1c]
je 0x583877
mov edi, eax
mov eax, dword [ebp + 0x14]
xor esi, esi
mov dword [edi], esi
mov ecx, dword [ebp - 0x18]
mov dword [edi + 4], ecx
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov dword [edi + 0x10], ecx
movsd xmm0, qword [eax]
movsd qword [edi + 8], xmm0
xorps xmm0, xmm0
movsd qword [eax], xmm0
mov dword [eax + 8], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
mov dword [edi + 0x1c], esi
mov ecx, edi
add ecx, 0x20
mov dword [esp + 4], ecx
mov dword [esp], ecx
call fcn.00571d70
sub esp, 8
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov eax, dword [ebx + 0xc]
inc eax
movq xmm2, qword [0x791630]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebx + 0x10]
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x5837aa
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x5837aa
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx]
mov eax, dword [ecx + edx*4]
test eax, eax
jne 0x583748
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 0x583731
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
test edx, ecx
je 0x583848
cmp eax, edx
jb 0x58372a
mov ecx, edx
xor edx, edx
div ecx
mov eax, edx
shl eax, 2
add eax, dword [ebx]
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, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ecx, dword [eax]
mov dword [edi], ecx
jmp 0x58372f
movsx eax, byte [edi + 0x13]
mov ecx, eax
test eax, eax
jns 0x58375b
mov ecx, dword [edi + 0xc]
cmp ecx, ebx
mov ecx, dword [ebp - 0x14]
jne 0x583637
test al, al
js 0x58376f
lea eax, [edi + 8]
jmp 0x583772
mov eax, dword [edi + 8]
mov ecx, dword [ebp - 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.005cb2cd
test eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jne 0x583637
xor ecx, ecx
jmp 0x583736
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
jmp case.0x583566.2
xor edx, edx
inc edx
jmp 0x5837f2
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005fb940
fstp dword [ebp - 0x2c]
movss xmm0, dword [ebp - 0x2c]
cvttss2si ecx, xmm0
mov edx, ecx
sar edx, 0x1f
subss xmm0, dword [0x791638]
cvttss2si eax, xmm0
and eax, edx
or eax, ecx
lea ecx, [esi + esi]
cmp esi, 3
jb 0x5837a5
lea edx, [esi - 1]
test esi, edx
mov edx, 0
setne dl
or edx, ecx
cmp edx, eax
cmovbe edx, eax
cmp edx, 1
je 0x58384f
lea eax, [edx - 1]
test edx, eax
je 0x58380f
mov dword [esp], edx
call fcn.00545b70
mov edx, eax
mov esi, dword [ebx + 4]
cmp edx, esi
jbe 0x583880
mov dword [esp], edx
mov ecx, ebx
call fcn.0056c120
sub esp, 4
mov ecx, dword [ebx + 4]
lea edx, [ecx - 1]
test ecx, edx
mov dword [ebp - 0x14], ecx
je 0x583856
mov eax, dword [ebp - 0x18]
cmp eax, ecx
jb 0x583879
xor edx, edx
div ecx
jmp 0x5836f0
and eax, dword [ebp - 0x24]
jmp 0x583633
and eax, ecx
jmp 0x58372a
mov edx, 2
jmp 0x58380f
and edx, dword [ebp - 0x18]
jmp 0x5836f0
lea eax, [edx - 1]
and eax, edi
mov ecx, edx
mov edx, eax
jmp 0x5835f6
xor eax, eax
dec eax
mov dword [ebp - 0x10], eax
jmp 0x58363d
ud2
mov edx, eax
jmp 0x5836f0
jae 0x583823
mov dword [ebp - 0x10], edx
movss xmm0, dword [ebx + 0xc]
orpd xmm0, xmmword [0x791640]
subsd xmm0, qword [0x791630]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [ebx + 0x10]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005fb940
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x791638]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp esi, 3
jb 0x58392a
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 0x58392a
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 0x583932
mov dword [esp], edx
call fcn.00545b70
mov edx, dword [ebp - 0x10]
cmp edx, eax
cmovbe edx, eax
cmp edx, esi
mov ebx, dword [ebp - 0x1c]
jb 0x583816
jmp 0x583823