Function at 0x100cebc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x138
push ebx
mov ebx, dword [esp + 0x158]
push ebp
push esi
mov eax, dword [ebx]
push edi
add eax, 0x48
push eax
call fcn.100af7f0
mov edx, dword [esp + 0x16c]
add esp, 4
test edx, edx
mov ebp, eax
je 0x100cec31
mov eax, dword [edx]
cmp eax, 0x20
jge 0x100cec27
mov esi, dword [edx + 4]
mov ecx, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x20
lea edi, [eax + ebp]
sub ecx, eax
mov esi, 0x101dec38
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x100cec3f
mov esi, dword [edx + 4]
mov ecx, 8
jmp 0x100cec3b
mov ecx, 8
mov esi, 0x101dec38
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x160]
lea edi, [ebp + 0x20]
mov ecx, 8
mov esi, dword [edx + 4]
mov edx, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov byte [ebp + 0x40], al
sar ecx, 8
sar edx, 0x10
sar eax, 0x18
mov byte [ebp + 0x41], cl
mov byte [ebp + 0x42], dl
mov byte [ebp + 0x43], al
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov eax, ecx
lea edi, [ebp + 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [esp + 0x170]
add eax, 0x44
test ecx, ecx
jne 0x100cecad
mov byte [eax + ebp], 0xff
inc eax
mov byte [eax + ebp], 0xff
inc eax
mov byte [eax + ebp], 0xff
inc eax
mov byte [eax + ebp], 0xff
inc eax
mov esi, dword [esp + 0x16c]
push esi
push eax
push ebp
call fcn.100cfdd0
mov eax, dword [esp + 0x15c]
add esp, 0xc
cmp eax, 3
jne 0x100ced08
mov ebx, dword [esp + 0x154]
mov edi, 0x32
push esi
push ebx
push esi
call fcn.100cfdd0
add esp, 0xc
dec edi
jne 0x100cecd7
mov eax, dword [esp + 0x15c]
mov ecx, 8
lea edi, [esp + 0x18]
mov esi, dword [eax + 4]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x13
mov dword [esp + 0x14], ecx
jmp 0x100ced8c
cmp eax, 2
jne 0x100cee52
mov edx, dword [esp + 0x154]
lea ecx, [esp + 0x48]
push ecx
push edx
push esi
call fcn.100cf210
mov edi, dword [esp + 0x168]
add esp, 0xc
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
xor esi, esi
mov eax, dword [edi + 4]
mov cl, byte [eax + esi]
lea eax, [esp + 0x12]
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x13]
mov edx, dword [esp + 0x14]
push edx
push eax
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.100cf290
add esp, 0x10
mov byte [esp + esi + 0x18], al
inc esi
cmp esi, 0x20
jl 0x100ced3a
mov ecx, 8
mov edi, 0x101dec38
lea esi, [esp + 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov edx, eax
sete dl
mov esi, edx
jmp 0x100cee54
mov ecx, dword [esp + 0x14]
xor eax, eax
test ebx, ebx
jle 0x100cedaf
mov edi, dword [esp + 0x16c]
lea edx, [esp + 0x38]
sub edi, edx
lea esi, [esp + eax + 0x38]
mov dl, byte [edi + esi]
xor dl, cl
inc eax
cmp eax, ebx
mov byte [esi], dl
jl 0x100ced9f
lea eax, [esp + 0x48]
lea ecx, [esp + 0x38]
push eax
push ebx
push ecx
call fcn.100cf210
add esp, 0xc
mov byte [esp + 0x12], 0
mov byte [esp + 0x13], 0
xor esi, esi
mov dl, byte [esp + esi + 0x18]
lea eax, [esp + 0x12]
push edx
lea ecx, [esp + 0x17]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
call fcn.100cf290
add esp, 0x10
mov byte [esp + esi + 0x18], al
inc esi
cmp esi, 0x20
jl 0x100cedce
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 0x14], eax
jns 0x100ced88
mov eax, dword [esp + 0x164]
mov ecx, 8
mov esi, 0x101dec38
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
mov esi, dword [eax + 4]
mov edx, ecx
lea edi, [ebp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax]
add eax, 0x20
push eax
push ebp
call fcn.100cfdd0
add esp, 0xc
mov ecx, 4
mov edi, ebp
lea esi, [esp + 0x18]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov eax, edx
sete al
mov esi, eax
jmp 0x100cee54
xor esi, esi
push ebp
call fcn.100afa10
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x138
ret