Function at 0x100cb310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], edi
call fcn.100bb1b0
mov edx, eax
mov dword [ebp - 0xc], edx
test edx, edx
js 0x100cb556
mov ecx, dword [ebp + 0x18]
mov eax, 0xff
dec ecx
and ecx, 7
shl eax, cl
mov dword [ebp - 0x10], ecx
test byte [esi], al
jne 0x100cb551
lea ebx, [esi + 1]
test ecx, ecx
cmovne ebx, esi
dec edi
test ecx, ecx
mov dword [ebp - 4], ebx
cmovne edi, dword [ebp - 8]
mov esi, edi
sub esi, edx
sub esi, 1
jns 0x100cb375
mov eax, 0xffffff16
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
cmp eax, 0xffffffff
jne 0x100cb39a
cmp dword [ebp + 0x18], 0x400
mov eax, edx
mov dword [ebp + 0x14], eax
jne 0x100cb3ab
cmp edx, 0x40
jne 0x100cb3ab
mov eax, 0x3e
mov dword [ebp + 0x14], eax
jmp 0x100cb3ab
cmp eax, edx
jg 0x100cb44f
cmp eax, 0xffffffff
jl 0x100cb44f
inc eax
cmp esi, eax
jl 0x100cb44f
cmp byte [edi + ebx - 1], 0xbc
jne 0x100cb551
mov ecx, esi
call fcn.100d1c50
mov edi, eax
test edi, edi
jne 0x100cb3d6
lea eax, [edi - 0x7d]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [ebx + esi]
push esi
push edi
push dword [ebp - 0xc]
call fcn.100ca9c0
add esp, 0x10
mov dword [ebp + 0x18], eax
test eax, eax
je 0x100cb402
mov ecx, edi
call fcn.100d1c70
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov al, 1
shl al, cl
xor edx, edx
dec al
and byte [edi], al
and byte [ebx], al
mov eax, esi
sub eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
dec eax
test eax, eax
jle 0x100cb43e
mov eax, edi
mov ecx, ebx
sub eax, ebx
mov dword [ebp + 0x18], eax
mov al, byte [eax + ecx]
cmp al, byte [ecx]
jne 0x100cb448
mov eax, dword [ebp - 8]
inc edx
mov ebx, dword [ebp - 4]
dec eax
inc ecx
cmp edx, eax
mov eax, dword [ebp + 0x18]
jl 0x100cb427
mov al, byte [ebx + edx]
xor al, 1
cmp byte [edx + edi], al
je 0x100cb45b
mov ecx, edi
call fcn.100d1c70
mov eax, 0xffffff06
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [edx + 1]
mov eax, esi
sub eax, ecx
mov dword [ebp + 0x18], ecx
mov dword [ebp - 0x10], eax
mov edx, ecx
cmp ecx, esi
jge 0x100cb510
cmp eax, 0x40
jb 0x100cb510
mov eax, edx
add ecx, ebx
add eax, edi
mov dword [ebp + 0x18], eax
lea eax, [edi - 1]
add eax, esi
cmp ecx, eax
ja 0x100cb497
lea eax, [esi - 1]
add eax, ebx
cmp eax, dword [ebp + 0x18]
jae 0x100cb510
mov eax, dword [ebp - 0x10]
and eax, 0x8000003f
jns 0x100cb4a6
dec eax
or eax, 0xffffffc0
inc eax
mov dword [ebp + 0x18], esi
sub dword [ebp + 0x18], eax
mov eax, edi
sub eax, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp - 0x10]
nop dword [eax]
movups xmm0, xmmword [ecx]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx + ebx - 0x40]
pxor xmm1, xmm0
movups xmmword [ecx - 0x40], xmm1
movups xmm0, xmmword [ecx - 0x30]
movups xmm1, xmmword [edi + edx + 0x10]
pxor xmm1, xmm0
movups xmmword [ecx - 0x30], xmm1
movups xmm0, xmmword [ecx - 0x20]
movups xmm1, xmmword [edi + edx + 0x20]
pxor xmm1, xmm0
movups xmmword [ecx - 0x20], xmm1
movups xmm0, xmmword [ecx - 0x10]
movups xmm1, xmmword [edi + edx + 0x30]
add edx, 0x40
pxor xmm1, xmm0
movups xmmword [ecx - 0x10], xmm1
cmp edx, eax
jl 0x100cb4c0
mov ebx, dword [ebp - 4]
cmp edx, esi
jge 0x100cb533
mov eax, edi
lea ecx, [ebx + edx]
sub eax, ebx
sub esi, edx
mov dword [ebp + 0x18], eax
mov ebx, eax
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x100cb522
mov ebx, dword [ebp - 4]
mov ecx, edi
call fcn.100d1c70
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add ecx, ebx
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff3f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret