Function at 0x4b5980
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push esi
push edi
mov edi, ecx
mov esi, 1
bsr ecx, eax
mov eax, esi
mov dword [ebp - 0x1c], edi
shl eax, cl
cmp edx, eax
ja 0x4b5b80
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [edi + 4]
push eax
mov dword [ebp - 4], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [edi + 0xc]
mov dword [ebp - 0x20], ecx
lea eax, [esi + esi]
push eax
call fcn.004948d0
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], esi
mov edi, dword [edi + 4]
mov edi, dword [edi]
mov eax, edi
mov dword [ebp - 0x18], edi
cmp edi, ecx
je 0x4b5b50
nop word [eax + eax]
mov edx, dword [edi + 0xc]
mov esi, dword [edi + 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x10], edx
add edx, esi
mov dword [ebp - 0xc], edx
xor edx, edx
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], edx
cmp esi, dword [ebp - 0xc]
je 0x4b5a53
mov eax, dword [ebp - 8]
mov edx, esi
mov edi, dword [ebp - 0xc]
nop
mov esi, eax
shl esi, 6
mov dword [ebp - 0x10], esi
mov esi, eax
mov ecx, dword [ebp - 0x10]
shr esi, 2
add ecx, esi
movsx esi, byte [edx]
add esi, 0x9e3779b9
inc edx
add esi, ecx
xor eax, esi
cmp edx, edi
jne 0x4b5a20
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi + 0x18]
and esi, edx
mov edx, dword [ebp - 0x20]
mov edx, dword [edx]
lea edx, [edx + esi*8]
mov esi, dword [edx]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], esi
cmp esi, ecx
jne 0x4b5a79
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x4b5b3d
mov esi, dword [edx + 4]
mov ecx, dword [esi + 0xc]
cmp dword [edi + 0xc], ecx
jne 0x4b5acd
mov eax, dword [edi + 8]
push ecx
push dword [esi + 8]
mov dword [ebp - 8], eax
push eax
call fcn.004959f0
add esp, 0xc
test eax, eax
mov eax, dword [ebp + 8]
jne 0x4b5ad2
mov ecx, dword [esi]
mov dword [ebp - 0x10], ecx
cmp ecx, edi
je 0x4b5ac5
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
mov dword [edx], ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], edi
jmp 0x4b5b3a
mov ecx, dword [edi + 8]
jmp 0x4b5ad5
mov ecx, dword [ebp - 8]
mov edx, dword [edi + 8]
mov dword [ebp - 0xc], esi
cmp dword [ebp - 0x10], esi
je 0x4b5b14
mov esi, dword [esi + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], esi
mov eax, dword [esi + 0xc]
cmp dword [edi + 0xc], eax
jne 0x4b5b0a
push eax
push dword [esi + 8]
push ecx
call fcn.004959f0
add esp, 0xc
test eax, eax
je 0x4b5b58
mov ecx, dword [ebp - 8]
mov edx, dword [edi + 8]
jmp 0x4b5b0c
mov ecx, edx
cmp dword [ebp - 0x10], esi
jne 0x4b5ae0
mov eax, dword [ebp + 8]
mov esi, dword [edi + 4]
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov dword [edx], ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp eax, ecx
jne 0x4b59f0
nop word [eax + eax]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [esi], eax
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
mov dword [edx], ecx
mov ecx, dword [ecx + 4]
mov dword [ecx], edi
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x4b5b3a
push str.invalid_hash_bucket_count
call fcn.006ee17a
int3