Function at 0x56b630
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 [0x80e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, edi
mov ecx, esi
mov edx, edi
cmp edi, 4
jb switch.0x0056b686
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 0x56b660
jmp dword [edx*4 + 0x796a08]
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 0x56b7ff
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 0x56baf6
mov edx, esi
cmp esi, edi
jb 0x56b717
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 0x56b7ff
mov ebx, dword [eax]
test ebx, ebx
je 0x56b7ff
lea eax, [edi - 1]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 4]
cmp eax, esi
jne 0x56b7da
movsx edx, byte [ebx + 0x13]
test edx, edx
jns 0x56baef
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 8]
test dl, dl
jns 0x56b75d
mov eax, dword [eax]
test ecx, ecx
js 0x56bb2e
sete dl
test eax, eax
setne dh
or dh, dl
je 0x56bb2e
cmp ecx, dword [ebp + 0xc]
jne 0x56b7f5
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.005cb2cd
add esp, 0xc
test eax, eax
jne 0x56b7f5
add ebx, 0x14
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c9f16
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.0x56b686.2
mov edi, edx
or edi, 7
inc edi
push edi
call fcn.005c8b59
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 0x56b886
cmp dword [ebp - 0x68], 1
jbe 0x56bb08
cmp eax, edi
mov ecx, dword [ebp - 0x6c]
jb 0x56b7f1
xor edx, edx
div edi
mov eax, edx
cmp eax, ecx
jne 0x56b7ff
mov ebx, dword [ebx]
test ebx, ebx
jne 0x56b73a
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.005823e0
mov esi, dword [ebx]
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [0x8072c0]
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 0x56b843
dec dword [esi + 4]
je 0x56bb70
test al, al
je 0x56bb27
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 0x56bb30
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + 0xc]
mov byte [ebp - 0x70], al
cmp edx, 0xa
ja 0x56b7b4
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 0x56bb2e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x56b8ad
push ecx
push ebx
push eax
call fcn.005cc950
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 0x56bb00
mov eax, dword [ebp - 0x54]
test eax, eax
js 0x56bb2e
mov edx, dword [ebp - 0x58]
sete bl
test edx, edx
setne bh
or bh, bl
je 0x56bb2e
push eax
push edx
call fcn.00582250
mov dword [ebp - 0x48], eax
mov edi, dword [esi]
test edi, edi
je 0x56bb38
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x81756c]
bt ecx, eax
jae 0x56baaa
push edi
call fcn.004bee90
add esp, 4
mov dword [ebp - 0x44], edi
cmp byte [esi + 0xf], 0
js 0x56bb5e
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xa
mov esp, dword [ebp - 0x6c]
mov edi, dword [ebp + 8]
ja 0x56bacc
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 0x56bb2e
test ebx, ebx
je 0x56b98b
push ebx
push edi
push eax
call fcn.005cc950
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 0x56bb13
push dword [ebp - 0x54]
push dword [ebp - 0x58]
call fcn.0054a440
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 + 0x81756c]
bt ecx, eax
jae 0x56babb
push esi
call fcn.004bee90
add esp, 4
mov dword [ebp - 0x20], esi
test esi, esi
je 0x56bb3b
lea esi, [ebp - 0x18]
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x40]
push eax
push eax
push esi
call fcn.0056bc80
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 + 0x81756c]
bt edx, ecx
jae 0x56ba37
push eax
call fcn.004befb0
add esp, 4
mov dword [ebp - 0x20], 0
cmp byte [ebp - 0x29], 0
jns 0x56ba4f
push dword [ebp - 0x34]
call fcn.005c8b90
add esp, 4
cmp byte [ebp - 0x35], 0
js 0x56bb3e
cmp byte [ebp - 0x59], 0
js 0x56bb4e
mov eax, dword [ebp - 0x44]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x81756c]
bt edx, ecx
jae 0x56ba85
push eax
call fcn.004befb0
add esp, 4
mov dword [ebp - 0x44], 0
cmp byte [ebp - 0x4d], 0
jns 0x56ba9d
push dword [ebp - 0x58]
call fcn.005c8b90
add esp, 4
test ebx, ebx
jne 0x56b78d
jmp 0x56bb2e
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x81f56c], 1
jmp 0x56b942
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x81f56c], 1
jmp 0x56b9f7
mov esi, ebx
or esi, 7
inc esi
push esi
call fcn.005c8b59
add esp, 4
mov dword [ebp - 0x64], eax
or esi, 0x80000000
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x60], ebx
jmp 0x56b967
mov ecx, edx
jmp 0x56b754
lea edx, [edi - 1]
and edx, esi
jmp 0x56b717
lea edx, [ebp - 0x58]
jmp 0x56b90b
and eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x6c]
jmp 0x56b7f1
mov eax, dword [ebp - 0x50]
mov dword [ecx + 8], eax
movsd xmm0, qword [ebp - 0x58]
movsd qword [ecx], xmm0
jmp 0x56b9c5
xor ebx, ebx
jmp 0x56b790
ud2
mov ecx, dword [ebp - 0x68]
call fcn.005fe450
int3
int3
push dword [ebp - 0x40]
call fcn.005c8b90
add esp, 4
jmp 0x56ba59
push dword [ebp - 0x64]
call fcn.005c8b90
add esp, 4
jmp 0x56ba63
mov eax, dword [ebp - 0x68]
push dword [eax]
call fcn.005c8b90
add esp, 4
jmp 0x56b94f
mov ebx, eax
mov eax, dword [esi]
mov edi, dword [eax + 0x18]
mov ecx, edi
call dword [0x8072c0]
mov ecx, esi
push 1
call edi
mov eax, ebx
jmp 0x56b843
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 0x56bfe7
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 0x56bf26
mov ecx, dword [ebp - 0x14]
mov edx, ecx
cmp ecx, esi
jb 0x56bd6e
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 0x56bdbd
mov edi, dword [eax]
test edi, edi
je 0x56bdbd
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 0x56c014
cmp ebx, 1
jbe 0x56bf1e
cmp eax, esi
jb 0x56bdb0
xor edx, edx
div esi
mov eax, edx
mov edx, dword [ebp - 0x18]
cmp eax, edx
jne 0x56bdbd
mov edi, dword [edi]
test edi, edi
jne 0x56bd92
mov dword [esp], 0x2c
call fcn.005c8b59
test eax, eax
je 0x56c00f
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 0x56bff9
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0054a440
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 + 0x81756c]
bt ecx, eax
jae 0x56beff
mov dword [esp], ebx
call fcn.004bee90
mov edx, dword [ebp - 0x18]
mov dword [edi + 0x28], ebx
test ebx, ebx
je 0x56c011
mov ebx, dword [ebp - 0x10]
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]
test esi, esi
je 0x56bf38
movd xmm3, esi
por xmm3, xmm2
subsd xmm3, xmm2
xorps xmm2, xmm2
cvtsd2ss xmm2, xmm3
mulss xmm2, xmm1
ucomiss xmm0, xmm2
ja 0x56bf38
mov ecx, dword [ebx]
mov eax, dword [ecx + edx*4]
test eax, eax
jne 0x56bef9
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 0x56bee2
mov eax, dword [eax + 4]
lea ecx, [esi - 1]
test esi, ecx
je 0x56bff2
cmp eax, esi
jb 0x56bedb
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 0x56bee0
mov eax, ebx
shr eax, 0x15
mov byte [eax + 0x81f56c], 1
jmp 0x56be4c
and eax, dword [ebp - 0x20]
jmp 0x56bdb3
lea edx, [esi - 1]
mov ecx, dword [ebp - 0x14]
and edx, ecx
jmp 0x56bd6e
xor ebx, ebx
inc ebx
jmp 0x56bf7d
divss xmm0, xmm1
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005fb940
fstp dword [ebp - 0x28]
movss xmm0, dword [ebp - 0x28]
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 0x56bf33
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 0x56bfe0
lea eax, [ebx - 1]
test ebx, eax
je 0x56bf9a
mov dword [esp], ebx
call fcn.00545b70
mov ebx, eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 4]
cmp ebx, esi
jbe 0x56c048
mov eax, dword [ebp - 0x10]
mov dword [esp], ebx
mov esi, eax
mov ecx, eax
call fcn.0056c120
sub esp, 4
mov eax, esi
mov esi, dword [eax + 4]
lea edx, [esi - 1]
test esi, edx
mov ebx, eax
je 0x56bfd8
mov eax, dword [ebp - 0x14]
cmp eax, esi
jb 0x56c041
xor edx, edx
div esi
jmp 0x56bea6
and edx, dword [ebp - 0x14]
jmp 0x56bea6
mov ebx, 2
jmp 0x56bf9a
xor eax, eax
dec eax
mov dword [ebp - 0x18], eax
jmp 0x56bdbd
and eax, ecx
jmp 0x56bedb
lea eax, [ebx + 0xc]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
jmp 0x56be1d
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.004c73f0
sub esp, 8
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test al, al
je 0x56bdb7
xor ecx, ecx
jmp 0x56bee7
mov edx, eax
jmp 0x56bea6
mov eax, dword [ebp - 0x10]
jae 0x56bfbc
movss xmm0, dword [eax + 0xc]
orpd xmm0, xmmword [0x791640]
subsd xmm0, qword [0x791630]
cvtsd2ss xmm0, xmm0
divss xmm0, dword [eax + 0x10]
cvtss2sd xmm0, xmm0
movsd qword [esp], xmm0
call fcn.005fb940
fstp dword [ebp - 0x24]
movss xmm0, dword [ebp - 0x24]
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 0x56c0f6
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 0x56c0f6
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 0x56c0fe
mov dword [esp], edx
call fcn.00545b70
cmp ebx, eax
cmovbe ebx, eax
cmp ebx, esi
mov eax, dword [ebp - 0x10]
jb 0x56bfab
jmp 0x56bfbc