Function at 0x10001f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2368
call fcn.1000f330
mov eax, dword [0x10017004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x214]
mov dword [ebp - 0x2310], edx
push eax
push 0x80
xor edx, edx
mov ebx, ecx
call fcn.10001030
add esp, 4
call eax
lea eax, [ebp - 0x230c]
mov edx, 4
push eax
push 0x28
call fcn.10001030
add esp, 4
call eax
mov edx, 1
test eax, eax
je 0x10001fe2
lea eax, [ebp - 0x2308]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x50
jmp 0x10001ff0
push 0x10015100
lea eax, [ebp - 0x214]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
push 0x1000
lea eax, [ebp - 0x2214]
xor edx, edx
push eax
push 0x80
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [str.PMNK]
mov edi, dword [0x10017bfc]
xor esi, esi
mov eax, 2
movups xmmword [ebp - 0x2344], xmm0
lea ecx, [esi + 0x1f]
movups xmm0, xmmword [0x10015164]
movups xmmword [ebp - 0x2334], xmm0
movq xmm0, qword [0x10015174]
movq qword [ebp - 0x2324], xmm0
cmp edi, eax
jl 0x10002180
movaps xmm4, xmmword [0x10015870]
movaps xmm3, xmmword [0x100158f0]
movaps xmm6, xmmword [0x10015890]
movd xmm5, eax
movd xmm7, ecx
nop dword [eax + eax]
movd xmm0, esi
lea eax, [esi + 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158c0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x2344]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0x2344], 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158c0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x233c]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0x233c], xmm1
add esi, 8
cmp esi, 0x10
jl 0x10002080
cmp esi, 0x14
jge 0x100021ab
nop dword [eax + eax]
mov eax, 0x66666667
mov ecx, esi
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x2344], cx
inc esi
cmp esi, 0x14
jl 0x10002180
lea eax, [ebp - 0x2344]
mov edx, 1
push eax
lea eax, [ebp - 0x2214]
push eax
push 0x50
call fcn.10001030
add esp, 4
call eax
cmp word [0x1001518e], 0
movups xmm0, xmmword [0x1001517c]
mov eax, dword [0x1001518c]
mov dword [ebp - 0x2320], eax
movups xmmword [ebp - 0x2330], xmm0
je 0x10002214
xor esi, esi
nop
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x2330], cx
inc esi
cmp esi, 0xa
jl 0x100021f0
lea eax, [ebp - 0x2330]
mov edx, 1
push eax
lea eax, [ebp - 0x2214]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
lea eax, [ebp - 0x214]
mov edx, 1
push eax
lea eax, [ebp - 0x2214]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
cmp word [0x100151b2], 0
movups xmm0, xmmword [0x100151a0]
mov eax, dword [0x100151b0]
mov dword [ebp - 0x2320], eax
movups xmmword [ebp - 0x2330], xmm0
je 0x1000229b
xor esi, esi
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x2330], cx
inc esi
cmp esi, 0xa
jl 0x10002277
lea eax, [ebp - 0x2330]
mov edx, 1
push eax
lea eax, [ebp - 0x2214]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [0x100151b8]
mov ax, word [0x10015200]
xor esi, esi
mov word [ebp - 0x231c], ax
movups xmmword [ebp - 0x2364], xmm0
movups xmm0, xmmword [0x100151c8]
movups xmmword [ebp - 0x2354], xmm0
movups xmm0, xmmword [0x100151d8]
movups xmmword [ebp - 0x2344], xmm0
movups xmm0, xmmword [0x100151e8]
movups xmmword [ebp - 0x2334], xmm0
movq xmm0, qword [0x100151f8]
movq qword [ebp - 0x2324], xmm0
cmp edi, 2
jl 0x10002440
movaps xmm4, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm6, xmmword [0x10015890]
movd xmm5, eax
mov eax, 0x1f
movd xmm7, eax
movd xmm0, esi
lea eax, [esi + 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158c0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x2364]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movq qword [ebp + esi*2 - 0x2364], 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, xmm5
movaps xmm0, xmm1
psrld xmm0, xmm7
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, qword [0x100158c0]
paddw xmm1, xmm0
movq xmm0, qword [ebp + esi*2 - 0x235c]
pxor xmm1, xmm0
movq qword [ebp + esi*2 - 0x235c], xmm1
add esi, 8
cmp esi, 0x20
jl 0x10002341
cmp esi, 0x25
jge 0x1000246b
nop dword [eax]
mov eax, 0x66666667
mov ecx, esi
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x2364], cx
inc esi
cmp esi, 0x25
jl 0x10002440
lea eax, [ebp - 0x2364]
mov edx, 1
push eax
lea eax, [ebp - 0x2214]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [0x10015190]
pextrw eax, xmm0, 7
movups xmmword [ebp - 0x232c], xmm0
test ax, ax
je 0x100025d4
xor esi, esi
cmp edi, 2
jl 0x100025b0
movaps xmm2, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158c0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x10015190
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10015880]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x232c], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [ebp - 0x2324]
pxor xmm1, xmm0
movq qword [ebp - 0x2324], xmm1
jmp 0x100025d4
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x232c], cx
inc esi
cmp esi, 8
jl 0x100025b0
lea eax, [ebp - 0x232c]
mov edx, 1
push eax
lea eax, [ebp - 0x2214]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
push ebx
lea eax, [ebp - 0x2214]
mov edx, 1
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
movups xmm0, xmmword [0x10015138]
pextrw eax, xmm0, 7
movups xmmword [ebp - 0x232c], xmm0
test ax, ax
je 0x10002754
xor esi, esi
cmp edi, 2
jl 0x10002730
movaps xmm2, xmmword [0x10015870]
mov eax, 2
movaps xmm3, xmmword [0x100158f0]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
movaps xmm7, xmmword [0x100158c0]
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
movd xmm4, eax
mov eax, 0x1f
psrad xmm1, xmm4
movaps xmm0, xmm1
movd xmm5, eax
mov eax, 0x10015138
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10015880]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [eax]
pxor xmm1, xmm0
movaps xmm0, xmm2
movq qword [ebp - 0x232c], xmm1
movaps xmm1, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm4
movaps xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10015890]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
movq xmm0, xmm7
paddw xmm1, xmm0
movq xmm0, qword [ebp - 0x2324]
pxor xmm1, xmm0
movq qword [ebp - 0x2324], xmm1
jmp 0x10002754
mov eax, 0xcccccccd
mov ecx, esi
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x38
xor word [ebp + esi*2 - 0x232c], cx
inc esi
cmp esi, 8
jl 0x10002730
lea eax, [ebp - 0x232c]
mov edx, 1
push eax
lea eax, [ebp - 0x2214]
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
push dword [ebp - 0x2310]
lea eax, [ebp - 0x2214]
mov edx, 1
push eax
push 0x4e
call fcn.10001030
add esp, 4
call eax
push 0
lea edx, [ebp - 0x2310]
lea ecx, [ebp - 0x2214]
call fcn.100027c0
mov ecx, dword [ebp - 8]
add esp, 4
neg eax
sbb eax, eax
xor ecx, ebp
pop edi
pop esi
neg eax
pop ebx
call fcn.100055ab
mov esp, ebp
pop ebp
ret