Function at 0x10069510
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x100aec40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
movss xmm1, dword [0x10026ce0]
push edi
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x15c], esi
mov edi, dword [esi + 0xdc]
mov ecx, dword [esi + 0xe0]
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x160], edi
lea eax, [edi*4 - 4]
imul eax, ecx
mov ecx, 0xffffff60
sub ecx, eax
mov eax, dword [esi + 0xa8]
neg eax
sbb eax, eax
and eax, 0x10
sub ecx, eax
add dword [edx], ecx
mov eax, dword [edx]
lea edx, [ebp - 0x144]
mov dword [ebp - 0x16c], eax
xor eax, eax
add esi, 0x5c80
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], esi
nop
test edi, edi
jle 0x10069612
lea ecx, [ebp - 0x44]
add ecx, eax
lea edi, [ebp - 0x144]
mov eax, edx
mov edx, esi
mov esi, dword [ebp + 8]
sub esi, edi
mov dword [ebp - 0x164], esi
mov esi, dword [ebp - 0x160]
mov edi, dword [ebp - 0x164]
nop word [eax + eax]
movss xmm0, dword [edi + eax]
lea eax, [eax + 0x80]
mov dword [edx], 0
xorps xmm0, xmm1
movss dword [eax - 0x80], xmm0
lea edx, [edx + 0x80]
mov byte [ecx], 0
lea ecx, [ecx + 0x20]
sub esi, 1
jne 0x100695d0
mov edi, dword [ebp - 0x160]
mov eax, dword [ebp - 0x14c]
mov edx, dword [ebp - 0x154]
mov esi, dword [ebp - 0x150]
inc eax
add edx, 4
add esi, 4
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x154], edx
mov dword [ebp - 0x150], esi
cmp eax, 0x20
jl 0x100695a0
movss xmm2, dword [0x10026968]
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x170], 6
mov dword [ebp - 0x174], 0x18
nop dword [eax]
nop dword [eax + eax]
movss xmm1, dword [ebp - 0x144]
lea edx, [ebp - 0x144]
addss xmm1, xmm2
mov dword [ebp - 0x164], 0xffffffff
mov dword [ebp - 0x158], 0xffffffff
xor esi, esi
mov dword [ebp - 0x14c], edx
mov edi, edi
xor eax, eax
test edi, edi
jle 0x100696de
lea ecx, [ebp - 0x44]
add ecx, esi
nop dword [eax + eax]
cmp byte [ecx], 2
je 0x100696cd
movss xmm0, dword [edx]
comiss xmm1, xmm0
jbe 0x100696cd
movaps xmm1, xmm0
mov dword [ebp - 0x164], esi
mov dword [ebp - 0x158], eax
inc eax
sub edx, 0xffffff80
add ecx, 0x20
cmp eax, edi
jl 0x100696b0
mov edx, dword [ebp - 0x14c]
inc esi
add edx, 4
mov dword [ebp - 0x14c], edx
cmp esi, 0x20
jl 0x100696a0
mov esi, dword [ebp - 0x164]
cmp esi, 0xffffffff
jle 0x1006986e
mov edx, dword [ebp - 0x158]
xor ecx, ecx
shl edx, 5
add edx, esi
mov dword [ebp - 0x14c], 0xc
mov al, byte [ebp + edx - 0x44]
test al, al
mov eax, dword [ebp - 0x14c]
cmove eax, dword [ebp - 0x174]
cmove ecx, dword [ebp - 0x170]
mov dword [ebp - 0x14c], eax
cmp esi, dword [ebp - 0x168]
jl 0x1006973e
imul ecx, edi
add eax, ecx
add eax, dword [ebp - 0x150]
add eax, dword [ebp - 0x154]
cmp dword [ebp - 0x16c], eax
jl 0x100697d2
add dword [ebp - 0x150], ecx
mov ecx, dword [ebp - 0x158]
mov eax, dword [ebp - 0x154]
add eax, dword [ebp - 0x14c]
mov edi, dword [ebp - 0x15c]
lea ecx, [ecx + 0xb9]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0x15c]
shl ecx, 5
add ecx, esi
mov byte [ebp + edx - 0x44], 1
mov eax, dword [eax + ecx*4]
inc eax
mov dword [edi + ecx*4], eax
mov edi, dword [ebp - 0x160]
cmp eax, 0x10
jae 0x100697c6
mov eax, dword [ebp - 0x15c]
lfence
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp + 8]
movss xmm0, dword [eax*4 + 0x1001e560]
subss xmm0, dword [ecx + edx*4]
movss dword [ebp + edx*4 - 0x144], xmm0
mov byte [ebp - 0x145], 1
cmp eax, 0xe
jne 0x100697de
mov byte [ebp - 0x145], 2
mov byte [ebp + edx - 0x44], 2
mov edx, dword [ebp - 0x158]
mov ecx, 0xb9
mov eax, edx
add eax, ecx
cmp edi, 2
jne 0x10069670
cmp esi, dword [ebp - 0x168]
jl 0x10069670
mov edi, dword [ebp - 0x15c]
mov ecx, 1
sub ecx, edx
shl eax, 5
add eax, esi
lea edx, [ecx + 0xb9]
shl ecx, 5
mov eax, dword [edi + eax*4]
shl edx, 5
add edx, esi
add esi, ecx
mov cl, byte [ebp - 0x145]
mov dword [edi + edx*4], eax
mov edi, dword [ebp - 0x160]
mov byte [ebp + esi - 0x44], cl
cmp eax, 0x10
jae 0x10069670
mov eax, dword [ebp - 0x15c]
lfence
mov eax, dword [eax + edx*4]
movss xmm0, dword [eax*4 + 0x1001e560]
mov eax, dword [ebp + 8]
subss xmm0, dword [eax + esi*4]
movss dword [ebp + esi*4 - 0x144], xmm0
jmp 0x10069670
mov eax, dword [ebp - 0x16c]
sub eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x178]
sub eax, dword [ebp - 0x154]
mov dword [ecx], eax
test edi, edi
jle 0x10069911
movaps xmm4, xmmword [0x10026c50]
lea eax, [ebp - 0x134]
xorps xmm2, xmm2
xorps xmm1, xmm1
xorps xmm3, xmm3
nop word [eax + eax]
mov ecx, 4
movups xmm0, xmmword [eax - 0x10]
cmpltps xmm0, xmm3
andps xmm0, xmm4
paddd xmm2, xmm0
movups xmm0, xmmword [eax]
add eax, 0x20
cmpltps xmm0, xmm3
andps xmm0, xmm4
paddd xmm1, xmm0
sub ecx, 1
jne 0x100698b5
sub edi, 1
jne 0x100698b0
paddd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
paddd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
pop edi
movd eax, xmm1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100a76e0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100a76e0
mov esp, ebp
pop ebp
ret 4