Function at 0x6b2ac0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x14], ecx
cmp esi, 1
jne 0x6b2af7
push dword [ebp + 0x28]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.006b2a10
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x30]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], ecx
lea ecx, [ebp + 0x30]
push ecx
mov ecx, dword [ebp + 0x1c]
push 1
push dword [ebp + 0x24]
push ecx
push ecx
lea ecx, [ebp + 0x18]
push ecx
push esi
push edi
push dword [ebp + 0xc]
lea ecx, [ebp - 0x3c]
push ecx
push eax
call fcn.006b1080
movd xmm1, dword [ebp - 0x38]
add esp, 0x2c
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x6ba9c4]
movss dword [ebp - 0x10], xmm1
movd xmm1, dword [ebp - 0x34]
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x6ba9c4]
movss dword [ebp - 0x18], xmm1
cmp esi, 2
jne 0x6b2cda
mov eax, dword [ebp - 0x2c]
xor edx, edx
xor ecx, ecx
test eax, eax
je 0x6b2b70
cmp eax, 0x4000
mov esi, 8
cmovne ecx, esi
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
sub eax, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
add eax, ecx
sub dword [esi + 0x1c], eax
mov esi, edi
cmp dword [ebp - 0x2c], 0x2000
mov eax, dword [ebp + 0xc]
cmovg esi, dword [ebp + 0xc]
cmovg eax, edi
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], esi
test ecx, ecx
je 0x6b2be9
push 1
cmp dword [ebp - 0xc], edx
je 0x6b2bdc
movss xmm0, dword [eax + 4]
movss xmm1, dword [esi + 4]
mulss xmm1, dword [eax]
xor eax, eax
mulss xmm0, dword [esi]
subss xmm1, xmm0
xorps xmm0, xmm0
comiss xmm0, xmm1
seta al
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
call fcn.006aeb00
mov edx, dword [ebp - 0x1c]
add esp, 0xc
jmp 0x6b2be9
push dword [ebp - 0x14]
call fcn.006ae720
add esp, 8
mov edx, eax
push dword [ebp - 4]
lea eax, [edx + edx]
mov esi, 1
push dword [ebp + 0x2c]
mov edx, dword [ebp + 0x1c]
sub esi, eax
push ecx
mov dword [esp], 0x3f800000
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push edx
push dword [ebp - 0x20]
push 2
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.006b2580
mov ecx, esi
movss xmm3, dword [ebp - 0x10]
neg ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
add esp, 0x2c
movd xmm0, ecx
mov ecx, dword [ebp - 0x24]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax + 4]
movss dword [ecx], xmm0
movd xmm0, esi
mov esi, dword [ebp + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [eax]
mov eax, dword [ebp - 0xc]
movss dword [ecx + 4], xmm0
mov ecx, dword [ebp + 0xc]
test eax, eax
jne 0x6b2ee2
movss xmm0, dword [ecx]
mulss xmm0, xmm3
movss dword [ecx], xmm0
movss xmm0, dword [ecx + 4]
mulss xmm0, xmm3
movss dword [ecx + 4], xmm0
movss xmm0, dword [edi + 4]
mulss xmm0, dword [ebp - 0x18]
movss xmm2, dword [edi]
mulss xmm2, dword [ebp - 0x18]
movss dword [edi + 4], xmm0
movss dword [edi], xmm2
movss xmm1, dword [ecx]
movaps xmm0, xmm1
subss xmm0, xmm2
movss dword [ecx], xmm0
movss xmm0, dword [edi]
addss xmm0, xmm1
movss dword [edi], xmm0
movss xmm1, dword [ecx + 4]
movaps xmm0, xmm1
subss xmm0, dword [edi + 4]
movss dword [ecx + 4], xmm0
movss xmm0, dword [edi + 4]
addss xmm0, xmm1
movss dword [edi + 4], xmm0
jmp 0x6b2e19
mov eax, dword [ebp + 0x18]
sub eax, dword [ebp - 0x30]
cdq
sub eax, edx
mov edx, eax
mov eax, dword [ebp + 0x18]
sar edx, 1
cmp eax, edx
mov ecx, edx
cmovl ecx, eax
test ecx, ecx
jns 0x6b2cf9
xor edx, edx
jmp 0x6b2cfe
cmp eax, edx
cmovl edx, eax
mov ecx, dword [ebp + 8]
sub eax, edx
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], edx
sub dword [ecx + 0x1c], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x30]
cmp edx, dword [ebp + 0x14]
jl 0x6b2d97
push eax
push dword [ebp + 0x2c]
mov dword [ebp - 0x14], eax
push ecx
mov dword [esp], 0x3f800000
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push edx
push esi
push dword [ebp + 0xc]
push ecx
call fcn.006b2580
mov edx, dword [ebp + 8]
add esp, 0x2c
mov dword [ebp - 4], eax
mov ecx, dword [edx + 0x1c]
sub ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 8]
mov dword [ebp - 0x24], ecx
cmp ecx, 0x18
jle 0x6b2d6f
cmp dword [ebp - 0x2c], 0
je 0x6b2d6f
mov ecx, dword [ebp + 0x14]
add ecx, 0xffffffe8
add ecx, dword [ebp - 0x24]
mov dword [ebp + 0x14], ecx
mov eax, dword [ebp + 0x1c]
mov ecx, eax
sar dword [ebp - 0x14], cl
push dword [ebp - 0x14]
movss xmm1, dword [ebp - 0x18]
push 0
push ecx
movss dword [esp], xmm1
push 0
push dword [ebp + 0x24]
push 0
push eax
push dword [ebp + 0x14]
push esi
push edi
push edx
jmp 0x6b2e03
mov ecx, dword [ebp + 0x1c]
sar eax, cl
push eax
push 0
push ecx
movss dword [esp], xmm1
push 0
push dword [ebp + 0x24]
push 0
push ecx
push dword [ebp + 0x14]
push esi
push edi
push dword [ebp + 8]
call fcn.006b2580
mov ecx, dword [ebp + 8]
add esp, 0x2c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
sub edx, dword [ebp - 0x1c]
add edx, dword [ebp + 0x14]
cmp edx, 0x18
jle 0x6b2de2
cmp dword [ebp - 0x2c], 0x4000
je 0x6b2de2
add eax, 0xffffffe8
add eax, edx
push dword [ebp + 0x30]
mov edx, dword [ebp + 0x1c]
push dword [ebp + 0x2c]
push ecx
mov dword [esp], 0x3f800000
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push edx
push eax
push esi
push dword [ebp + 0xc]
push ecx
call fcn.006b2580
mov ecx, dword [ebp + 0xc]
add esp, 0x2c
or dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
movss xmm3, dword [ebp - 0x10]
test eax, eax
jne 0x6b2ee2
cmp esi, 2
je 0x6b2e3d
mov eax, dword [ebp + 8]
push dword [eax + 0x28]
push esi
push ecx
movss dword [esp], xmm3
push edi
push ecx
call fcn.006b33e0
add esp, 0x14
cmp dword [ebp - 0x3c], 0
je 0x6b2ee2
xor ecx, ecx
test esi, esi
jle 0x6b2ee2
movaps xmm1, xmmword [0x736fd0]
cmp esi, 8
jb 0x6b2e8f
mov eax, esi
and eax, 0x80000007
jns 0x6b2e6b
dec eax
or eax, 0xfffffff8
inc eax
mov edx, esi
sub edx, eax
nop
movups xmm0, xmmword [edi + ecx*4]
xorps xmm0, xmm1
movups xmmword [edi + ecx*4], xmm0
movups xmm0, xmmword [edi + ecx*4 + 0x10]
xorps xmm0, xmm1
movups xmmword [edi + ecx*4 + 0x10], xmm0
add ecx, 8
cmp ecx, edx
jl 0x6b2e70
cmp ecx, esi
jge 0x6b2ee2
mov eax, esi
sub eax, ecx
cmp eax, 4
jl 0x6b2ec3
mov edx, esi
lea eax, [edi + 8]
sub edx, ecx
lea eax, [eax + ecx*4]
sub edx, 4
shr edx, 2
inc edx
lea ecx, [ecx + edx*4]
lea eax, [eax + 0x10]
movups xmm0, xmmword [eax - 0x18]
xorps xmm0, xmm1
movups xmmword [eax - 0x18], xmm0
sub edx, 1
jne 0x6b2eb0
cmp ecx, esi
jge 0x6b2ee2
nop word [eax + eax]
movss xmm0, dword [edi + ecx*4]
xorps xmm0, xmm1
movss dword [edi + ecx*4], xmm0
inc ecx
cmp ecx, esi
jl 0x6b2ed0
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret