Function at 0x10109d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [0x10216634]
sub esp, 0x44
cmp byte [eax + 0x36be], 0
push ebx
push esi
push edi
je 0x1010a317
test cl, cl
je 0x10109d55
mov eax, dword [0x10216630]
mov eax, dword [eax + 0xc]
movss xmm0, dword [eax]
addss xmm0, dword [0x101ecd10]
movss dword [0x104237f4], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x10216630]
movss xmm0, dword [0x104237f4]
mov eax, dword [ecx + 0xc]
movss xmm1, dword [eax]
comiss xmm0, xmm1
ja 0x1010a317
addss xmm1, dword [0x101ecc48]
mov esi, dword [ecx + 0x3c]
xor ebx, ebx
cmp dword [0x10217ca4], 2
mov eax, dword [0x101e5458]
movups xmm0, xmmword [0x101e5448]
mov dword [esp + 0x4b], eax
mov al, byte [0x101e545c]
movss dword [0x104237f4], xmm1
movups xmmword [esp + 0x3b], xmm0
mov byte [esp + 0x4f], al
jl 0x10109ee4
movaps xmm0, xmmword [str.4444444444444444]
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed410]
movaps xmm5, xmmword [0x101ed0c0]
movaps xmmword [esp + 0x20], xmm0
mov edx, dword [esp + 0x20]
nop dword [eax + eax]
movd xmm0, ebx
lea eax, [ebx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x3b]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x3b], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x3f]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x3f], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x10109de0
cmp ebx, 0x15
jge 0x10109f0e
mov eax, 0x8d3dcb09
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, bl
movsx eax, al
imul eax, eax, 0x3a
sub dl, al
add dl, 0x34
xor byte [esp + ebx + 0x3b], dl
inc ebx
cmp ebx, 0x15
jl 0x10109ee4
mov ecx, dword [ecx + 0x38]
lea eax, [esp + 0x3b]
push eax
call esi
test eax, eax
je 0x1010a317
mov eax, dword [eax + 0x44]
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0xc0]
call eax
xor edi, edi
mov dword [esp + 0x10], eax
test eax, eax
jle 0x1010a317
mov ecx, dword [ebx]
push edi
mov edx, dword [ecx + 0xc4]
mov ecx, ebx
call edx
mov esi, eax
test esi, esi
je 0x1010a30c
mov cx, word [0x101e5160]
xor ebx, ebx
cmp dword [0x10217ca4], 2
movups xmm0, xmmword [str.pPWCPwUOU___v_.__7F]
mov word [esp + 0x4b], cx
mov cl, byte [0x101e5162]
movups xmmword [esp + 0x3b], xmm0
mov byte [esp + 0x4d], cl
jl 0x1010a0b5
movaps xmm0, xmmword [str.4444444444444444]
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed410]
movaps xmm5, xmmword [0x101ed0c0]
movaps xmmword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
movd xmm0, ebx
lea eax, [ebx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x3b]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x3b], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x3f]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x3f], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x10109fb1
cmp ebx, 0x13
jge 0x1010a0df
mov eax, 0x8d3dcb09
mov cl, bl
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [esp + ebx + 0x3b], cl
inc ebx
cmp ebx, 0x13
jl 0x1010a0b5
mov eax, dword [esi]
lea ecx, [esp + 0x3b]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x22c]
call eax
test al, al
je 0x1010a308
mov eax, dword [0x10216634]
cmp byte [eax + 0x36bf], 0
je 0x1010a2a3
cmp byte [0x101e51f7], 0
movups xmm0, xmmword [0x101e51e4]
mov eax, dword [str._2GRR]
mov dword [esp + 0x4b], eax
movups xmmword [esp + 0x3b], xmm0
je 0x1010a28e
xor ebx, ebx
cmp dword [0x10217ca4], 2
jl 0x1010a264
movaps xmm0, xmmword [str.4444444444444444]
movaps xmm4, xmmword [0x101ed000]
movaps xmm3, xmmword [0x101ed410]
movaps xmm5, xmmword [0x101ed0c0]
movaps xmmword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
movd xmm0, ebx
lea eax, [ebx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x3b]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x3b], xmm1
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x101ed130]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x3f]
xorps xmm1, xmm0
movd dword [esp + ebx + 0x3f], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x1010a160
cmp ebx, 0x14
jge 0x1010a28e
mov eax, 0x8d3dcb09
mov cl, bl
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [esp + ebx + 0x3b], cl
inc ebx
cmp ebx, 0x14
jl 0x1010a264
mov eax, dword [esi]
lea ecx, [esp + 0x3b]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x22c]
call eax
test al, al
je 0x1010a308
mov eax, dword [0x10216630]
movq xmm0, qword [str.gEW_VmSVY]
mov eax, dword [eax + 0xc]
movss xmm1, dword [eax + 0x10]
mov ax, word [0x101e5514]
movq qword [esp + 0x16], xmm0
mov word [esp + 0x1e], ax
test ah, ah
je 0x1010a2f1
xor ebx, ebx
nop
mov eax, 0x8d3dcb09
mov cl, bl
mul ebx
shr edx, 5
movsx eax, dl
imul eax, eax, 0x3a
sub cl, al
add cl, 0x34
xor byte [esp + ebx + 0x16], cl
inc ebx
cmp ebx, 0xa
jl 0x1010a2d0
mov eax, dword [esi]
push ecx
lea ecx, [esp + 0x1a]
movss dword [esp], xmm1
push ecx
mov eax, dword [eax + 0x480]
mov ecx, esi
call eax
mov ebx, dword [esp + 0xc]
inc edi
cmp edi, dword [esp + 0x10]
jl 0x10109f44
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret