Function at 0x100aee20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push esi
mov esi, ecx
cmp byte [esi + 0x14c], 0
push edi
lea edi, [esi + 0x14c]
mov dword [ebp - 0x18], esi
je 0x100af129
push 0x1010ccf0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x1010a058], 0
jne 0x100aeebb
push 0x1010a058
mov ecx, edi
call fcn.100af2e0
test al, al
je 0x100aeebb
movups xmm0, xmmword [0x1010a078]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [0x1010a088]
movups xmmword [edi + 0x30], xmm0
mov eax, dword [0x1010a098]
mov dword [edi + 0x40], eax
mov eax, dword [0x1010a09c]
mov dword [edi + 0x44], eax
movups xmm0, xmmword [0x1010a0a0]
movups xmmword [edi + 0x48], xmm0
movups xmm0, xmmword [0x1010a0b0]
movups xmmword [edi + 0x58], xmm0
mov byte [edi], 0
push 0x1010ccf0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [edi], 0
je 0x100af129
push dword [esi + 0x168]
lea ecx, [ebp - 0x21c]
push dword [esi + 0x164]
call fcn.100ae140
mov ecx, 0x34
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x14c]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14c]
push 0x10
lea edx, [esi + 0x154]
call fcn.100c56a0
push 4
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0x1000000
lea ecx, [ebp - 0x14c]
call fcn.100c56a0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.100ae110
mov ecx, dword [esi + 0x150]
mov eax, 1
movups xmm2, xmmword [ebp - 0x5c]
shl eax, cl
movups xmm1, xmmword [ebp - 0x4c]
dec eax
xor ecx, ecx
movups xmmword [ebp - 0x6c], xmm2
mov dword [ebp - 0x10], eax
movups xmmword [ebp - 0x7c], xmm1
mov dword [ebp - 0x14], ecx
nop dword [eax + eax]
test eax, eax
je 0x100aefc2
mov ecx, 0x34
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x14c]
rep movsd dword es:[edi], dword [esi]
push 0x20
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x14c]
call fcn.100c56a0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.100ae110
sub dword [ebp - 0x10], 1
movups xmm0, xmmword [ebp - 0x5c]
movups xmm2, xmmword [ebp - 0x6c]
movups xmm1, xmmword [ebp - 0x7c]
pxor xmm2, xmm0
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [ebp - 0x6c], xmm2
pxor xmm1, xmm0
movups xmmword [ebp - 0x7c], xmm1
jne 0x100aef64
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x100aefce
lea eax, [esi + 0x16c]
jmp 0x100aefdc
lea eax, [esi + 0x194]
cmp ecx, 1
je 0x100aefdc
lea eax, [ebp - 0x3c]
movups xmmword [eax], xmm2
inc ecx
mov dword [ebp - 0x14], ecx
movups xmmword [eax + 0x10], xmm1
mov eax, 0x10
mov dword [ebp - 0x10], eax
cmp ecx, 3
jb 0x100aef60
mov al, byte [ebp - 0x3c]
lea ecx, [ebp - 0x34]
mov byte [esi + 0x18c], al
mov edi, 9
mov al, byte [ebp - 0x3b]
sub ecx, edi
mov byte [esi + 0x18d], al
mov al, byte [ebp - 0x3a]
mov byte [esi + 0x18e], al
mov al, byte [ebp - 0x39]
mov byte [esi + 0x18f], al
mov al, byte [ebp - 0x38]
mov byte [esi + 0x190], al
mov al, byte [ebp - 0x37]
mov byte [esi + 0x191], al
mov al, byte [ebp - 0x36]
mov byte [esi + 0x192], al
mov al, byte [ebp - 0x35]
mov byte [esi + 0x193], al
mov eax, 8
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x32]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 5
lea edx, [eax + 3]
sub ecx, edx
mov dword [ebp - 0x1c], ecx
and eax, 7
lea ecx, [eax + esi]
mov eax, dword [ebp - 0x14]
mov al, byte [eax + edi]
xor byte [ecx + 0x18c], al
mov ecx, edi
mov al, byte [ebp + edi - 0x3c]
and ecx, 7
add edi, 6
xor byte [ecx + esi + 0x18c], al
lea ecx, [edx - 1]
mov eax, dword [ebp - 0x1c]
and ecx, 7
mov al, byte [eax + edx]
xor byte [ecx + esi + 0x18c], al
mov ecx, edx
mov al, byte [ebp + edx - 0x3c]
and ecx, 7
add edx, 6
xor byte [ecx + esi + 0x18c], al
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
dec ecx
and ecx, 7
mov al, byte [ebp + eax - 0x35]
xor byte [ecx + esi + 0x18c], al
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x10], 6
and ecx, 7
mov al, byte [ebp + eax - 0x37]
xor byte [ecx + esi + 0x18c], al
mov eax, dword [ebp - 0x18]
add eax, 6
mov dword [ebp - 0x18], eax
cmp edi, 0x21
jb 0x100af067
lea edi, [esi + 0x14c]
mov dword [ebp - 0x1c], 0x1010ccf0
mov byte [edi], 0
push 0x1010ccf0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov ecx, 0x1010a058
mov dword [ebp - 4], 0
call fcn.100aece0
push 0x1010ccf0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x1c0]
and eax, 1
or eax, 0
je 0x100af17d
cmp byte [esi + 0x1bc], 0
je 0x100af17d
mov eax, dword [esi + 0x18c]
cmp eax, dword [esi + 0x1b4]
jne 0x100af163
mov eax, dword [esi + 0x190]
mov dword [ebp - 0x14], 1
cmp eax, dword [esi + 0x1b8]
je 0x100af16a
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
pop edi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret