Function at 0x1018c640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x1026e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x24]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [eax]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x90], ecx
call fcn.101087f0
push dword [ebp + 0x10]
mov dword [ebp - 0x8c], 0
push esi
mov esi, dword [ebp - 0x98]
push esi
mov byte [ebp - 0x85], al
mov byte [ebp - 0x89], 1
call fcn.10108a90
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x1018c89f
cmp dword [ebp + 0x20], eax
je 0x1018c881
push dword [ebp + 0x18]
push edi
push esi
call fcn.10108c90
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1018c881
push 4
lea eax, [ebp - 0x8c]
push eax
push esi
call fcn.10108c90
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1018c881
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.10108990
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1018c881
push esi
call fcn.10108a40
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1018c881
movzx edi, byte [ebp - 0x85]
lea eax, [ebp - 0x44]
push edi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.100e1b00
add esp, 0xc
mov dword [ebp - 0x94], 1
cmp dword [ebp + 0x1c], 1
jbe 0x1018c826
push edi
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.10108c90
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x1018c881
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.10108990
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1018c881
push esi
call fcn.10108a40
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1018c881
test edi, edi
je 0x1018c7f6
cmp edi, 0x40
jb 0x1018c7f6
mov ecx, edi
and ecx, 0xffffffc0
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x44]
movups xmm1, xmmword [ebp + eax - 0x84]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x44], xmm1
movups xmm0, xmmword [ebp + eax - 0x34]
movups xmm1, xmmword [ebp + eax - 0x74]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x34], xmm1
movups xmm0, xmmword [ebp + eax - 0x24]
movups xmm1, xmmword [ebp + eax - 0x64]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x24], xmm1
movups xmm0, xmmword [ebp + eax - 0x14]
movups xmm1, xmmword [ebp + eax - 0x54]
pxor xmm1, xmm0
movups xmmword [ebp + eax - 0x14], xmm1
add eax, 0x40
cmp eax, ecx
jl 0x1018c7a0
cmp eax, edi
jge 0x1018c810
nop word [eax + eax]
mov cl, byte [ebp + eax - 0x84]
xor byte [ebp + eax - 0x44], cl
inc eax
cmp eax, edi
jl 0x1018c800
mov eax, dword [ebp - 0x94]
inc eax
mov dword [ebp - 0x94], eax
cmp eax, dword [ebp + 0x1c]
jb 0x1018c744
mov esi, dword [ebp + 0x20]
lea eax, [ebp - 0x44]
cmp esi, edi
cmovae esi, edi
push esi
push eax
push dword [ebp - 0x90]
call fcn.100e1b00
mov edi, dword [ebp + 0x20]
lea ecx, [ebp - 0x89]
add dword [ebp - 0x90], esi
sub edi, esi
mov edx, 4
mov dword [ebp + 0x20], edi
mov eax, ecx
add esp, 0xc
sub edx, eax
nop
add byte [ecx], 1
jne 0x1018c86d
dec ecx
lea eax, [edx + ecx]
test eax, eax
jne 0x1018c860
mov esi, dword [ebp - 0x98]
test edi, edi
mov edi, dword [ebp - 0x9c]
jne 0x1018c6b8
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.101115e0
lea eax, [ebp - 0x84]
push 0x40
push eax
call fcn.101115e0
add esp, 0x10
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e04a9
mov esp, ebp
pop ebp
ret