Function at 0x41bcb4
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 0x41bd06
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 0x41bcd8
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
cmp edx, 3
je 0x41bd17
cmp edx, 2
je 0x41bd20
cmp edx, 1
je 0x41bd29
jmp 0x41bd34
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 0x41c055
mov eax, edi
call fcn.0045bf24
mov dword [esp + 0x38], eax
test eax, eax
jne 0x41bd70
mov eax, 0xffffffff
add esp, 0x40
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, edi
call fcn.0045bf24
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
push eax
push 0x878ac4
push 0x8782b0
call fcn.0046ccf4
mov eax, dword [esp + 0x48]
lea eax, [eax + eax]
mov dword [esp + 0x38], eax
push eax
call fcn.0046ed7c
add esp, 0x10
mov dword [esp + 0x10], eax
mov eax, edi
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
call fcn.00464754
mov eax, dword [esp + 0x38]
push eax
call fcn.0046ed7c
pop ecx
mov dword [esp + 0x1c], eax
mov eax, edi
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.00464754
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 0x41be67
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 0x41be27
movzx eax, byte [ebx]
mov byte [ebx], al
jmp 0x41be31
mov esi, dword [esp + 0x34]
movzx eax, byte [esi + ebp]
xor byte [ebx], al
inc ebx
inc edx
inc ebp
cmp ebp, 0x400
jl 0x41be1c
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 0x41be06
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x41bf83
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 0x41be9a
mov edx, ecx
sub edx, ebp
jmp 0x41be9f
mov edx, 0x400
mov ecx, dword [esp + 0x18]
lea esi, [ecx + ebp]
mov eax, esi
call fcn.0041c070
mov ecx, dword [esp + 0x10]
movzx ecx, word [ecx + edi*2]
movzx eax, ax
cmp ecx, eax
je 0x41bf5e
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 0x41bf49
mov eax, dword [esp + 0x3c]
test eax, eax
jbe 0x41c05f
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 0x41bf2b
mov ebx, eax
shl ebx, 0xa
lea edi, [ecx + ebx]
cmp esi, edi
jle 0x41bf2b
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 0x41bf0e
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 0x41beda
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 0x41be8c
mov ebx, dword [esp + 0xc]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41bf92
push eax
call fcn.0046f30e
pop ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41bfa1
push eax
call fcn.0046f30e
pop ecx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41bfb0
push eax
call fcn.0046f30e
pop ecx
cmp esi, 4
jl 0x41bfdc
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 0x41bfb5
cmp esi, 3
je 0x41bfed
cmp esi, 2
je 0x41bff6
cmp esi, 1
je 0x41bfff
jmp 0x41c00b
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 0x41c034
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.0046ccf4
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 0x41bf40