Function at 0x298a180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xb0
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
add edi, dword [ecx + 0x60]
movaps xmm0, xmmword [0x29bd550]
movups xmmword [esp + 0x78], xmm0
movaps xmm0, xmmword [0x29bd560]
movups xmmword [esp + 0x88], xmm0
mov dword [esp + 0x98], 0x4e704ce4
mov word [esp + 0x9c], 0x656e
mov dword [esp + 0x9e], 0
mov dword [esp + 0xa1], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x2c
ja 0x298a237
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x78]
lea edx, [eax - 0x586e63b4]
lea esi, [eax + 0x4c]
xor esi, edx
and edx, ecx
and esi, ecx
add eax, ecx
add eax, 0xa7919c4c
lea ecx, [esi + edx*2]
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add al, 0xec
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x78], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x2d
jb 0x298a1f0
mov dword [esp + 8], 0x939a86b4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0xb
ja 0x298a2a6
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx edx, byte [esp + ecx + 8]
mov ecx, 0x15c82ec
sub ecx, eax
add eax, 0x13
and eax, edx
or ecx, edx
not ecx
add ecx, edx
sub ecx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
mov ecx, eax
xor ecx, 0x7a
and eax, 0x7a
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0xc
jb 0x298a260
movaps xmm0, xmmword [0x29bd570]
movups xmmword [esp + 0x20], xmm0
movaps xmm0, xmmword [0x29bd580]
movups xmmword [esp + 0x30], xmm0
movaps xmm0, xmmword [0x29bd590]
movups xmmword [esp + 0x40], xmm0
movaps xmm0, xmmword [0x29bd5a0]
movups xmmword [esp + 0x50], xmm0
movsd xmm0, qword [0x29bd5b0]
movsd qword [esp + 0x60], xmm0
mov dword [esp + 0x68], 0xe8c7bec1
mov word [esp + 0x6c], 0x2904
mov dword [esp + 0x6e], 0
mov dword [esp + 0x71], 0
mov dword [esp + 4], 0
mov eax, dword [esp + 4]
cmp eax, 0x54
ja 0x298a371
nop word cs:[eax + eax]
mov eax, dword [esp + 4]
mov ecx, dword [esp + 4]
movzx ecx, byte [esp + ecx + 0x20]
lea edx, [eax - 0x74592bcf]
mov esi, ecx
not esi
or esi, edx
and edx, ecx
add edx, esi
neg edx
add eax, edx
add eax, 0x8ba6d430
mov dword [esp], eax
mov eax, dword [esp]
mov ecx, eax
xor ecx, 0xa8
and eax, 0x28
lea eax, [ecx + eax*2]
inc al
mov ecx, dword [esp + 4]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, 0x55
jb 0x298a320
mov eax, dword [ebp + 0xc]
movzx ecx, byte [esp + 0x20]
mov edx, edi
test cl, cl
je 0x298a39b
lea esi, [esp + 0x21]
mov edx, edi
nop word cs:[eax + eax]
mov byte [edx], cl
inc edx
movzx ecx, byte [esi]
inc esi
test cl, cl
jne 0x298a390
mov byte [edx], 0
movzx ecx, byte [eax]
test cl, cl
je 0x298a3bb
inc eax
nop word cs:[eax + eax]
mov byte [edx], cl
inc edx
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x298a3b0
mov byte [edx], 0
movzx eax, byte [esp + 8]
test al, al
je 0x298a3db
lea ecx, [esp + 9]
nop dword [eax + eax]
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x298a3d0
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov byte [edx], 0
movzx eax, byte [esp + 0x78]
test al, al
mov dword [esp + 0x18], edi
je 0x298a40b
lea ecx, [esp + 0x79]
nop word cs:[eax + eax]
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x298a400
mov byte [edx], 0
mov ecx, ebx
shr ecx, 2
mov eax, esi
mov edi, edx
xchg esi, eax
rep movsd dword es:[edi], dword [esi]
xchg esi, eax
mov eax, ebx
and eax, 0xfffffffc
mov ecx, esi
lea esi, [edx + eax]
add eax, ecx
mov ecx, ebx
shr ecx, 1
and ecx, 1
mov ebx, eax
mov edi, esi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
mov ebx, dword [ebp + 0x14]
test bl, 1
je 0x298a44d
mov ecx, ebx
and ecx, 2
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
movaps xmm0, xmmword [0x29bd5c0]
movups xmmword [esp + 0x20], xmm0
movsd xmm0, qword [0x29bd5d0]
movsd qword [esp + 0x30], xmm0
mov word [esp + 0x38], 0x1315
mov byte [esp + 0x3a], 0x1a
mov dword [esp + 0x3b], 0
mov dword [esp + 0x3e], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
cmp eax, 0x21
mov edi, dword [esp + 0x18]
ja 0x298a4ef
nop dword [eax + eax]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
movzx ecx, byte [esp + ecx + 0x20]
mov esi, eax
and esi, 0xff66d630
xor eax, 0xff66d630
lea eax, [eax + esi*2]
lea esi, [eax + ecx]
and eax, ecx
add eax, eax
mov ecx, esi
not ecx
and ecx, eax
not eax
and eax, esi
sub eax, ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
add al, 0xb0
mov ecx, dword [esp + 8]
mov byte [esp + ecx + 0x20], al
inc dword [esp + 8]
mov eax, dword [esp + 8]
cmp eax, 0x22
jb 0x298a4a0
add edx, ebx
movzx eax, byte [esp + 0x20]
test al, al
je 0x298a50b
lea ecx, [esp + 0x21]
nop
mov byte [edx], al
inc edx
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x298a500
mov byte [edx], 0
sub edx, edi
mov eax, dword [esp + 0x1c]
add dword [eax + 0x60], edx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10