Function at 0x10146e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb4
mov eax, dword [0x1020c0c0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
cmp ecx, 1
jne 0x1014728f
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1022b6ec]
mov edi, dword [0x1022b6e0]
mov esi, dword [eax + ecx*4]
mov eax, dword [0x1051ef00]
cmp eax, dword [esi + 4]
jle 0x10147064
push 0x1051ef00
call fcn.101a0794
add esp, 4
cmp dword [0x1051ef00], 0xffffffff
jne 0x10147064
mov eax, dword [0x10229c80]
xor ebx, ebx
cmp dword [0x1022b6e0], 2
movups xmm0, xmmword [str.Q_kGWPVVWcZL6_6:D]
mov edi, dword [eax + 8]
mov ax, word [0x101f9f80]
mov word [esp + 0xb4], ax
mov al, byte [0x101f9f82]
movups xmmword [esp + 0xa4], xmm0
mov byte [esp + 0xb6], al
jl 0x10147010
movaps xmm0, xmmword [str.2222222222222222777777777777777788888888888888889999999999999999]
mov eax, 4
movaps xmm4, xmmword [0x102025e0]
movaps xmm3, xmmword [0x10202aa0]
movaps xmm6, xmmword [0x10202660]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [esp + 0x90], xmm0
mov ecx, dword [esp + 0x90]
movd xmm7, 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
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
pand xmm1, xmmword [0x10202710]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0xa4]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0xa4], 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
pand xmm1, xmmword [0x10202710]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0xa8]
pxor xmm1, xmm0
movd dword [esp + ebx + 0xa8], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x10146f03
cmp ebx, 0x13
jge 0x1014703b
nop dword [eax + eax]
mov eax, 0x4d4873ed
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0xa4], cl
inc ebx
cmp ebx, 0x13
jl 0x10147010
mov eax, dword [edi]
lea ecx, [esp + 0xa4]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x3c]
call eax
push 0x1051ef00
mov dword [0x1051f210], eax
call fcn.101a074a
mov edi, dword [0x1022b6e0]
add esp, 4
mov eax, dword [0x1051f20c]
cmp eax, dword [esi + 4]
jle 0x1014726e
push 0x1051f20c
call fcn.101a0794
add esp, 4
cmp dword [0x1051f20c], 0xffffffff
jne 0x1014726e
mov eax, dword [0x10229c80]
xor ebx, ebx
movups xmm0, xmmword [str.rCU_YEYT_dXTM__]
mov esi, dword [eax + 8]
mov eax, dword [0x101f9eb8]
mov dword [esp + 0xb4], eax
mov ax, word [0x101f9ebc]
mov word [esp + 0xb8], ax
mov al, byte [0x101f9ebe]
mov byte [esp + 0xba], al
movups xmmword [esp + 0xa4], xmm0
cmp edi, 2
jl 0x10147220
movaps xmm0, xmmword [str.2222222222222222777777777777777788888888888888889999999999999999]
mov eax, 4
movaps xmm4, xmmword [0x102025e0]
movaps xmm3, xmmword [0x10202aa0]
movaps xmm6, xmmword [0x10202660]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [esp + 0x90], xmm0
mov ecx, dword [esp + 0x90]
movd xmm7, 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
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
pand xmm1, xmmword [0x10202710]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0xa4]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0xa4], 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
pand xmm1, xmmword [0x10202710]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0xa8]
pxor xmm1, xmm0
movd dword [esp + ebx + 0xa8], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x10147114
cmp ebx, 0x17
jge 0x1014724b
nop dword [eax]
mov eax, 0x4d4873ed
mov cl, bl
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
movsx eax, al
imul eax, eax, 0x35
sub cl, al
add cl, 0x32
xor byte [esp + ebx + 0xa4], cl
inc ebx
cmp ebx, 0x17
jl 0x10147220
mov eax, dword [esi]
lea ecx, [esp + 0xa4]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x1051f20c
mov dword [0x1051efd4], eax
call fcn.101a074a
add esp, 4
mov ecx, dword [0x1051f210]
push 0x258
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [0x1051efd4]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
xor eax, eax
lea esi, [esp + 0x18]
xorps xmm0, xmm0
mov word [esp + 0x18], ax
mov ecx, 0x1e
mov byte [esp + 0x1a], al
mov edi, 0x10453b70
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], al
movq qword [esp + 0x28], xmm0
mov dword [esp + 0x30], eax
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov byte [esp + 0x4c], al
movups xmmword [esp + 0x50], xmm0
mov dword [esp + 0x68], eax
movq qword [esp + 0x60], xmm0
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101a0143
mov esp, ebp
pop ebp
ret