Function at 0x5da3a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.004a2410
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov edx, eax
push ebx
push ebp
push esi
lea ebx, [ecx + 0xe]
sub edx, ecx
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
nop dword [eax]
movzx ecx, byte [eax + 0xf]
movzx edx, byte [ebx + 1]
mov ebp, dword [esp + 0x30]
xor edx, ecx
mov ecx, edx
mov dword [esp + 0x20], 0xe
and ecx, 0xfffffff0
and edx, 0xf
add edx, edx
mov ebx, dword [ebp + edx*8 + 8]
mov esi, dword [ebp + edx*8 + 4]
mov eax, dword [ebp + edx*8 + 0xc]
mov edi, dword [edi + edx*8]
lea edx, [ecx + ebp]
mov ecx, ebx
xor ebp, ebp
and ecx, 0xf
shrd ebx, eax, 4
xor ebx, dword [edx + 8]
mov ecx, dword [ecx*4 + 0x6a6b68]
mov dword [esp + 0x34], ecx
mov ecx, edi
shrd ecx, esi, 4
shr eax, 4
xor ebp, ecx
shr esi, 4
mov ecx, dword [esp + 0x34]
xor ebp, dword [edx]
xor ecx, esi
xor ecx, dword [edx + 4]
shl edi, 0x1c
mov dword [esp + 0x10], ebp
or eax, edi
mov ebp, dword [esp + 0x18]
xor eax, dword [edx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x24], ebp
mov ecx, dword [esp + 0x1c]
and ebx, 0xf
movzx edx, byte [ecx + ebp]
movzx ecx, byte [ebp]
xor ebp, ebp
mov edi, dword [ebx*4 + 0x6a6b68]
xor edx, ecx
mov ecx, dword [esp + 0x10]
mov esi, edx
mov ebx, dword [esp + 0x34]
and edx, 0xf
shrd ecx, ebx, 4
shl dword [esp + 0x10], 0x1c
add edx, edx
xor ebp, ecx
shr ebx, 4
mov ecx, dword [esp + 0x30]
xor edi, ebx
xor ebx, ebx
and esi, 0xfffffff0
xor ebp, dword [ecx + edx*8]
xor edi, dword [ecx + edx*8 + 4]
mov ecx, dword [esp + 0x14]
shrd ecx, eax, 4
or ebx, ecx
shr eax, 4
mov ecx, dword [esp + 0x10]
or ecx, eax
mov eax, dword [esp + 0x30]
xor ecx, dword [eax + edx*8 + 0xc]
xor ebx, dword [eax + edx*8 + 8]
mov edx, ecx
mov ecx, ebx
xor eax, eax
and ecx, 0xf
shrd ebx, edx, 4
shr edx, 4
mov ecx, dword [ecx*4 + 0x6a6b68]
mov dword [esp + 0x34], ecx
mov ecx, ebp
shrd ecx, edi, 4
xor eax, ecx
shr edi, 4
mov ecx, dword [esp + 0x34]
xor ecx, edi
mov edi, dword [esp + 0x30]
xor ecx, dword [esi + edi + 4]
xor eax, dword [esi + edi]
mov dword [esp + 0x34], ecx
xor ecx, ecx
or ecx, ebx
mov dword [esp + 0x10], eax
xor ecx, dword [esi + edi + 8]
mov eax, ebp
mov ebp, dword [esp + 0x24]
shl eax, 0x1c
dec ebp
mov dword [esp + 0x14], ecx
or eax, edx
mov ecx, dword [esp + 0x20]
xor eax, dword [esi + edi + 0xc]
dec ecx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
test ecx, ecx
jns 0x5da450
mov edx, dword [esp + 0x34]
mov ecx, edx
shr ecx, 0x18
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
sub dword [esp + 0x1c], 0x10
mov byte [eax], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 1], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 2], cl
mov byte [eax + 3], dl
mov edx, dword [esp + 0x10]
mov ecx, edx
shr ecx, 0x18
mov byte [eax + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 5], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 6], cl
mov byte [eax + 7], dl
mov edx, dword [esp + 0x24]
mov ecx, edx
shr ecx, 0x18
mov byte [eax + 8], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 9], cl
mov ecx, edx
shr ecx, 8
mov byte [eax + 0xa], cl
mov byte [eax + 0xb], dl
mov edx, ebx
mov ebx, dword [esp + 0x18]
mov ecx, edx
shr ecx, 0x18
add ebx, 0x10
mov byte [eax + 0xc], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 0xd], cl
mov ecx, edx
shr ecx, 8
sub dword [esp + 0x38], 0x10
mov byte [eax + 0xe], cl
mov byte [eax + 0xf], dl
mov dword [esp + 0x18], ebx
jne 0x5da3d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret