Function at 0x10102e20
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.10163470
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push ebx
push ebp
mov edx, eax
push esi
mov esi, dword [esp + 0x30]
lea ebx, [ecx + 0xe]
sub edx, ecx
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
lea esp, [esp]
movzx ecx, byte [eax + 0xf]
movzx edx, byte [ebx + 1]
xor edx, ecx
mov ecx, dword [esp + 0x34]
mov ebx, edx
and edx, 0xf
add edx, edx
xor eax, eax
mov ebp, dword [esi + edx*8]
mov edi, dword [esi + edx*8 + 4]
mov esi, dword [esi + edx*8 + 8]
mov ecx, dword [ecx + edx*8 + 0xc]
mov edx, esi
shrd esi, ecx, 4
or eax, esi
mov dword [esp + 0x38], ebp
shl dword [esp + 0x38], 0x1c
mov esi, dword [esp + 0x38]
shrd ebp, edi, 4
shr ecx, 4
and edx, 0xf
mov dword [esp + 0x10], eax
mov eax, dword [edx*4 + 0x101c2da8]
mov edx, dword [esp + 0x34]
or esi, ecx
shr edi, 4
and ebx, 0xfffffff0
xor ecx, ecx
xor eax, edi
mov edi, dword [esp + 0x10]
xor eax, dword [ebx + edx + 4]
xor edi, dword [ebx + edx + 8]
xor ecx, ebp
xor ecx, dword [ebx + edx]
xor esi, dword [ebx + edx + 0xc]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x20], 0xe
mov dword [esp + 0x24], ebp
mov ebx, esi
nop
mov ecx, dword [esp + 0x1c]
xor esi, esi
movzx edx, byte [ecx + ebp]
movzx ecx, byte [ebp]
xor edx, ecx
mov ebp, dword [esp + 0x14]
mov ecx, edx
shr ecx, 4
mov dword [esp + 0x28], ecx
mov ecx, edi
shrd edi, ebx, 4
and ecx, 0xf
shr ebx, 4
shl ebp, 0x1c
or ebp, ebx
mov ebx, dword [ecx*4 + 0x101c2da8]
mov ecx, dword [esp + 0x14]
shrd ecx, eax, 4
shr eax, 4
xor ebx, eax
mov eax, dword [esp + 0x34]
and edx, 0xf
add edx, edx
or esi, edi
xor esi, dword [eax + edx*8 + 8]
xor ebp, dword [eax + edx*8 + 0xc]
xor ebx, dword [eax + edx*8 + 4]
xor edi, edi
xor edi, ecx
xor edi, dword [eax + edx*8]
mov ecx, esi
shrd esi, ebp, 4
and ecx, 0xf
mov edx, edi
xor eax, eax
shl edx, 0x1c
shr ebp, 4
or eax, esi
mov esi, dword [esp + 0x34]
or edx, ebp
mov ebp, dword [esp + 0x24]
shrd edi, ebx, 4
mov dword [esp + 0x10], eax
mov eax, dword [ecx*4 + 0x101c2da8]
xor ecx, ecx
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x28]
xor ecx, edi
add edx, edx
shr ebx, 4
xor ecx, dword [esi + edx*8]
xor eax, ebx
mov ebx, dword [esp + 0x38]
xor eax, dword [esi + edx*8 + 4]
xor ebx, dword [esi + edx*8 + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
xor ecx, dword [esi + edx*8 + 8]
dec ebp
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebp
test ecx, ecx
jns 0x10102ee0
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x38]
mov ecx, eax
mov eax, dword [esp + 0x30]
shr ecx, 0x18
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 + 0x14]
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
sub dword [esp + 0x1c], 0x10
mov ecx, ebx
shr ecx, 0x18
mov byte [eax + 8], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 9], cl
mov ecx, ebx
shr ecx, 8
mov byte [eax + 0xa], cl
mov byte [eax + 7], dl
mov edx, edi
mov ecx, edx
shr ecx, 0x18
mov byte [eax + 0xc], cl
mov ecx, edx
shr ecx, 0x10
mov byte [eax + 0xb], bl
mov ebx, dword [esp + 0x18]
mov byte [eax + 0xd], cl
mov ecx, edx
shr ecx, 8
add ebx, 0x10
sub dword [esp + 0x3c], 0x10
mov byte [eax + 0xe], cl
mov byte [eax + 0xf], dl
mov dword [esp + 0x18], ebx
jne 0x10102e50
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret