Function at 0x100d7940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x54
mov eax, dword [0x1020f0c0]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [0x1022ccc8]
push edi
lea ecx, [ecx + 0x34a8]
call fcn.100cf6a0
test al, al
je 0x100d81ef
mov cl, byte [esi + 0x5c]
test cl, cl
sete al
mov byte [esi + 0x5c], al
test cl, cl
je 0x100d7993
mov eax, dword [0x1022ccd0]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x9c]
call eax
movss xmm1, dword [0x10456a90]
xorps xmm2, xmm2
comiss xmm1, xmm2
jbe 0x100d79b6
movss xmm0, dword [0x10200e78]
comiss xmm0, xmm1
jbe 0x100d79b6
subss xmm0, xmm1
jmp 0x100d79b9
xorps xmm0, xmm0
mov eax, dword fs:[0x2c]
mov ecx, dword [0x1022e69c]
mov edi, dword [0x1022e690]
movss dword [0x10456a90], xmm0
mov esi, dword [eax + ecx*4]
mov eax, dword [0x10521ddc]
mov dword [esp + 0x14], esi
cmp eax, dword [esi + 4]
jle 0x100d7bb3
push 0x10521ddc
call fcn.101a22b8
add esp, 4
cmp dword [0x10521ddc], 0xffffffff
jne 0x100d7bb3
mov eax, dword [0x1022ccd0]
movups xmm0, xmmword [str.UXVfRPI_M]
mov esi, dword [eax + 8]
mov ax, word [0x101f7a70]
mov word [esp + 0x2c], ax
movups xmmword [esp + 0x1c], xmm0
test ah, ah
je 0x100d7b8f
xor ebx, ebx
cmp edi, 2
jl 0x100d7b62
movaps xmm0, xmmword [0x10201550]
lea edx, [esp + 0x20]
movaps xmm4, xmmword [0x10201400]
movaps xmm3, xmmword [0x10201840]
movaps xmm5, xmmword [0x10201490]
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
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 [0x10201520]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x1c]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x1c], 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 [0x10201520]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [edx + ebx]
xorps xmm1, xmm0
movd dword [edx + ebx], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100d7a60
cmp ebx, 0x12
jge 0x100d7b8f
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x36
xor byte [esp + ebx + 0x1c], al
inc ebx
cmp ebx, 0x12
jl 0x100d7b62
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10521ddc
mov dword [0x10521e1c], eax
call fcn.101a2267
mov esi, dword [esp + 0x18]
add esp, 4
mov ecx, dword [0x10521e1c]
push 1
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov eax, dword [0x10521e0c]
cmp eax, dword [esi + 4]
jle 0x100d7da3
push 0x10521e0c
call fcn.101a22b8
add esp, 4
cmp dword [0x10521e0c], 0xffffffff
jne 0x100d7da3
cmp byte [0x101f6477], 0
mov eax, dword [0x1022ccd0]
movups xmm0, xmmword [0x101f6464]
mov esi, dword [eax + 8]
mov eax, dword [str._2_Iwv]
movups xmmword [esp + 0x1c], xmm0
mov dword [esp + 0x2c], eax
je 0x100d7d7f
xor ebx, ebx
cmp edi, 2
jl 0x100d7d52
movaps xmm0, xmmword [0x10201550]
lea edx, [esp + 0x20]
movaps xmm4, xmmword [0x10201400]
movaps xmm3, xmmword [0x10201840]
movaps xmm5, xmmword [0x10201490]
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
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 [0x10201520]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x1c]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x1c], 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 [0x10201520]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [edx + ebx]
xorps xmm1, xmm0
movd dword [edx + ebx], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100d7c50
cmp ebx, 0x14
jge 0x100d7d7f
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x36
xor byte [esp + ebx + 0x1c], al
inc ebx
cmp ebx, 0x14
jl 0x100d7d52
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10521e0c
mov dword [0x10521dfc], eax
call fcn.101a2267
mov esi, dword [esp + 0x18]
add esp, 4
mov al, byte [0x101f7850]
xor ebx, ebx
movq xmm0, qword [str.vlhrq_]
mov byte [esp + 0x24], al
movq qword [esp + 0x1c], xmm0
nop dword [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, 0x36
xor byte [esp + ebx + 0x1c], al
inc ebx
cmp ebx, 9
jl 0x100d7dc0
mov ecx, dword [0x10521dfc]
lea edx, [esp + 0x1c]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x10521dec]
cmp eax, dword [esi + 4]
jle 0x100d7fe3
push 0x10521dec
call fcn.101a22b8
add esp, 4
cmp dword [0x10521dec], 0xffffffff
jne 0x100d7fe3
cmp byte [0x101f6477], 0
mov eax, dword [0x1022ccd0]
movups xmm0, xmmword [0x101f6464]
mov esi, dword [eax + 8]
mov eax, dword [str._2_Iwv]
movups xmmword [esp + 0x48], xmm0
mov dword [esp + 0x58], eax
je 0x100d7fbf
xor ebx, ebx
cmp edi, 2
jl 0x100d7f92
movaps xmm0, xmmword [0x10201550]
lea edx, [esp + 0x4c]
movaps xmm4, xmmword [0x10201400]
movaps xmm3, xmmword [0x10201840]
movaps xmm5, xmmword [0x10201490]
movaps xmmword [esp + 0x30], xmm0
mov ecx, dword [esp + 0x30]
nop word [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 [0x10201520]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + ebx + 0x48]
xorps xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + ebx + 0x48], 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 [0x10201520]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [edx + ebx]
xorps xmm1, xmm0
movd dword [edx + ebx], xmm1
add ebx, 8
cmp ebx, 0x10
jl 0x100d7e90
cmp ebx, 0x14
jge 0x100d7fbf
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x36
xor byte [esp + ebx + 0x48], al
inc ebx
cmp ebx, 0x14
jl 0x100d7f92
mov eax, dword [esi]
lea ecx, [esp + 0x48]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10521dec
mov dword [0x10521e34], eax
call fcn.101a2267
mov esi, dword [esp + 0x18]
add esp, 4
mov al, byte [0x101f7850]
xor ebx, ebx
movq xmm0, qword [str.vlhrq_]
mov byte [esp + 0x38], al
movq qword [esp + 0x30], xmm0
nop dword [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, 0x36
xor byte [esp + ebx + 0x30], al
inc ebx
cmp ebx, 9
jl 0x100d8000
mov ecx, dword [0x10521e34]
lea edx, [esp + 0x30]
push edx
mov eax, dword [ecx]
mov eax, dword [eax + 0x38]
call eax
mov eax, dword [0x10521e20]
cmp eax, dword [esi + 4]
jle 0x100d81e0
push 0x10521e20
call fcn.101a22b8
add esp, 4
cmp dword [0x10521e20], 0xffffffff
jne 0x100d81e0
cmp byte [0x101f7d6b], 0
mov eax, dword [0x1022ccd0]
mov ecx, dword [0x101f7d64]
mov edx, dword [0x101f7d68]
mov esi, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
je 0x100d81c0
xor ebx, ebx
cmp edi, 2
jl 0x100d8193
movaps xmm2, xmmword [0x10201400]
movaps xmm4, xmmword [0x10201840]
movaps xmm1, xmm2
punpckldq xmm1, xmm2
movaps xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
mov eax, dword [0x10201550]
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10201490]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
movaps xmm2, xmmword [0x10201440]
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, ecx
xorps xmm1, xmm0
movaps xmm0, xmm2
movd dword [esp + 0x14], xmm1
movaps xmm1, xmm2
punpckldq xmm1, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movaps xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x10201490]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm0, xmm0, 0xd8
pshufd xmm1, xmm0, 0xd8
andps xmm1, xmmword [0x10201520]
packuswb xmm1, xmm1
movd xmm0, eax
paddb xmm1, xmm0
movd xmm0, edx
xorps xmm1, xmm0
movd dword [esp + 0x18], xmm1
jmp 0x100d81c0
mov eax, 0x92492493
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov cl, al
shl cl, 3
sub cl, al
mov al, bl
shl cl, 3
sub al, cl
add al, 0x36
xor byte [esp + ebx + 0x14], al
inc ebx
cmp ebx, 8
jl 0x100d8193
mov eax, dword [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x3c]
call eax
push 0x10521e20
mov dword [0x10521e38], eax
call fcn.101a2267
add esp, 4
mov ecx, dword [0x10521e38]
push 0
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101a1d25
mov esp, ebp
pop ebp
ret