Function at 0x68ec32
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
push ebx
push esi
mov ebx, ecx
mov eax, dword [ebx + 4]
push edi
xor edi, edi
mov dword [esp + 0x48], ebx
cmp eax, edi
je 0x68ec52
mov esi, dword [eax + 0x4c]
jmp 0x68ec55
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x40], esi
cmp esi, edi
je 0x68f42a
cmp dword [esi + 0xb1c], edi
je 0x68f42a
mov ecx, dword [esi + 0xb1c]
mov eax, dword [ecx]
push edi
call dword [eax + 0x24]
test al, al
je 0x68f42a
mov ecx, dword [esi + 0xb1c]
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
call dword [eax + 0x28]
mov ecx, dword [esi + 0xb1c]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x28], eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp dword [ebp + 0xc], edi
mov dword [esp + 0x20], eax
jge 0x68ecbf
mov dword [ebp + 0xc], edi
cmp dword [ebp + 0x10], edi
jge 0x68ecc7
mov dword [ebp + 0x10], edi
mov eax, dword [esi + 0xb1c]
mov ecx, dword [eax + 8]
mov esi, dword [ebp + 0x14]
cmp ecx, esi
jge 0x68ecd9
mov esi, ecx
mov eax, dword [eax + 4]
mov edx, dword [ebp + 0x18]
cmp eax, edx
jge 0x68ece5
mov edx, eax
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 8]
cmp ecx, esi
jl 0x68ecf1
mov ecx, esi
mov eax, dword [eax + 4]
cmp eax, edx
mov dword [ebp + 0x14], ecx
jl 0x68ecfd
mov eax, edx
mov dword [ebp + 0x18], eax
mov eax, dword [ebx + 0xc]
cmp eax, 0x7ffffff
je 0x68f3a8
mov esi, dword [ebp + 0xc]
cmp esi, eax
jge 0x68ed1a
mov esi, eax
mov dword [ebp + 0xc], esi
mov eax, dword [ebx + 0x14]
cmp dword [ebp + 0x10], eax
jge 0x68ed25
mov dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x10]
cmp dword [ebp + 0x14], eax
jl 0x68ed30
mov dword [ebp + 0x14], eax
mov eax, dword [ebx + 0x18]
cmp dword [ebp + 0x18], eax
jl 0x68ed3b
mov dword [ebp + 0x18], eax
mov edi, dword [esp + 0x40]
mov ecx, dword [edi + 0xb1c]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
je 0x68ed6a
mov eax, dword [edi + 0xb1c]
mov eax, dword [eax + 4]
sub eax, dword [ebp + 0x10]
dec eax
imul eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
neg dword [esp + 0x28]
jmp 0x68ed76
mov eax, dword [esp + 0x28]
imul eax, dword [ebp + 0x10]
add dword [esp + 0x18], eax
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + 0xc]
cmp eax, 4
je 0x68f16e
cmp eax, 5
je 0x68f16e
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, dword [ebp + 0x10]
test al, al
je 0x68edb2
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
sub eax, edi
dec eax
imul eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
neg dword [esp + 0x20]
jmp 0x68edbd
mov eax, dword [esp + 0x20]
imul eax, edi
add eax, dword [esp + 0x14]
mov ecx, dword [ebx + 8]
lea eax, [eax + esi*4]
mov dword [esp + 0x14], eax
mov eax, dword [ecx]
call dword [eax + 0x44]
test eax, eax
je 0x68efa5
mov eax, esi
imul eax, eax, 3
add dword [esp + 0x18], eax
cmp byte [0x103a2501], 0
je 0x68ef40
mov eax, dword [ebp + 0x14]
sub eax, esi
cmp eax, 4
jle 0x68ef40
test byte [0x103a3af0], 1
jne 0x68ee20
or dword [0x103a3af0], 1
mov ecx, 0xff000000
movd xmm0, ecx
pshufd xmm3, xmm0, 0
movdqa xmmword [0x103a3ae0], xmm3
jmp 0x68ee28
movdqa xmm3, xmmword [0x103a3ae0]
test byte [0x103a3af0], 2
jne 0x68ee50
or dword [0x103a3af0], 2
mov ecx, 0xffffff
movd xmm0, ecx
pshufd xmm2, xmm0, 0
movdqa xmmword [0x103a3ad0], xmm2
jmp 0x68ee58
movdqa xmm2, xmmword [0x103a3ad0]
cmp edi, dword [ebp + 0x18]
jge 0x68f3a8
dec eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov edi, dword [ebp + 0xc]
sub dword [ebp + 0x14], 4
sub dword [esp + 0x1c], 4
cmp edi, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jge 0x68eee9
mov edx, dword [esp + 0x1c]
shr edx, 2
inc edx
lea edi, [edi + edx*4]
movdqu xmm0, xmmword [eax]
movdqa xmm4, xmm0
movdqa xmm1, xmm0
psrldq xmm4, 3
punpckldq xmm1, xmm4
movdqa xmm4, xmm0
psrldq xmm0, 9
psrldq xmm4, 6
punpckldq xmm4, xmm0
punpcklqdq xmm1, xmm4
pand xmm1, xmm2
movdqa xmm0, xmm1
pslld xmm0, 0x10
pand xmm0, xmm3
pcmpeqb xmm0, xmm2
pxor xmm0, xmm3
por xmm0, xmm1
movdqu xmmword [ecx], xmm0
add eax, 0xc
add ecx, 0x10
dec edx
jne 0x68ee94
add dword [ebp + 0x14], 4
add dword [esp + 0x1c], 4
cmp edi, dword [ebp + 0x14]
jge 0x68ef21
mov esi, dword [ebp + 0x14]
sub esi, edi
cmp byte [eax + 1], 0
sete dl
dec dl
mov byte [ecx + 3], dl
mov dl, byte [eax]
mov byte [ecx], dl
mov dl, byte [eax + 1]
mov byte [ecx + 1], dl
mov dl, byte [eax + 2]
mov byte [ecx + 2], dl
add eax, 3
add ecx, 4
dec esi
jne 0x68eefc
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], eax
dec dword [esp + 0x24]
jne 0x68ee70
jmp 0x68f3a8
cmp edi, dword [ebp + 0x18]
jge 0x68f3a8
mov edi, dword [ebp + 0x18]
sub edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
cmp dword [ebp + 0xc], eax
jge 0x68ef8d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [ebp + 0x14]
inc ecx
add eax, 3
sub esi, dword [ebp + 0xc]
cmp byte [ecx], 0
sete dl
dec dl
mov byte [eax], dl
mov dl, byte [ecx - 1]
mov byte [eax - 3], dl
mov dl, byte [ecx]
mov byte [eax - 2], dl
mov dl, byte [ecx + 1]
mov byte [eax - 1], dl
add eax, 4
add ecx, 3
dec esi
jne 0x68ef69
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add dword [esp + 0x14], eax
dec edi
jne 0x68ef4f
jmp 0x68f3a8
movzx ecx, byte [ebp + 0xb]
mov eax, ecx
shl eax, 8
cdq
mov esi, 0xff
idiv esi
movzx edx, byte [ebp + 0xa]
movzx esi, byte [ebp + 9]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, esi
shl ecx, 8
mov dword [esp + 0x2c], eax
movzx eax, byte [ebp + 8]
or ecx, eax
mov eax, esi
imul eax, eax, 7
add eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x44], ecx
mov ecx, dword [ebp + 0x18]
add eax, 0x100
cmp dword [ebp + 0x10], ecx
mov dword [esp + 0x4c], eax
jge 0x68f3a8
mov esi, ecx
sub esi, dword [ebp + 0x10]
mov dword [esp + 0x3c], esi
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
jge 0x68f14e
mov edi, dword [esp + 0x18]
imul edx, edx, 3
lea edx, [edx + edi + 1]
mov dword [esp + 0x24], edx
mov edx, dword [ebp + 0x14]
sub edx, dword [ebp + 0xc]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x24]
movzx edi, byte [edx]
mov edx, 0xff
sub edx, edi
imul edx, dword [esp + 0x2c]
shr edx, 8
test edx, edx
je 0x68f138
cmp edx, 0xff
jne 0x68f063
mov edx, dword [esp + 0x44]
jmp 0x68f136
mov ecx, dword [ecx]
imul edx, eax
shr edx, 8
cmp edx, 0xff
mov dword [esp + 0x1c], 0xff
jg 0x68f07f
mov dword [esp + 0x1c], edx
mov ebx, dword [esp + 0x1c]
movzx edx, byte [ebp + 0xa]
movzx esi, byte [ebp + 9]
imul edx, ebx
movzx edi, byte [ebp + 8]
imul esi, ebx
imul edi, ebx
mov eax, 0x100
sub eax, ebx
mov ebx, edx
sar ebx, 8
lea edx, [ebx + edx + 1]
mov ebx, ecx
shr ebx, 0x10
and ebx, 0xff
imul ebx, eax
and ebx, 0xffffff00
sar edx, 8
shl edx, 8
add edx, ebx
mov ebx, esi
sar ebx, 8
lea esi, [ebx + esi + 1]
mov ebx, ecx
shr ebx, 8
and ebx, 0xff
imul ebx, eax
sar esi, 8
mov dword [esp + 0x5c], eax
shl esi, 8
mov eax, 0xffffff00
and ebx, eax
add esi, ebx
shl edx, 8
or edx, esi
mov esi, edi
mov ebx, dword [esp + 0x48]
sar esi, 8
lea esi, [esi + edi + 1]
movzx edi, cl
imul edi, dword [esp + 0x5c]
shr ecx, 0x18
imul ecx, dword [esp + 0x5c]
and ecx, eax
mov eax, dword [esp + 0x1c]
sar esi, 8
shl eax, 8
shr edi, 8
add ecx, eax
mov eax, dword [esp + 0x4c]
add esi, edi
or edx, esi
mov esi, dword [esp + 0x3c]
shl ecx, 0x10
or edx, ecx
mov ecx, dword [esp + 0x34]
mov dword [ecx], edx
add dword [esp + 0x24], 3
add ecx, 4
dec dword [esp + 0x38]
mov dword [esp + 0x34], ecx
jne 0x68f034
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
add dword [esp + 0x14], ecx
dec esi
mov dword [esp + 0x3c], esi
jne 0x68f007
jmp 0x68f3a8
mov eax, dword [ecx]
call dword [eax + 0x14]
mov edi, dword [ebp + 0x10]
test al, al
je 0x68f192
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
sub eax, edi
dec eax
imul eax, dword [esp + 0x20]
add eax, dword [esp + 0x14]
neg dword [esp + 0x20]
jmp 0x68f19d
mov eax, dword [esp + 0x20]
imul eax, edi
add eax, dword [esp + 0x14]
lea eax, [eax + esi*2]
mov dword [esp + 0x14], eax
movzx eax, byte [ebp + 0xb]
shl eax, 8
cdq
mov ecx, 0xff
idiv ecx
mov dword [esp + 0x48], eax
xor eax, eax
mov word [esp + 0x52], ax
mov word [esp + 0x50], ax
movzx ax, byte [ebp + 9]
shl ax, 8
mov word [esp + 0x4e], ax
movzx ax, byte [ebp + 8]
mov word [esp + 0x4c], ax
mov eax, dword [ebx + 8]
cmp dword [eax + 0xc], 4
lea eax, [esp + 0x4c]
push eax
jne 0x68f1f0
call 0x5ab811
jmp 0x68f1f5
call 0x5ab839
movzx eax, ax
mov dword [esp + 0x40], eax
movzx eax, byte [ebp + 9]
imul eax, eax, 7
pop ecx
movzx ecx, byte [ebp + 0xa]
add eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 0x100
cmp edi, dword [ebp + 0x18]
mov dword [esp + 0x4c], eax
jge 0x68f3a8
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp + 0x10]
mov dword [esp + 0x34], eax
mov edx, dword [ebp + 0x14]
cmp dword [ebp + 0xc], edx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], ecx
jge 0x68f38d
mov eax, dword [ebp + 0xc]
mov edx, dword [esp + 0x18]
imul eax, eax, 3
lea eax, [eax + edx + 1]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
movzx eax, byte [eax]
mov esi, 0xff
sub esi, eax
imul esi, dword [esp + 0x48]
shr esi, 8
test esi, esi
je 0x68f374
cmp esi, 0xff
jne 0x68f28f
mov ax, word [esp + 0x3c]
jmp 0x68f371
mov eax, dword [ebx + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x44], eax
cmp eax, 4
lea eax, [esp + 0x2c]
push eax
movzx eax, word [ecx]
push eax
jne 0x68f2ae
call 0x5ab861
jmp 0x68f2b3
call 0x5ab8a9
imul esi, dword [esp + 0x54]
shr esi, 8
cmp esi, 0xff
pop ecx
pop ecx
mov edx, 0xff
jg 0x68f2cc
mov edx, esi
movzx eax, word [esp + 0x32]
movzx esi, word [esp + 0x30]
mov ecx, 0x100
sub ecx, edx
imul eax, ecx
imul esi, ecx
sar eax, 8
add eax, edx
mov word [esp + 0x32], ax
movzx eax, byte [ebp + 0xa]
imul eax, edx
mov edi, eax
sar edi, 8
lea eax, [edi + eax + 1]
sar eax, 8
sar esi, 8
add esi, eax
movzx eax, byte [ebp + 9]
imul eax, edx
mov word [esp + 0x30], si
movzx esi, word [esp + 0x2e]
imul esi, ecx
mov edi, eax
sar edi, 8
lea eax, [edi + eax + 1]
sar eax, 8
sar esi, 8
add esi, eax
movzx eax, byte [ebp + 8]
imul eax, edx
movzx edx, word [esp + 0x2c]
imul edx, ecx
mov ecx, eax
sar ecx, 8
lea eax, [ecx + eax + 1]
sar eax, 8
sar edx, 8
add edx, eax
cmp dword [esp + 0x44], 4
lea eax, [esp + 0x2c]
mov word [esp + 0x2e], si
mov word [esp + 0x2c], dx
push eax
jne 0x68f367
call 0x5ab811
jmp 0x68f36c
call 0x5ab839
pop ecx
mov ecx, dword [esp + 0x1c]
mov word [ecx], ax
add dword [esp + 0x24], 3
inc ecx
inc ecx
dec dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
jne 0x68f25f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x20]
add dword [esp + 0x14], ecx
dec eax
mov dword [esp + 0x34], eax
jne 0x68f22f
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0xb1c]
mov eax, dword [ecx]
call dword [eax + 0x30]
lea esi, [ebx + 0xe8]
push dword [esi]
push dword [ebx + 0x2c]
call dword [0x1030407c]
and dword [esi], 0
cmp dword [ebx + 0xc], 0x7ffffff
je 0x68f42a
mov ecx, dword [ebx + 8]
mov eax, dword [ecx]
call dword [eax + 0x44]
test eax, eax
je 0x68f42a
mov ecx, dword [ebp + 0xc]
movzx esi, byte [ebp + 0xa]
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x50], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x54], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x58], ecx
movzx ecx, byte [ebp + 0xb]
mov edx, dword [eax]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 9]
shl ecx, 8
or ecx, esi
movzx esi, byte [ebp + 8]
shl ecx, 8
or ecx, esi
push 1
push ecx
lea ecx, [esp + 0x54]
push ecx
mov ecx, eax
call dword [edx + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14