Function at 0x100add10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
mov eax, dword [0x101f90c0]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [0x10214408]
push ebx
push esi
push edi
cmp byte [eax + 0x1490], 0
mov esi, ecx
je 0x100ae062
movups xmm0, xmmword [str.YZRRTJ]
mov ax, word [0x101df040]
mov word [esp + 0x3c], ax
movups xmmword [esp + 0x2c], xmm0
test ah, ah
je 0x100adec1
xor ecx, ecx
cmp dword [0x10215510], 2
jl 0x100ade94
movaps xmm0, xmmword [str.4444444444444444]
lea edi, [esp + 0x30]
movaps xmm4, xmmword [0x101eb880]
movaps xmm3, xmmword [0x101ebc90]
movaps xmm5, xmmword [0x101eb910]
movaps xmmword [esp + 0x40], xmm0
mov edx, dword [esp + 0x40]
movd xmm0, ecx
lea eax, [ecx + 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 [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [esp + ecx + 0x2c]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ecx + 0x2c], 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 [0x101eb990]
packuswb xmm1, xmm1
movd xmm0, edx
paddb xmm1, xmm0
movd xmm0, dword [edi + ecx]
xorps xmm1, xmm0
movd dword [edi + ecx], xmm1
add ecx, 8
cmp ecx, 0x10
jl 0x100add92
cmp ecx, 0x12
jge 0x100adec1
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dl, al
shl dl, 3
sub dl, al
mov al, cl
shl dl, 3
sub al, dl
add al, 0x34
xor byte [esp + ecx + 0x2c], al
inc ecx
cmp ecx, 0x12
jl 0x100ade94
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.1018ef80
add esp, 8
test eax, eax
je 0x100ae062
mov eax, dword [str.UG_D8]
xor ebx, ebx
mov dword [esp + 0x14], eax
mov al, byte [0x101df1c4]
mov byte [esp + 0x18], al
nop dword [eax + eax]
mov eax, 0x24924925
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x14], al
inc ebx
cmp ebx, 5
jl 0x100adef0
lea eax, [esp + 0x14]
push eax
push esi
call fcn.1018ef80
add esp, 8
test eax, eax
jne 0x100ae062
mov eax, dword [str._TT__M:]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov ax, word [0x101df15c]
mov word [esp + 0x20], ax
mov al, byte [0x101df15e]
mov byte [esp + 0x22], al
mov eax, 0x24924925
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x1c], al
inc ebx
cmp ebx, 7
jl 0x100adf51
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.1018ef80
add esp, 8
test eax, eax
jne 0x100ae062
mov ax, word [0x101df224]
movq xmm0, qword [0x101df21c]
movq qword [esp + 0x40], xmm0
mov word [esp + 0x48], ax
test ah, ah
je 0x100adfde
xor ebx, ebx
mov eax, 0x24924925
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x40], al
inc ebx
cmp ebx, 0xa
jl 0x100adfb2
lea eax, [esp + 0x40]
push eax
push esi
call fcn.1018ef80
add esp, 8
test eax, eax
jne 0x100ae062
mov eax, dword [str.RECK9]
mov dword [esp + 0x24], eax
mov ax, word [0x101df0c0]
mov word [esp + 0x28], ax
test ah, ah
je 0x100ae03c
xor ebx, ebx
nop word [eax + eax]
mov eax, 0x24924925
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x34
xor byte [esp + ebx + 0x24], al
inc ebx
cmp ebx, 6
jl 0x100ae010
lea eax, [esp + 0x24]
push eax
push esi
call fcn.1018ef80
add esp, 8
test eax, eax
jne 0x100ae062
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.1018e0ca
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x5c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1018e0ca
mov esp, ebp
pop ebp
ret