Function at 0x100cac60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x1029912c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x64], esi
call fcn.100bb1b0
mov ebx, eax
test ebx, ebx
js 0x100caef7
mov edx, dword [ebp - 0x4c]
cmp edx, ebx
je 0x100cacbd
mov eax, 0xffffff53
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101d506b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x20]
lea eax, [ecx - 1]
and eax, 7
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
jne 0x100cacd6
mov byte [edi], 0
inc edi
dec eax
mov dword [ebp - 0x58], eax
cmp esi, 0xffffffff
jne 0x100cacf7
mov esi, ebx
mov dword [ebp - 0x64], esi
cmp ecx, 0x400
jne 0x100cad08
cmp ebx, 0x40
jne 0x100cad08
mov esi, 0x3e
mov dword [ebp - 0x64], esi
jmp 0x100cad08
cmp esi, ebx
jg 0x100caef2
cmp esi, 0xffffffff
jl 0x100caef2
mov ecx, eax
lea eax, [esi + 2]
sub ecx, ebx
mov dword [ebp - 0x60], ecx
cmp ecx, eax
jl 0x100caef2
lea eax, [ecx - 1]
xorps xmm0, xmm0
push edx
push dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
lea eax, [edi + 8]
push eax
movq qword [edi], xmm0
call fcn.101ec960
lea eax, [edi + 8]
add esp, 0xc
add eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
test esi, esi
jle 0x100cad75
push esi
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x54]
call fcn.100d1820
add esp, 0xc
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x100caee4
push esi
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x50]
push eax
call fcn.101ec960
mov eax, dword [ebp - 0x50]
add esp, 0xc
add eax, esi
mov ecx, dword [ebp - 0x5c]
sub eax, edi
add ecx, edi
mov edx, edi
push ebx
push ecx
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x14]
push eax
call fcn.100bb280
mov edx, dword [ebp - 0x54]
add esp, 0xc
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x100caece
mov eax, dword [ebp - 0x58]
push ecx
push dword [ebp - 0x5c]
mov ecx, dword [ebp + 0x18]
push edi
push ebx
mov byte [eax + edi - 1], 0xbc
call fcn.100ca9c0
mov ebx, eax
add esp, 0x10
mov dword [ebp - 0x4c], ebx
test ebx, ebx
jne 0x100caed1
mov ecx, dword [ebp - 0x68]
test ecx, ecx
je 0x100cadd2
mov al, 1
shl al, cl
dec al
and byte [edi], al
mov eax, dword [ebp - 0x60]
lea edx, [edi - 1]
sub eax, esi
xor edi, edi
add edx, eax
mov dword [ebp - 0x50], edx
xor byte [edx - 1], 1
test esi, esi
jle 0x100caed1
cmp esi, 0x40
jb 0x100caeac
lea ecx, [edx - 1]
lea eax, [ebp + esi - 0x49]
add ecx, esi
cmp edx, eax
ja 0x100cae0e
lea eax, [ebp - 0x48]
cmp ecx, eax
jae 0x100caeac
mov eax, esi
and eax, 0x8000003f
jns 0x100cae1c
dec eax
or eax, 0xffffffc0
inc eax
lea ebx, [ebp - 0x48]
mov ecx, esi
sub ebx, edx
sub ecx, eax
mov dword [ebp - 0x68], ebx
mov eax, edx
lea ebx, [ebp - 0x38]
sub ebx, edx
mov dword [ebp - 0x54], ebx
lea ebx, [ebp - 0x28]
mov esi, dword [ebp - 0x54]
sub ebx, edx
mov dword [ebp - 0x60], ebx
lea ebx, [ebp - 0x18]
sub ebx, edx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x5c], ebx
nop dword [eax + eax]
movups xmm0, xmmword [eax]
mov ebx, dword [ebp - 0x60]
add edi, 0x40
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [ebp - 0x5c]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [ebx + eax - 0x40]
mov ebx, dword [ebp - 0x4c]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp edi, ecx
jl 0x100cae50
mov esi, dword [ebp - 0x64]
mov edx, dword [ebp - 0x50]
cmp edi, esi
jge 0x100caed1
lea ebx, [ebp - 0x48]
sub ebx, edx
lea ecx, [edi + edx]
sub esi, edi
nop word [eax + eax]
mov al, byte [ecx + ebx]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x100caec0
mov ebx, dword [ebp - 0x4c]
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 edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x4c]
dec edx
add edx, edi
jmp 0x100cad95
mov eax, 0xffffff06
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101d506b
mov esp, ebp
pop ebp
ret