Function at 0x100bef10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x24
call fcn.1011abd0
mov edx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
mov esi, dword [esp + 0x44]
mov ebp, 1
mov ecx, esi
shl ebp, cl
push edi
mov edi, dword [esp + 0x40]
cmp ebx, dword [edx + 8]
jg 0x100bef40
mov eax, edx
jmp 0x100bef4e
push ebx
push edx
call fcn.100882a0
mov edx, dword [esp + 0x40]
add esp, 8
test eax, eax
jne 0x100bef5a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
cmp esi, 3
jg 0x100befcb
xor ecx, ecx
mov dword [esp + 0x3c], ecx
test ebx, ebx
jle 0x100bf12b
nop dword [eax]
xor esi, esi
xor eax, eax
test ebp, ebp
jle 0x100befac
nop dword [eax + eax]
mov ecx, eax
xor ecx, dword [esp + 0x44]
lea edx, [ecx - 1]
not ecx
shr edx, 0x1f
shr ecx, 0x1f
and edx, ecx
neg edx
and edx, 1
neg edx
and edx, dword [edi + eax*4]
inc eax
or esi, edx
cmp eax, ebp
jl 0x100bef80
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
mov dword [eax + ecx*4], esi
inc ecx
lea eax, [ebp*4]
mov dword [esp + 0x3c], ecx
add edi, eax
cmp ecx, ebx
jl 0x100bef70
mov dword [edx + 4], ebx
jmp 0x100bf132
mov edx, dword [esp + 0x44]
lea ecx, [esi - 2]
sar edx, cl
mov esi, 1
shl esi, cl
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x2c], esi
lea eax, [esi - 1]
and ecx, eax
mov eax, edx
mov dword [esp + 0x18], ecx
not eax
shr eax, 0x1f
lea ecx, [edx - 1]
shr ecx, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 1
and ecx, 1
neg ecx
mov dword [esp + 0x28], ecx
lea ecx, [eax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
mov eax, edx
neg ecx
xor eax, 2
and ecx, 1
xor edx, 3
neg ecx
mov dword [esp + 0x24], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
lea eax, [edx - 1]
shr eax, 0x1f
neg ecx
not edx
and ecx, 1
shr edx, 0x1f
neg ecx
and eax, edx
mov dword [esp + 0x20], ecx
neg eax
xor ecx, ecx
and eax, 1
mov dword [esp + 0x14], ecx
neg eax
mov dword [esp + 0x1c], eax
test ebx, ebx
jle 0x100bf127
shl ebp, 2
mov dword [esp + 0x30], ebp
xor edx, edx
xor ebp, ebp
mov dword [esp + 0x48], edx
test esi, esi
jle 0x100bf104
lea eax, [esi + esi*2]
lea ecx, [edi + esi*8]
lea eax, [edi + eax*4]
mov dword [esp + 0x10], ecx
lea ebx, [edi + esi*4]
mov dword [esp + 0x40], eax
mov eax, dword [eax]
lea ebx, [ebx + 4]
mov ecx, dword [ecx]
mov esi, ebp
and ecx, dword [esp + 0x20]
and eax, dword [esp + 0x1c]
xor esi, dword [esp + 0x18]
or ecx, eax
mov edx, dword [ebx - 4]
and edx, dword [esp + 0x24]
mov eax, dword [edi + ebp*4]
or edx, ecx
and eax, dword [esp + 0x28]
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
or eax, edx
mov edx, dword [esp + 0x48]
and ecx, esi
mov esi, dword [esp + 0x2c]
neg ecx
and ecx, 1
inc ebp
neg ecx
and ecx, eax
mov eax, dword [esp + 0x40]
or edx, ecx
add eax, 4
mov ecx, dword [esp + 0x10]
add ecx, 4
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
cmp ebp, esi
jl 0x100bf094
mov ebx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
add edi, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [eax + ecx*4], edx
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, ebx
jl 0x100bf070
mov edx, dword [esp + 0x38]
mov dword [edx + 4], ebx
jmp 0x100bf132
mov edx, dword [esp + 0x38]
mov dword [edx + 4], ebx
test ebx, ebx
jle 0x100bf153
mov eax, dword [edx]
lea ecx, [ebx - 1]
lea ecx, [eax + ecx*4]
nop word [eax + eax]
mov eax, dword [ecx]
lea ecx, [ecx - 4]
test eax, eax
jne 0x100bf14e
dec ebx
test ebx, ebx
jg 0x100bf140
mov dword [edx + 4], ebx
test ebx, ebx
jne 0x100bf15c
mov dword [edx + 0xc], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret