Function at 0x100dfec0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x24
call fcn.10163470
mov eax, dword [esp + 0x28]
push ebx
push esi
mov esi, dword [esp + 0x40]
mov ecx, esi
mov ebx, 1
shl ebx, cl
mov ecx, dword [esp + 0x34]
push edi
mov edi, dword [esp + 0x3c]
cmp ecx, dword [eax + 8]
jle 0x100dfef9
push ecx
push eax
call fcn.1008aa60
mov ecx, dword [esp + 0x40]
add esp, 8
test eax, eax
jne 0x100dff04
pop edi
pop esi
pop ebx
add esp, 0x24
ret
push ebp
cmp esi, 3
jg 0x100dff75
xor ebp, ebp
test ecx, ecx
jle 0x100e00cf
xor esi, esi
xor eax, eax
test ebx, ebx
jle 0x100dff49
lea esp, [esp]
mov ecx, eax
xor ecx, dword [esp + 0x44]
inc eax
lea edx, [ecx - 1]
shr edx, 0x1f
not ecx
shr ecx, 0x1f
and edx, ecx
neg edx
and edx, 1
neg edx
and edx, dword [edi + eax*4 - 4]
or esi, edx
cmp eax, ebx
jl 0x100dff20
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
inc ebp
mov eax, dword [eax]
mov dword [eax + ebp*4 - 4], esi
lea eax, [ebx*4]
add edi, eax
cmp ebp, ecx
jl 0x100dff14
mov eax, dword [esp + 0x38]
pop ebp
pop edi
pop esi
mov dword [eax + 4], ecx
mov eax, 1
pop ebx
add esp, 0x24
ret
mov ebp, dword [esp + 0x44]
lea ecx, [esi - 2]
mov esi, 1
shl esi, cl
mov edx, ebp
sar edx, cl
mov dword [esp + 0x2c], esi
lea eax, [esi - 1]
and ebp, eax
mov eax, edx
not eax
shr eax, 0x1f
lea ecx, [edx - 1]
shr ecx, 0x1f
and ecx, eax
neg ecx
and ecx, 1
neg ecx
mov dword [esp + 0x28], ecx
mov eax, edx
xor eax, 1
mov dword [esp + 0x18], ebp
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
neg ecx
and ecx, 1
neg ecx
mov eax, edx
xor eax, 2
mov dword [esp + 0x24], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
xor edx, 3
neg ecx
lea eax, [edx - 1]
shr eax, 0x1f
not edx
shr edx, 0x1f
and eax, edx
neg eax
and ecx, 1
and eax, 1
neg ecx
neg eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x14], eax
test ecx, ecx
jle 0x100e00cf
lea ecx, [ebx*4]
mov dword [esp + 0x30], ecx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x48], edx
test esi, esi
jle 0x100e00b0
lea eax, [esi + esi*2]
lea ecx, [edi + esi*8]
lea eax, [edi + eax*4]
lea ebp, [edi + esi*4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], eax
mov eax, dword [eax]
mov ecx, dword [ecx]
and ecx, dword [esp + 0x20]
and eax, dword [esp + 0x1c]
mov edx, dword [ebp]
and edx, dword [esp + 0x24]
or ecx, eax
mov eax, dword [edi + ebx*4]
and eax, dword [esp + 0x28]
or edx, ecx
mov esi, ebx
xor esi, dword [esp + 0x18]
or eax, edx
mov edx, dword [esp + 0x48]
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
mov esi, dword [esp + 0x2c]
neg ecx
and ecx, 1
neg ecx
and ecx, eax
mov eax, dword [esp + 0x40]
or edx, ecx
mov ecx, dword [esp + 0x10]
inc ebx
add eax, 4
add ecx, 4
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
lea ebp, [ebp + 4]
cmp ebx, esi
jl 0x100e0044
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
add edi, dword [esp + 0x30]
mov ecx, dword [ecx]
inc eax
mov dword [ecx + eax*4 - 4], edx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x14], eax
cmp eax, ecx
jl 0x100e0020
mov eax, dword [esp + 0x38]
pop ebp
pop edi
pop esi
mov dword [eax + 4], ecx
mov eax, 1
pop ebx
add esp, 0x24
ret