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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x40
mov esi, ecx
mov ebp, edx
mov edi, eax
mov edx, esi
xor ebx, ebx
xor ebx, esi
mov ecx, ebx
mov eax, ebp
cmp esi, 4
jl 0x41bcfa
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], esi
imul esi, dword [eax], 0x5bd1e995
mov ebp, esi
shr ebp, 0x18
xor esi, ebp
imul ebp, esi, 0x5bd1e995
imul ecx, ecx, 0x5bd1e995
xor ecx, ebp
add eax, 4
add edx, 0xfffffffc
cmp edx, 4
jge 0x41bccc
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp edx, 3
je 0x41bd0b
cmp edx, 2
je 0x41bd14
cmp edx, 1
je 0x41bd1d
jmp 0x41bd28
movzx edx, byte [eax + 2]
shl edx, 0x10
xor ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
xor ecx, edx
movzx eax, byte [eax]
xor ecx, eax
imul ecx, ecx, 0x5bd1e995
mov eax, ecx
shr eax, 0xd
xor ecx, eax
imul edx, ecx, 0x5bd1e995
mov eax, edx
shr eax, 0xf
xor edx, eax
mov eax, dword [esp + 0x60]
cmp eax, edx
je 0x41c049
mov eax, edi
call fcn.0045c310
mov dword [esp + 0x38], eax
test eax, eax
jne 0x41bd64
mov eax, 0xffffffff
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, edi
call fcn.0045c310
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
push eax
push 0x878ac4
push 0x8782b0
call fcn.0046d180
mov eax, dword [esp + 0x48]
lea eax, [eax + eax]
mov dword [esp + 0x38], eax
push eax
call fcn.0046f20c
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
call fcn.00464ca0
mov eax, dword [esp + 0x38]
push eax
call fcn.0046f20c
pop ecx
mov dword [esp + 0x1c], eax
mov eax, edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.00464ca0
mov eax, dword [esp + 0x38]
push eax
call fcn.00403564
pop ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x41be5b
xor eax, eax
mov edi, ebp
mov ecx, dword [esp + 0x3c]
shl ecx, 0xa
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
xor ebp, ebp
mov ebx, esi
mov edx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edi
mov ecx, dword [esp + 0x24]
cmp ecx, edx
jg 0x41be1b
movzx eax, byte [ebx]
mov byte [ebx], al
jmp 0x41be25
mov esi, dword [esp + 0x34]
movzx eax, byte [esi + ebp]
xor byte [ebx], al
inc ebx
inc edx
inc ebp
cmp ebp, 0x400
jl 0x41be10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov esi, dword [esp + 0x20]
add eax, 0x400
add edi, 0x400
cmp eax, ecx
jb 0x41bdfa
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x41bf77
xor edi, edi
xor edx, edx
mov eax, 0x400
mov dword [esp + 0xc], ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], esi
mov ebx, eax
mov ebp, edx
mov ecx, dword [esp + 0x24]
cmp ecx, ebx
jg 0x41be8e
mov edx, ecx
sub edx, ebp
jmp 0x41be93
mov edx, 0x400
mov ecx, dword [esp + 0x18]
lea esi, [ecx + ebp]
mov eax, esi
call fcn.0041c064
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edi*2]
movzx eax, ax
cmp ecx, eax
je 0x41bf52
xor ecx, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
movzx ebx, byte [ecx + esi]
movzx eax, byte [ebp + ecx]
cmp ebx, eax
je 0x41bf3d
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x41c053
xor edx, edx
xor eax, eax
mov edi, dword [esp + 0x18]
lea edi, [ecx + edi]
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
cmp eax, ebp
je 0x41bf1f
mov ebx, eax
shl ebx, 0xa
lea edi, [ecx + ebx]
cmp esi, edi
jle 0x41bf1f
mov edi, dword [esp + 0x38]
movzx ebx, byte [edi + ebx]
xor edx, ebx
movzx edx, dl
inc eax
mov ebx, dword [esp + 0x3c]
cmp eax, ebx
jb 0x41bf02
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
xor edx, ebx
mov eax, dword [esp + 0x30]
mov byte [eax + ecx], dl
inc ecx
cmp ecx, 0x400
jl 0x41bece
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 0x34]
add ebp, 0x400
add ebx, 0x400
inc edi
mov ecx, dword [esp + 0x3c]
cmp edi, ecx
jb 0x41be80
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bf86
push eax
call fcn.0046f79e
pop ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41bf95
push eax
call fcn.0046f79e
pop ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41bfa4
push eax
call fcn.0046f79e
pop ecx
cmp esi, 4
jl 0x41bfd0
imul ecx, dword [ebp], 0x5bd1e995
mov eax, ecx
shr eax, 0x18
xor ecx, eax
imul edi, ecx, 0x5bd1e995
imul ebx, ebx, 0x5bd1e995
xor ebx, edi
add ebp, 4
add esi, 0xfffffffc
cmp esi, 4
jge 0x41bfa9
cmp esi, 3
je 0x41bfe1
cmp esi, 2
je 0x41bfea
cmp esi, 1
je 0x41bff3
jmp 0x41bfff
movzx eax, byte [ebp + 2]
shl eax, 0x10
xor ebx, eax
movzx eax, byte [ebp + 1]
shl eax, 8
xor ebx, eax
movzx eax, byte [ebp]
xor ebx, eax
imul ebx, ebx, 0x5bd1e995
mov eax, ebx
shr eax, 0xd
xor ebx, eax
imul ebx, ebx, 0x5bd1e995
mov edx, ebx
shr edx, 0xf
xor ebx, edx
mov ecx, dword [esp + 0x60]
cmp ecx, ebx
je 0x41c028
mov eax, 0xffffffff
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x64]
push eax
push 0x878afc
push 0x8782b0
call fcn.0046d180
mov eax, 1
add esp, 0x4c
pop ebx
pop ebp
pop esi
pop edi
ret
xor eax, eax
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret
xor edx, edx
jmp 0x41bf34