Function at 0x100cb040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], eax
call fcn.100bb1b0
mov edi, eax
test edi, edi
js 0x100cb2ee
lea ecx, [edi*2 + 2]
cmp ebx, ecx
jb 0x100cb2ee
mov eax, dword [0x102a8bb8]
push ebx
test eax, eax
je 0x100cb090
call eax
jmp 0x100cb095
call fcn.101f2716
mov esi, eax
add esp, 4
test esi, esi
jne 0x100cb0b2
lea eax, [esi - 0x7d]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
push ebx
push 0
push esi
call fcn.101ee530
mov eax, dword [ebp - 0x54]
add esp, 8
mov ecx, ebx
inc eax
sub ecx, edi
add eax, edi
dec ecx
mov dword [ebp - 0x58], eax
push edi
push esi
mov dword [ebp - 0x50], ecx
mov edx, eax
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.100ca9c0
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x100cb101
mov ecx, esi
call fcn.100d1c70
mov eax, dword [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test edi, edi
je 0x100cb1a1
mov edx, dword [ebp - 0x54]
cmp edi, 0x40
jb 0x100cb191
lea eax, [edx + 1]
mov dword [ebp - 0x4c], eax
lea eax, [edi + edx]
cmp esi, eax
ja 0x100cb12a
lea eax, [edi - 1]
add eax, esi
cmp eax, dword [ebp - 0x4c]
jae 0x100cb191
mov eax, edi
mov dword [ebp - 0x4c], edi
and eax, 0x3f
sub dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
nop dword [eax + eax]
movups xmm0, xmmword [esi + ecx]
movups xmm1, xmmword [edx + ecx + 1]
pxor xmm1, xmm0
movups xmmword [esi + ecx], xmm1
movups xmm0, xmmword [esi + ecx + 0x10]
movups xmm1, xmmword [edx + ecx + 0x11]
pxor xmm1, xmm0
movups xmmword [esi + ecx + 0x10], xmm1
movups xmm0, xmmword [esi + ecx + 0x20]
movups xmm1, xmmword [edx + ecx + 0x21]
pxor xmm1, xmm0
movups xmmword [esi + ecx + 0x20], xmm1
movups xmm0, xmmword [esi + ecx + 0x30]
movups xmm1, xmmword [edx + ecx + 0x31]
pxor xmm1, xmm0
movups xmmword [esi + ecx + 0x30], xmm1
add ecx, 0x40
cmp ecx, eax
jb 0x100cb140
cmp ecx, edi
jae 0x100cb1a1
mov al, byte [edx + ecx + 1]
xor byte [esi + ecx], al
inc ecx
cmp ecx, edi
jb 0x100cb195
push ecx
push dword [ebp - 0x50]
mov ecx, dword [ebp + 0x10]
lea eax, [esi + edi]
push eax
push edi
mov edx, esi
call fcn.100ca9c0
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x100cb1fe
mov ecx, dword [0x102a8bb4]
push esi
test ecx, ecx
je 0x100cb1e2
call ecx
mov eax, dword [ebp - 0x4c]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
call fcn.101f0951
mov eax, dword [ebp - 0x4c]
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp dword [ebp - 0x50], ecx
jbe 0x100cb21f
mov edx, dword [ebp - 0x58]
lea ebx, [esi + edi]
nop dword [eax + eax]
mov al, byte [ebx + ecx]
xor byte [edx + ecx], al
inc ecx
cmp ecx, dword [ebp - 0x50]
jb 0x100cb210
mov ebx, dword [ebp - 0x5c]
mov eax, dword [0x102a8bb4]
push esi
test eax, eax
je 0x100cb22d
call eax
jmp 0x100cb232
call fcn.101f0951
lea esi, [edi*2 + 1]
add esp, 4
mov dword [ebp - 0x50], esi
cmp esi, ebx
jae 0x100cb254
mov eax, dword [ebp - 0x54]
cmp byte [eax + esi], 0
jne 0x100cb251
inc esi
cmp esi, ebx
jb 0x100cb246
mov dword [ebp - 0x50], esi
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push edi
push eax
push 0
xor edx, edx
call fcn.100bb280
add esp, 0xc
test eax, eax
jne 0x100cb2f3
xor edx, edx
mov dword [ebp - 0x4c], eax
test edi, edi
jle 0x100cb29b
mov esi, dword [ebp - 0x58]
xor ebx, ebx
nop
movzx ecx, byte [esi + edx]
movzx eax, byte [ebp + edx - 0x48]
inc edx
xor ecx, eax
or ebx, ecx
cmp edx, edi
jl 0x100cb280
mov esi, dword [ebp - 0x50]
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x54]
movzx ecx, byte [edi + esi]
movzx eax, byte [edi]
xor ecx, 1
add ecx, dword [ebp - 0x4c]
add ecx, eax
lea eax, [ecx - 1]
not ecx
shr eax, 0x1f
neg al
shr ecx, 0x1f
neg cl
movsx edx, al
movsx eax, cl
and edx, eax
lea eax, [esi + 1]
mov ecx, edx
and eax, edx
mov edx, dword [ebp - 0x60]
not ecx
and ecx, ebx
or ecx, eax
sub ebx, ecx
lea eax, [edi + ecx]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov eax, 0xffffff53
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d506b
mov esp, ebp
pop ebp
ret