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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov ebx, ecx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [0x754040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, edi
mov ecx, esi
mov edx, edi
cmp edi, 4
jb switch.0x00511be6
mov edx, edi
mov ecx, esi
mov eax, edi
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 0x511bc0
jmp dword [edx*4 + 0x6e5850]
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
lea ecx, [ebx + 0x20]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ebx
mov edi, dword [ebx + 0x24]
test edi, edi
je 0x511d5f
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov ecx, edi
shr ecx, 1
and ecx, 0x55555555
mov eax, edi
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
mov dword [ebp - 0x68], eax
cmp eax, 1
jbe 0x512056
mov edx, esi
cmp esi, edi
jb 0x511c77
mov eax, esi
xor edx, edx
div edi
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov dword [ebp - 0x6c], edx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x511d5f
mov ebx, dword [eax]
test ebx, ebx
je 0x511d5f
lea eax, [edi - 1]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 4]
cmp eax, esi
jne 0x511d3a
movsx edx, byte [ebx + 0x13]
test edx, edx
jns 0x51204f
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 8]
test dl, dl
jns 0x511cbd
mov eax, dword [eax]
test ecx, ecx
js 0x51208e
sete dl
test eax, eax
setne dh
or dh, dl
je 0x51208e
cmp ecx, dword [ebp + 0xc]
jne 0x511d55
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00551eed
add esp, 0xc
test eax, eax
jne 0x511d55
add ebx, 0x14
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550b46
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
jmp case.0x511be6.2
mov edi, edx
or edi, 7
inc edi
push edi
call fcn.0054fbd9
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [esi + 4], eax
or edi, 0x80000000
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
jmp 0x511de6
cmp dword [ebp - 0x68], 1
jbe 0x512068
cmp eax, edi
mov ecx, dword [ebp - 0x6c]
jb 0x511d51
xor edx, edx
div edi
mov eax, edx
cmp eax, ecx
jne 0x511d5f
mov ebx, dword [ebx]
test ebx, ebx
jne 0x511c9a
lea eax, [ebp - 0x1c]
mov dword [eax], 0
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax + 0x18]
lea ebx, [ebp - 0x40]
push ebx
call fcn.00520f70
mov esi, dword [ebx]
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x74e248]
mov ecx, esi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
mov esi, dword [ebx]
test esi, esi
je 0x511da3
dec dword [esi + 4]
je 0x5120d0
test al, al
je 0x512087
mov ecx, esp
push eax
sub esp, 0x10
mov esi, esp
lea eax, [esi + 4]
mov dword [ebp - 0x68], eax
mov edx, dword [ebp + 0xc]
cmp edx, 0x7ffffff8
mov ebx, dword [ebp + 8]
jae 0x512090
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + 0xc]
mov byte [ebp - 0x70], al
cmp edx, 0xa
ja 0x511d14
mov byte [esi + 0xf], dl
mov eax, dword [ebp - 0x68]
lea edi, [eax + edx]
cmp eax, ebx
seta cl
cmp edi, ebx
setbe dl
or dl, cl
je 0x51208e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x511e0d
push ecx
push ebx
push eax
call fcn.00553570
add esp, 0xc
mov byte [edi], 0
mov ecx, dword [ebp - 0x74]
mov dword [esi], ecx
mov bl, byte [ebp - 0x70]
mov byte [esi + 0x10], bl
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
mov dword [ebp - 0x50], eax
movsd xmm0, qword [edx]
movsd qword [ebp - 0x58], xmm0
xorps xmm0, xmm0
movsd qword [edx], xmm0
mov dword [edx + 8], 0
mov byte [ebp - 0x4c], bl
mov ecx, dword [ecx + 0x18]
movsx eax, byte [ebp - 0x4d]
test eax, eax
jns 0x512060
mov eax, dword [ebp - 0x54]
test eax, eax
js 0x51208e
mov edx, dword [ebp - 0x58]
sete bl
test edx, edx
setne bh
or bh, bl
je 0x51208e
push eax
push edx
call fcn.00520de0
mov dword [ebp - 0x48], eax
mov edi, dword [esi]
test edi, edi
je 0x512098
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x75cc90]
bt ecx, eax
jae 0x51200a
push edi
call fcn.00494f50
add esp, 4
mov dword [ebp - 0x44], edi
cmp byte [esi + 0xf], 0
js 0x5120be
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xa
mov esp, dword [ebp - 0x6c]
mov edi, dword [ebp + 8]
ja 0x51202c
lea eax, [ebp - 0x64]
mov byte [eax + 0xb], bl
lea esi, [eax + ebx]
cmp eax, edi
seta cl
cmp esi, edi
setbe dl
or dl, cl
je 0x51208e
test ebx, ebx
je 0x511eeb
push ebx
push edi
push eax
call fcn.00553570
add esp, 0xc
mov byte [esi], 0
mov eax, dword [ebp - 0x5c]
lea ecx, [ebp - 0x34]
mov dword [ecx - 4], eax
movsd xmm0, qword [ebp - 0x64]
movsd qword [ecx - 0xc], xmm0
xorps xmm0, xmm0
movsd qword [ebp - 0x64], xmm0
mov dword [ebp - 0x5c], 0
cmp byte [ebp - 0x4d], 0
jns 0x512073
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.004f7b90
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
mov esi, dword [ebp - 0x44]
mov eax, esi
shr eax, 0xe
mov ecx, esi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x75cc90]
bt ecx, eax
jae 0x51201b
push esi
call fcn.00494f50
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
je 0x51209b
lea esi, [ebp - 0x18]
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x40]
push eax
push eax
push esi
call fcn.005121e0
mov ebx, dword [esi]
mov eax, dword [ebp - 0x20]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x75cc90]
bt edx, ecx
jae 0x511f97
push eax
call fcn.00495070
add esp, 4
mov dword [ebp - 0x20], 0
cmp byte [ebp - 0x29], 0
jns 0x511faf
push dword [ebp - 0x34]
call fcn.0054fc10
add esp, 4
cmp byte [ebp - 0x35], 0
js 0x51209e
cmp byte [ebp - 0x59], 0
js 0x5120ae
mov eax, dword [ebp - 0x44]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x75cc90]
bt edx, ecx
jae 0x511fe5
push eax
call fcn.00495070
add esp, 4
mov dword [ebp - 0x44], 0
cmp byte [ebp - 0x4d], 0
jns 0x511ffd
push dword [ebp - 0x58]
call fcn.0054fc10
add esp, 4
test ebx, ebx
jne 0x511ced
jmp 0x51208e
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x764c90], 1
jmp 0x511ea2
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x764c90], 1
jmp 0x511f57
mov esi, ebx
or esi, 7
inc esi
push esi
call fcn.0054fbd9
add esp, 4
mov dword [ebp - 0x64], eax
or esi, 0x80000000
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ebx
jmp 0x511ec7
mov ecx, edx
jmp 0x511cb4
lea edx, [edi - 1]
and edx, esi
jmp 0x511c77
lea edx, [ebp - 0x58]
jmp 0x511e6b
and eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
jmp 0x511d51
mov eax, dword [ebp - 0x50]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x58]
movsd qword [ecx], xmm0
jmp 0x511f25
xor ebx, ebx
jmp 0x511cf0
ud2
mov ecx, dword [ebp - 0x68]
call fcn.005836b0
int3
int3
push dword [ebp - 0x40]
call fcn.0054fc10
add esp, 4
jmp 0x511fb9
push dword [ebp - 0x64]
call fcn.0054fc10
add esp, 4
jmp 0x511fc3
mov eax, dword [ebp - 0x68]
push dword [eax]
call fcn.0054fc10
add esp, 4
jmp 0x511eaf
mov ebx, eax
mov eax, dword [esi]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x74e248]
mov ecx, esi
push 1
call edi
mov eax, ebx
jmp 0x511da3
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul eax, eax, 0x5bd1e995
mov edx, eax
shr edx, 0xf
xor edx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
mov esi, dword [ecx + 4]
test esi, esi
je 0x512547
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 0x512486
mov ecx, dword [ebp - 0x14]
mov edx, ecx
cmp ecx, esi
jb 0x5122ce
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 0x51231d
mov edi, dword [eax]
test edi, edi
je 0x51231d
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 0x512574
cmp ebx, 1
jbe 0x51247e
cmp eax, esi
jb 0x512310
xor edx, edx
div esi
mov eax, edx
mov edx, dword [ebp - 0x18]
cmp eax, edx
jne 0x51231d
mov edi, dword [edi]
test edi, edi
jne 0x5122f2
mov dword [esp], 0x2c
call fcn.0054fbd9
test eax, eax
je 0x51256f
mov edi, eax
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov dword [edi], eax
mov ecx, dword [ebp - 0x14]
mov dword [edi + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edi + 0x10], ecx
movsd xmm0, qword [ebx]
movsd qword [edi + 8], xmm0
mov dword [ebx + 8], eax
xorps xmm0, xmm0
movsd qword [ebx], xmm0
mov ecx, edi
add ecx, 0x14
cmp byte [ebx + 0x17], 0
jns 0x512559
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004f7b90
sub esp, 8
movsd xmm0, qword [ebx + 0x18]
movsd qword [edi + 0x20], xmm0
mov ebx, dword [ebx + 0x20]
mov eax, ebx
shr eax, 0xe
mov ecx, ebx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x75cc90]
bt ecx, eax
jae 0x51245f
mov dword [esp], ebx
call fcn.00494f50
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x28], ebx
test ebx, ebx
je 0x512571
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebx + 0xc]
inc eax
movq xmm2, qword [0x6d7910]
movd xmm0, eax
por xmm0, xmm2
subsd xmm0, xmm2
cvtsd2ss xmm0, xmm0
movss xmm1, dword [ebx + 0x10]
test esi, esi
je 0x512498
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x512498
mov ecx, dword [ebx]
mov eax, dword [ecx + edx*4]
test eax, eax
jne 0x512459
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 0x512442
mov eax, dword [eax + 4]
lea ecx, [esi - 1]
test esi, ecx
je 0x512552
cmp eax, esi
jb 0x51243b
xor edx, edx
div esi
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, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ecx, dword [eax]
mov dword [edi], ecx
jmp 0x512440
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x764c90], 1
jmp 0x5123ac
and eax, dword [ebp - 0x20]
jmp 0x512313
lea edx, [esi - 1]
mov ecx, dword [ebp - 0x14]
and edx, ecx
jmp 0x5122ce
xor ebx, ebx
inc ebx
jmp 0x5124dd
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00580d70
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
cvttss2si ecx, xmm0
mov edx, ecx
sar edx, 0x1f
subss xmm0, dword [0x6d7918]
cvttss2si eax, xmm0
and eax, edx
or eax, ecx
lea ecx, [esi + esi]
cmp esi, 3
jb 0x512493
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 0x512540
lea eax, [ebx - 1]
test ebx, eax
je 0x5124fa
mov dword [esp], ebx
call fcn.004f32c0
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 4]
cmp ebx, esi
jbe 0x5125a8
mov eax, dword [ebp - 0x10]
mov dword [esp], ebx
mov esi, eax
mov ecx, eax
call fcn.00512680
sub esp, 4
mov eax, esi
mov esi, dword [eax + 4]
lea edx, [esi - 1]
test esi, edx
mov ebx, eax
je 0x512538
mov eax, dword [ebp - 0x14]
cmp eax, esi
jb 0x5125a1
xor edx, edx
div esi
jmp 0x512406
and edx, dword [ebp - 0x14]
jmp 0x512406
mov ebx, 2
jmp 0x5124fa
xor eax, eax
dec eax
mov dword [ebp - 0x18], eax
jmp 0x51231d
and eax, ecx
jmp 0x51243b
lea eax, [ebx + 0xc]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
jmp 0x51237d
ud2
int3
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.0049d4c0
sub esp, 8
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test al, al
je 0x512317
xor ecx, ecx
jmp 0x512447
mov edx, eax
jmp 0x512406
mov eax, dword [ebp - 0x10]
jae 0x51251c
movss xmm0, dword [eax + 0xc]
orpd xmm0, xmmword [0x6d7900]
subsd xmm0, qword [0x6d7910]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [eax + 0x10]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.00580d70
fstp dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x24]
cvttss2si eax, xmm0
mov ecx, eax
subss xmm0, dword [0x6d7918]
cvttss2si edx, xmm0
sar ecx, 0x1f
and edx, ecx
or edx, eax
cmp esi, 3
jb 0x512656
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 0x512656
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 0x51265e
mov dword [esp], edx
call fcn.004f32c0
cmp ebx, eax
cmovbe ebx, eax
cmp ebx, esi
mov eax, dword [ebp - 0x10]
jb 0x51250b
jmp 0x51251c