Function at 0x5b4d40
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, eax
mov eax, ecx
push ebx
movzx ebp, al
mov ebx, 0xa
shl ebp, 3
sub esp, 0x1c
mov ecx, dword [esi]
movzx eax, byte [esp + 0x30]
mov byte [esp + 0x1b], cl
or ebp, eax
mov eax, ebp
lea esi, [esi]
nop
lea edx, [eax + eax]
shr eax, 9
imul eax, eax, 0x537
xor eax, edx
sub ebx, 1
jne 0x5b4d70
shl ebp, 0xa
mov dword [esp + 0x14], ebx
or ebp, eax
mov dword [esp + 0x10], edi
mov eax, ebp
xor ebp, ebp
xor eax, 0x5412
mov dword [esp + 0xc], eax
mov ebx, eax
mov eax, ecx
jmp 0x5b4daa
mov eax, dword [esi]
mov ecx, ebp
mov edi, ebx
mov edx, dword [esi + 8]
mov dword [esp + 4], ebp
shr edi, cl
mov dword [esp], 8
add ebp, 1
mov ecx, edi
and ecx, 1
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x10]
call fcn.005b4cd0
cmp ebp, 6
jne 0x5b4da8
mov ebp, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov dword [esp + 4], 7
mov ecx, ebp
mov dword [esp], 8
mov ebx, dword [esp + 0x14]
shr ecx, 6
and ecx, 1
mov dword [esp + 8], ecx
mov ecx, edi
call fcn.005b4cd0
mov ecx, ebp
mov edx, dword [esi + 8]
mov eax, dword [esi]
shr ecx, 7
mov dword [esp + 4], 8
and ecx, 1
mov dword [esp], 8
mov dword [esp + 8], ecx
mov ecx, edi
call fcn.005b4cd0
mov ecx, ebp
mov edx, dword [esi + 8]
mov eax, dword [esi]
shr ecx, 8
mov dword [esp + 4], 8
and ecx, 1
mov dword [esp], 7
mov dword [esp + 8], ecx
mov ecx, edi
mov dword [esp + 0xc], ebp
mov ebp, 9
call fcn.005b4cd0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0xc]
nop
mov ecx, ebp
mov edi, ebx
mov edx, dword [esi + 8]
mov eax, dword [esi]
shr edi, cl
mov dword [esp + 4], 8
mov ecx, edi
and ecx, 1
mov dword [esp + 8], ecx
mov ecx, 0xe
sub ecx, ebp
add ebp, 1
mov dword [esp], ecx
mov ecx, dword [esp + 0x10]
call fcn.005b4cd0
cmp ebp, 0xf
jne 0x5b4e70
movzx eax, byte [esp + 0x1b]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
sub eax, 1
mov byte [esp + 0x14], al
nop
movzx eax, byte [esp + 0x14]
mov esi, dword [esp + 0xc]
mov ecx, ebx
sub eax, ebx
shr esi, cl
add ebx, 1
movzx ebp, al
mov ecx, esi
mov eax, dword [esp + 0x10]
and ecx, 1
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov dword [esp + 4], ecx
mov ecx, ebp
mov dword [esp], 8
call fcn.005b4b40
mov eax, dword [edi]
mov edx, 1
lea ecx, [ebp + eax*8]
mov eax, ecx
not ecx
shr eax, 3
and ecx, 7
add eax, dword [edi + 8]
shl edx, cl
or byte [eax], dl
cmp ebx, 8
jne 0x5b4ec0
movzx eax, byte [esp + 0x1b]
mov esi, dword [esp + 0x10]
lea ebp, [eax - 0xf]
mov eax, ebp
mov byte [esp + 0x10], al
lea esi, [esi]
nop
mov ebp, dword [esp + 0xc]
mov ecx, ebx
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov dword [esp], 8
shr ebp, cl
mov ecx, ebp
and ecx, 1
mov dword [esp + 8], ecx
movzx ecx, byte [esp + 0x10]
add ecx, ebx
add ebx, 1
movzx ecx, cl
mov dword [esp + 4], ecx
mov ecx, edi
call fcn.005b4cd0
cmp ebx, 0xf
jne 0x5b4f30
movzx eax, byte [esp + 0x1b]
mov ebx, dword [esi]
mov ecx, edi
mov edx, dword [esi + 8]
mov dword [esp + 8], 1
sub eax, 8
mov dword [esp], 8
movzx eax, al
mov dword [esp + 4], eax
mov eax, ebx
call fcn.005b4cd0
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret