Function at 0x100fa050
Capabilities:
Encode data using xor

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