Function at 0x40eac0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
xorps xmm0, xmm0
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0x138]
movups xmmword [ebx + 0x128], xmm0
push edi
movups xmmword [esi], xmm0
mov dword [ebx + 8], 0
lea edx, [ebx + 0x128]
mov dword [ebx + 0xc], 0
lea ecx, [ebx + 0x148]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov dword [ebx], 0
mov dword [ebx + 0x148], 1
movq xmm0, qword [eax]
movq qword [ebx + 0x128], xmm0
mov eax, dword [eax + 8]
mov dword [ebx + 0x130], eax
lea eax, [ebx + 0x118]
push eax
mov byte [ebx + 0x137], 1
call fcn.0040da40
add esp, 4
test eax, eax
jne 0x40eb50
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
nop dword [eax]
mov eax, dword [esp + 0x4c]
add dword [ebx + 8], eax
adc dword [ebx + 0xc], 0
test eax, eax
je 0x40ec34
mov edi, dword [esp + 0x48]
mov ecx, 0xfffffed9
sub ecx, ebx
mov dword [esp + 0x14], ecx
mov ebp, 0x10
cmp eax, ebp
cmovb ebp, eax
lea eax, [ebx + 0x137]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
nop word [eax + eax]
add byte [eax], 1
jne 0x40eb9e
dec eax
lea ecx, [eax + ebp]
cmp ecx, 0xc
ja 0x40eb90
lea eax, [esp + 0x20]
push eax
lea edx, [ebx + 0x128]
lea ecx, [ebx + 0x148]
call fcn.0040da40
mov ebp, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x40ec34
test ebp, ebp
je 0x40ec0b
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x20]
sub eax, edi
mov dword [esp + 0x18], eax
mov eax, edi
sub eax, edx
mov edi, ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
nop
add eax, edx
mov cl, byte [eax + ebp]
xor cl, byte [edx]
mov byte [eax], cl
cmp dword [ebx], 1
je 0x40ebf0
mov cl, byte [edx]
xor byte [esi], cl
inc edx
mov eax, dword [esp + 0x1c]
inc esi
sub edi, 1
jne 0x40ebe0
mov ebp, dword [esp + 0x10]
lea esi, [ebx + 0x138]
mov edi, dword [esp + 0x48]
push esi
mov edx, esi
mov ecx, ebx
call fcn.0040e690
mov eax, dword [esp + 0x50]
add edi, ebp
add dword [esp + 0x48], ebp
sub eax, ebp
add esp, 4
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], edi
test eax, eax
jne 0x40eb72
mov eax, dword [ebx + 8]
mov esi, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
mov ebp, dword [esp + 0x50]
movups xmm0, xmmword [ebx + 0x118]
shld esi, eax, 3
shld ecx, edx, 3
shl eax, 3
mov dword [esp + 0x48], eax
shl edx, 3
or eax, esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x44], ecx
movups xmmword [ebp], xmm0
jne 0x40ec77
mov eax, edx
or eax, ecx
je 0x40ed87
mov esi, dword [esp + 0x44]
lea edi, [esp + 0x21]
mov eax, ecx
mov byte [esp + 0x23], cl
shr eax, 0x18
mov byte [esp + 0x20], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x21], al
mov eax, ecx
shr eax, 8
mov ecx, edx
mov byte [esp + 0x22], al
mov eax, esi
shrd ecx, eax, 0x18
mov byte [esp + 0x27], dl
mov byte [esp + 0x24], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
mov edx, dword [esp + 0x48]
shrd eax, esi, 8
mov esi, dword [esp + 0x4c]
mov byte [esp + 0x26], al
mov byte [esp + 0x25], cl
mov ecx, dword [esp + 0x4c]
mov eax, ecx
shr eax, 0x18
mov byte [esp + 0x28], al
mov eax, ecx
shr eax, 0x10
mov byte [esp + 0x29], al
mov eax, ecx
shr eax, 8
mov byte [esp + 0x2a], al
mov eax, esi
mov byte [esp + 0x2b], cl
mov ecx, edx
shrd ecx, eax, 0x18
mov byte [esp + 0x2f], dl
mov byte [esp + 0x2c], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, edx
mov edx, 4
shrd eax, esi, 8
lea esi, [ebx + 0x139]
mov byte [esp + 0x2d], cl
mov byte [esp + 0x2e], al
mov ecx, esi
nop
movzx eax, byte [edi - 1]
lea edi, [edi + 4]
xor byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edi - 4]
xor byte [ecx - 4], al
movzx eax, byte [edi - 3]
xor byte [ecx - 3], al
movzx eax, byte [edi - 2]
xor byte [ecx - 2], al
sub edx, 1
jne 0x40ed20
lea edx, [ebx + 0x138]
mov ecx, ebx
push edx
call fcn.0040e690
add esp, 4
lea ecx, [ebp + 2]
mov edx, 4
movzx eax, byte [esi - 1]
lea esi, [esi + 4]
xor byte [ecx - 2], al
lea ecx, [ecx + 4]
movzx eax, byte [esi - 4]
xor byte [ecx - 5], al
movzx eax, byte [esi - 3]
xor byte [ecx - 4], al
movzx eax, byte [esi - 2]
xor byte [ecx - 3], al
sub edx, 1
jne 0x40ed60
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret