Function at 0x10001d30
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
mov edx, str.xxxxxxxxxxxxx____xxxx____xx____xxxxx____x____
mov ecx, 0x1004b7d8
push esi
push edi
sub esp, 8
call fcn.100019f0
add esp, 8
mov dword [0x10053748], eax
test eax, eax
je 0x10001f0b
mov eax, dword [0x55db9c]
mov eax, dword [eax]
mov dword [0x10053744], eax
test eax, eax
jne 0x10001f16
movups xmm0, xmmword [str.XSWYY]
xor esi, esi
cmp dword [0x10052c78], 2
movups xmmword [ebp - 0x60], xmm0
movups xmm0, xmmword [0x1004bdf8]
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [0x1004be08]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [0x1004be18]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x1004be28]
movups xmmword [ebp - 0x20], xmm0
jl 0x10001ee4
movaps xmm4, xmmword [0x1004be40]
xor ecx, ecx
movaps xmm3, xmmword [0x1004be70]
movaps xmm5, xmmword [str.1111]
movaps xmm6, xmmword [0x1004be60]
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x60]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x60], xmm1
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
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x58]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x58], xmm1
add ecx, 8
cmp ecx, 0x28
jl 0x10001df0
lea ecx, [ebp - 0x60]
call fcn.10001af0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 0x5397829d
mov ecx, esi
mul esi
shr edx, 4
imul eax, edx, 0x31
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x60], cx
inc esi
cmp esi, 0x28
jl 0x10001ee4
lea ecx, [ebp - 0x60]
call fcn.10001af0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
sub esp, 8
mov edx, str.xxxxxxxxxxxxxxxxxx____xxxxxxxxxxx____x____xxxx____
mov ecx, 0x1004b838
call fcn.100019f0
add esp, 8
mov dword [0x1005374c], eax
test eax, eax
jne 0x10002099
mov ecx, 0x18
lea edi, [ebp - 0x70]
mov esi, 0x1004bc80
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
cmp dword [0x10052c78], 2
movsw word es:[edi], word [esi]
jl 0x10002060
movaps xmm4, xmmword [0x1004be40]
movaps xmm3, xmmword [0x1004be70]
movaps xmm5, xmmword [str.1111]
movaps xmm6, xmmword [0x1004be60]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x70]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x70], xmm1
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
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x68]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x68], xmm1
add ecx, 8
cmp ecx, 0x30
jl 0x10001f74
cmp ecx, 0x31
jge 0x10002086
nop word [eax + eax]
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, ecx
imul eax, eax, 0x31
sub edx, eax
add edx, 0x38
xor word [ebp + ecx*2 - 0x70], dx
inc ecx
cmp ecx, 0x31
jl 0x10002060
lea ecx, [ebp - 0x70]
call fcn.10001af0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
sub esp, 8
mov edx, str.xxxxxxxxx____x____xxxxxxxxxx____x____xxxxxxxxxxxxx______________xxxxxxxxxxxx
mov ecx, 0x1004b8a0
call fcn.100019f0
add esp, 8
mov dword [0x10053740], eax
test eax, eax
jne 0x10002256
movups xmm0, xmmword [0x1004bd58]
xor esi, esi
cmp dword [0x10052c78], 2
movups xmmword [ebp - 0x70], xmm0
movups xmm0, xmmword [0x1004bd68]
movups xmmword [ebp - 0x60], xmm0
movups xmm0, xmmword [0x1004bd78]
movups xmmword [ebp - 0x50], xmm0
movups xmm0, xmmword [0x1004bd88]
movups xmmword [ebp - 0x40], xmm0
movups xmm0, xmmword [0x1004bd98]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x1004bda8]
movups xmmword [ebp - 0x20], xmm0
jl 0x10002224
movaps xmm4, xmmword [0x1004be40]
xor ecx, ecx
movaps xmm3, xmmword [0x1004be70]
movaps xmm5, xmmword [str.1111]
movaps xmm6, xmmword [0x1004be60]
nop word [eax + eax]
movd xmm0, ecx
lea eax, [ecx + 4]
pshufd xmm2, xmm0, 0
paddd xmm2, xmm4
movaps xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x70]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + ecx*2 - 0x70], xmm1
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
psrad xmm1, 4
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
pshufhw xmm0, xmm2, 0xd8
pshuflw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm6
paddw xmm1, xmm0
movq xmm0, qword [ebp + ecx*2 - 0x68]
xorps xmm1, xmm0
movq qword [ebp + ecx*2 - 0x68], xmm1
add ecx, 8
cmp ecx, 0x30
jl 0x10002130
lea ecx, [ebp - 0x70]
call fcn.10001af0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov eax, 0x5397829d
mov ecx, esi
mul esi
shr edx, 4
imul eax, edx, 0x31
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x70], cx
inc esi
cmp esi, 0x30
jl 0x10002224
lea ecx, [ebp - 0x70]
call fcn.10001af0
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret