Function at 0x100b7940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x108
mov eax, dword [0x1020a0c0]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [0x10227c40]
push esi
push edi
cmp byte [eax + 0x14f1], 0
jne 0x100b7977
cmp byte [eax + 0x14d2], 0
je 0x100b7f64
mov eax, dword [0x10229e7c]
cmp dword [eax], 0
je 0x100b7f64
mov eax, dword [0x104e490c]
mov esi, dword [0x104e4908]
mov dword [esp + 0x10], eax
cmp esi, eax
je 0x100b7f64
add esi, 0xf0
mov ecx, eax
nop dword [eax]
nop dword [eax + eax]
cmp byte [esi - 0x8d], 0
je 0x100b7f50
mov eax, dword [0x10229e7c]
mov ecx, dword [eax]
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, dword [esi - 0x6c]
cmp ecx, dword [eax]
je 0x100b7f4c
cmp byte [esi - 0x9b], 0
jne 0x100b7f4c
cmp byte [esi - 0x9a], 0
mov eax, dword [0x10227c40]
je 0x100b7a1a
cmp byte [eax + 0x14d2], 0
je 0x100b7f4c
mov edx, dword [eax + 0x14d8]
lea ecx, [eax + 0x14bd]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0x14d4]
mov dword [esp + 0x18], edx
jmp 0x100b7a41
cmp byte [eax + 0x14f1], 0
je 0x100b7f4c
mov ecx, dword [eax + 0x14f8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x14f4]
mov dword [esp + 0x18], ecx
lea ecx, [eax + 0x14dc]
movups xmm0, xmmword [ecx]
mov eax, dword [0x10227c48]
movups xmmword [esp + 0xe0], xmm0
mov edi, dword [eax + 0x40]
movups xmm0, xmmword [0x101f29a0]
mov ax, word [0x101f29b0]
mov word [esp + 0xd0], ax
movups xmmword [esp + 0xc0], xmm0
test ah, ah
je 0x100b7c03
xor edx, edx
cmp dword [0x102296a0], 2
mov dword [esp + 0x14], edx
jl 0x100b7bd0
movaps xmm0, xmmword [0x101ff830]
mov eax, 4
movaps xmm4, xmmword [0x101ff6c0]
movaps xmm3, xmmword [0x101ffba0]
movaps xmm6, xmmword [0x101ff720]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
movd xmm7, eax
movd xmm0, edx
lea eax, [edx + 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 [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0xc0]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + edx + 0xc0], 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 [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0xc4]
pxor xmm1, xmm0
movd dword [esp + edx + 0xc4], xmm1
add edx, 8
cmp edx, 0x10
jl 0x100b7ac3
mov dword [esp + 0x14], edx
cmp edx, 0x12
jge 0x100b7c03
nop
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x36
xor byte [esp + edx + 0xc0], cl
inc edx
mov dword [esp + 0x14], edx
cmp edx, 0x12
jl 0x100b7bd0
mov eax, dword [edi]
lea ecx, [esp + 0xc0]
push ecx
mov ecx, edi
mov eax, dword [eax + 8]
call eax
movups xmm0, xmmword [0x101f29a0]
mov cx, word [0x101f29b0]
mov edi, eax
mov dword [esp + 0x30], 7
mov word [esp + 0xd0], cx
movups xmmword [esp + 0xc0], xmm0
test ch, ch
je 0x100b7dd3
xor edx, edx
cmp dword [0x102296a0], 2
mov dword [esp + 0x14], edx
jl 0x100b7da0
movaps xmm0, xmmword [0x101ff830]
mov eax, 4
movaps xmm4, xmmword [0x101ff6c0]
movaps xmm3, xmmword [0x101ffba0]
movaps xmm6, xmmword [0x101ff720]
movd xmm5, eax
mov eax, 0x1f
movaps xmmword [esp + 0x20], xmm0
mov ecx, dword [esp + 0x20]
movd xmm7, eax
nop
movd xmm0, edx
lea eax, [edx + 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 [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0xc0]
pxor xmm1, xmm0
movd xmm0, eax
pshufd xmm2, xmm0, 0
movd dword [esp + edx + 0xc0], 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 [0x101ff7d0]
packuswb xmm1, xmm1
movd xmm0, ecx
paddb xmm1, xmm0
movd xmm0, dword [esp + edx + 0xc4]
pxor xmm1, xmm0
movd dword [esp + edx + 0xc4], xmm1
add edx, 8
cmp edx, 0x10
jl 0x100b7c90
mov dword [esp + 0x14], edx
cmp edx, 0x12
jge 0x100b7dd3
nop dword [eax]
mov eax, 0x5397829d
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x14]
movsx eax, al
mov cl, dl
imul eax, eax, 0x31
sub cl, al
add cl, 0x36
xor byte [esp + edx + 0xc0], cl
inc edx
mov dword [esp + 0x14], edx
cmp edx, 0x12
jl 0x100b7da0
movss xmm1, dword [0x101ff458]
lea eax, [esp + 0xc0]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1c]
cdq
sub eax, edx
mov dword [esp + 0x5c], edi
sar eax, 1
lea edx, [esp + 0x30]
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x6c], 0x40400000
mov dword [esp + 0x70], 0x40000000
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mov eax, dword [0x10227c3c]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
movss dword [esp + 0x74], xmm0
movss xmm0, dword [esp + 0xe0]
mulss xmm0, xmm1
mov dword [esp + 0x90], 0x42700000
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0xa8], 8
movss dword [esp + 0x94], xmm0
movss xmm0, dword [esp + 0xe4]
mulss xmm0, xmm1
mov dword [esp + 0xb8], 0x40a00000
mov byte [esp + 0xa0], 1
push edx
movss dword [esp + 0x9c], xmm0
movss xmm0, dword [esp + 0xec]
mulss xmm0, xmm1
movss dword [esp + 0xa0], xmm0
movss xmm0, dword [esp + 0xf0]
mulss xmm0, xmm1
xorps xmm1, xmm1
movss dword [esp + 0x88], xmm0
movss xmm0, dword [esi - 8]
addss xmm0, xmm1
movss dword [esp + 0xb0], xmm0
movss xmm0, dword [esi - 4]
addss xmm0, xmm1
movss dword [esp + 0xb4], xmm0
movss xmm0, dword [esi]
addss xmm0, dword [0x101ff2b8]
movss dword [esp + 0xb8], xmm0
movd xmm0, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0xc0], xmm0
mov ecx, dword [eax + 0x64]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
call eax
test eax, eax
je 0x100b7f4c
mov ecx, dword [0x10227c3c]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
push edx
mov ecx, dword [ecx + 0x64]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
call eax
mov ecx, dword [esp + 0x10]
add esi, 0x148
lea eax, [esi - 0xf0]
cmp eax, ecx
jne 0x100b79b0
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.1019d163
mov esp, ebp
pop ebp
ret