Function at 0x40f570
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, 0x18
ja 0x40f5bf
cmp eax, 0xc
ja 0x40f800
cmp eax, 4
ja 0x40f8f9
test eax, eax
je 0x40f979
mov edx, 9
xor ecx, ecx
xor esi, esi
movsx edi, byte [ebx + esi]
imul ecx, ecx, 0xcc9e2d51
add ecx, edi
xor edx, ecx
inc esi
cmp eax, esi
jne 0x40f5a7
jmp 0x40f980
imul ecx, eax, 0xcc9e2d51
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebx + eax - 4]
imul edx, ecx, 0xcc9e2d51
shr edx, 0x11
imul ecx, ecx, 0x16a88000
or ecx, edx
imul esi, ecx, 0x1b873593
mov ecx, dword [ebx + eax - 8]
mov dword [ebp - 0x10], ecx
mov edx, ebx
mov ecx, dword [ebx + eax - 0x14]
mov dword [ebp - 0x18], ecx
xor esi, eax
mov edi, dword [ebx + eax - 0x10]
mov ecx, ebx
mov ebx, dword [ebx + eax - 0xc]
dec eax
mov edx, 0xcccccccd
mul edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x10]
imul eax, edx, 0xcc9e2d51
shr eax, 0x11
imul edx, edx, 0x16a88000
or edx, eax
mov dword [ebp - 0x10], edx
imul eax, edi, 0xcc9e2d51
shr eax, 0x11
imul edi, edi, 0x16a88000
or edi, eax
imul eax, ebx, 0xcc9e2d51
shr eax, 0x11
imul edx, ebx, 0x16a88000
or edx, eax
mov ebx, dword [ebp - 0x18]
imul eax, ebx, 0xcc9e2d51
shr eax, 0x11
imul ebx, ebx, 0x16a88000
or ebx, eax
rol esi, 0xd
imul eax, edi, 0x1b873593
lea esi, [esi + esi*4]
mov edi, 0xe6546b64
add esi, edi
xor esi, eax
imul eax, dword [ebp - 0x10], 0x1b873593
imul edx, edx, 0x1b873593
mov dword [ebp - 0x10], edx
mov edi, dword [ebp - 0x14]
xor eax, edi
rol eax, 0xd
lea eax, [eax + eax*4]
mov edx, 0xe6546b64
add eax, edx
xor eax, dword [ebp - 0x10]
imul edx, ebx, 0x1b873593
rol esi, 0xd
add edx, edi
lea ebx, [esi + esi*4]
rol eax, 0xd
mov esi, 0xe6546b64
add ebx, esi
lea edi, [eax + eax*4]
rol edx, 0xd
add edi, esi
mov eax, 0xe6546b64
lea esi, [edx + edx*4]
add esi, eax
shr dword [ebp - 0x1c], 4
mov eax, ecx
mov ecx, dword [ecx]
mov dword [ebp - 0x14], eax
imul edx, ecx, 0xcc9e2d51
shr edx, 0x11
imul ecx, ecx, 0x16a88000
or ecx, edx
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 8]
imul edx, ecx, 0xcc9e2d51
shr edx, 0x11
imul ecx, ecx, 0x16a88000
or ecx, edx
imul ecx, ecx, 0x1b873593
add ecx, edi
mov edx, dword [eax + 0xc]
imul edi, edx, 0xcc9e2d51
shr edi, 0x11
imul edx, edx, 0x16a88000
or edx, edi
imul edi, edx, 0x1b873593
mov edx, dword [eax + 4]
add esi, edx
add edi, edx
imul eax, dword [ebp - 0x10], 0x1b873593
mov dword [ebp - 0x10], eax
xor ebx, eax
rol ebx, 0xe
lea eax, [ebx + ebx*4]
mov edx, 0xe6546b64
add eax, edx
xor edi, eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x18], edx
rol esi, 0xd
imul ebx, esi, 0xcc9e2d51
rol ecx, 0xe
lea eax, [ecx + ecx*4]
mov ecx, 0xe6546b64
add eax, ecx
rol edi, 0xd
xor eax, edx
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov dword [ebp - 0x20], eax
lea esi, [eax + eax*4]
add edi, dword [ebp - 0x18]
lea eax, [edi + edi*4]
mov ecx, 0xe6546b64
add eax, ecx
push eax
call sub.api_ms_win_crt_utility_l1_1_0.dll__byteswap_ulong
add esp, 4
mov edi, eax
add ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
add ecx, 0x14
dec dword [ebp - 0x1c]
jne 0x40f6bf
rol edi, 0x15
imul eax, edi, 0xcc9e2d51
shr eax, 0x11
imul ecx, edi, 0x16a88000
or ecx, eax
imul eax, ecx, 0xcc9e2d51
shr esi, 0xb
mov ecx, dword [ebp - 0x20]
shl ecx, 0x15
lea ecx, [ecx + ecx*4]
or ecx, esi
imul edx, ecx, 0xcc9e2d51
shr edx, 0x11
imul ecx, ecx, 0x16a88000
add eax, ebx
rol eax, 0xd
or ecx, edx
lea eax, [eax + eax*4]
mov edx, 0xe6546b64
add eax, edx
rol eax, 0xf
add eax, ecx
imul ecx, eax, 0xcc9e2d51
shr ecx, 0x13
imul eax, eax, 0xc5aa2000
or eax, ecx
lea eax, [eax + eax*4]
add eax, edx
rol eax, 0xf
imul eax, eax, 0xcc9e2d51
jmp 0x40f9e8
mov edx, eax
shr edx, 1
mov ecx, dword [ebx + edx - 4]
imul esi, ecx, 0xcc9e2d51
shr esi, 0x11
imul ecx, ecx, 0x16a88000
or ecx, esi
mov esi, dword [ebx + 4]
imul edi, esi, 0xcc9e2d51
shr edi, 0x11
imul esi, esi, 0x16a88000
or esi, edi
imul ecx, ecx, 0x1b873593
xor ecx, eax
rol ecx, 0xd
lea edi, [ecx + ecx*4]
mov ecx, 0xe6546b64
add edi, ecx
imul esi, esi, 0x1b873593
xor esi, edi
mov edi, dword [ebx + eax - 8]
mov ecx, ebx
imul ebx, edi, 0xcc9e2d51
shr ebx, 0x11
imul edi, edi, 0x16a88000
or edi, ebx
rol esi, 0xd
lea esi, [esi + esi*4]
mov ebx, 0xe6546b64
add esi, ebx
imul edi, edi, 0x1b873593
xor edi, esi
mov edx, dword [ecx + edx]
imul esi, edx, 0xcc9e2d51
shr esi, 0x11
imul edx, edx, 0x16a88000
or edx, esi
mov eax, dword [ecx + eax - 4]
mov esi, dword [ecx]
rol edi, 0xd
lea edi, [edi + edi*4]
add edi, ebx
imul edx, edx, 0x1b873593
xor edx, edi
imul edi, esi, 0xcc9e2d51
shr edi, 0x11
imul esi, esi, 0x16a88000
or esi, edi
rol edx, 0xd
lea edx, [edx + edx*4]
mov ecx, 0xe6546b64
add edx, ecx
imul esi, esi, 0x1b873593
xor esi, edx
imul edx, eax, 0xcc9e2d51
shr edx, 0x11
imul eax, eax, 0x16a88000
or eax, edx
rol esi, 0xd
lea edx, [esi + esi*4]
add edx, ecx
mov ecx, 0xe6546b64
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
lea eax, [eax + eax*4]
add eax, ecx
jmp 0x40f9c7
lea ecx, [eax + eax*4]
mov edx, dword [ebx]
add edx, eax
mov esi, dword [ebx + eax - 4]
add esi, ecx
shr eax, 1
and eax, 4
mov eax, dword [ebx + eax]
imul edi, edx, 0xcc9e2d51
shr edi, 0x11
imul edx, edx, 0x16a88000
or edx, edi
imul edx, edx, 0x1b873593
xor edx, ecx
rol edx, 0xd
add eax, 9
lea ecx, [edx + edx*4]
mov edx, 0xe6546b64
add ecx, edx
imul edi, esi, 0xcc9e2d51
shr edi, 0x11
imul esi, esi, 0x16a88000
or esi, edi
imul esi, esi, 0x1b873593
xor esi, ecx
rol esi, 0xd
lea ecx, [esi + esi*4]
add ecx, edx
imul esi, eax, 0xcc9e2d51
shr esi, 0x11
imul eax, eax, 0x16a88000
or eax, esi
imul eax, eax, 0x1b873593
xor eax, ecx
rol eax, 0xd
lea eax, [eax + eax*4]
jmp 0x40f9c5
xor ecx, ecx
mov edx, 9
imul esi, eax, 0xcc9e2d51
shr esi, 0x11
imul eax, eax, 0x16a88000
or eax, esi
imul eax, eax, 0x1b873593
xor eax, edx
rol eax, 0xd
lea eax, [eax + eax*4]
mov edx, 0xe6546b64
add eax, edx
imul esi, ecx, 0xcc9e2d51
shr esi, 0x11
imul ecx, ecx, 0x16a88000
or ecx, esi
imul ecx, ecx, 0x1b873593
xor ecx, eax
rol ecx, 0xd
lea eax, [ecx + ecx*4]
add eax, edx
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
imul eax, ecx, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret