Function at 0x100b81f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x1030e040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edx, ecx
mov dword [ebp - 0x98], edx
mov edi, dword [0x10317358]
mov eax, dword [edx + 0x160]
mov dword [ebp - 0x7c], eax
movzx eax, word [edx + 0x1d0]
mov ecx, eax
mov dword [ebp - 0x9c], eax
movzx eax, word [edx + 0x1d4]
mov dword [ebp - 0xc8], ecx
mov ecx, eax
mov dword [ebp - 0xac], eax
xor eax, eax
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x8c], eax
lea ecx, [eax + 4]
mov dword [ebp - 0xa0], edi
lea eax, [ebp - 0x64]
nop dword [eax]
mov dword [eax - 4], 0
lea eax, [eax + 0x18]
mov dword [eax - 0x18], 0
mov dword [eax - 0x14], 0
mov dword [eax - 0x10], 0
mov dword [eax - 0xc], 0
mov dword [eax - 8], 0
sub ecx, 1
jne 0x100b8270
mov eax, dword [edx + 0x40]
lea ecx, [edi + 0x5dec]
lea eax, [eax*2 + 0x23]
sar eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x90], eax
movd xmm0, eax
lea esi, [eax + eax*4]
pshufd xmm0, xmm0, 0
push esi
movaps xmmword [ebp - 0xc0], xmm0
call fcn.100487e0
push esi
push 0
push dword [edi + 0x5df4]
call sub.VCRUNTIME140.dll_memset
mov edi, dword [edi + 0x5df4]
add esp, 0xc
cmp dword [0x10316f5c], 2
jl 0x100b8339
movaps xmm1, xmmword [0x102f3cc0]
pmulld xmm1, xmmword [ebp - 0xc0]
movd xmm0, edi
pshufd xmm0, xmm0, 0
paddd xmm1, xmm0
movd dword [ebp - 0x54], xmm1
psrldq xmm1, 4
movd dword [ebp - 0x3c], xmm1
psrldq xmm1, 4
movd dword [ebp - 0x24], xmm1
psrldq xmm1, 4
movd dword [ebp - 0xc], xmm1
jmp 0x100b8354
xor ecx, ecx
lea edx, [ebp - 0x54]
lea esi, [ecx + 4]
lea eax, [edi + ecx]
add ecx, dword [ebp - 0x90]
mov dword [edx], eax
lea edx, [edx + 0x18]
sub esi, 1
jne 0x100b8341
mov eax, dword [ebp - 0xa0]
xor esi, esi
mov ecx, dword [ebp - 0x90]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0x74], esi
mov eax, dword [eax + 0x5df4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x6c], eax
cmp dword [edi + 0x40], esi
jle 0x100b8b2b
mov dword [ebp - 0x88], esi
mov eax, dword [edi + 0x30]
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov ecx, esi
sar ecx, 5
test dword [eax + ecx*4], edx
je 0x100b85d8
mov edi, dword [edi + 0x10]
xor eax, eax
add edi, dword [ebp - 0x88]
cmp word [ebp - 0x9c], ax
mov dword [ebp - 0xa8], edi
setg al
inc eax
xor edx, edx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x84], edx
nop dword [eax]
test edx, edx
jne 0x100b83da
movzx eax, word [edi + 0x5e]
jmp 0x100b83de
movzx eax, word [edi + 0x60]
mov ecx, dword [ebp - 0x7c]
movzx eax, ax
mov dword [ebp - 0xa4], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x80], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [ebp - 0x70], eax
test eax, eax
jle 0x100b8452
mov edi, dword [ebp - 0x80]
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0x78]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [ebp - 0xa8]
cmp dword [edx + esi*8 - 0xc], 0
mov edx, dword [ebp - 0x84]
jne 0x100b844f
mov edi, dword [ebp - 0x80]
mov eax, dword [ebp - 0x78]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [ebp - 0xa8]
cmp dword [edx + esi*8 - 8], 0
mov edx, dword [ebp - 0x84]
jne 0x100b844f
mov esi, dword [ebp - 0x78]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x80]
mov dword [esi + eax*8], ecx
mov esi, dword [ebp - 0x74]
cmp ecx, 1
jne 0x100b85b3
test dword [edi], 0x100
jne 0x100b8498
cmp word [ebp - 0x9c], 0
jg 0x100b8479
movss xmm0, dword [edi + 0x44]
maxss xmm0, dword [edi + 0x48]
jmp 0x100b848e
test edx, edx
jne 0x100b8489
movss xmm0, dword [edi + 0x40]
maxss xmm0, dword [edi + 0x48]
jmp 0x100b848e
movss xmm0, dword [edi + 0x44]
comiss xmm0, dword [edi + 0x28]
ja 0x100b85b3
cmp word [ebp - 0xac], 0
jle 0x100b84b7
mov eax, dword [ebp - 0x98]
movsx eax, word [eax + 0x1d4]
cmp esi, eax
jge 0x100b84b7
xor ecx, ecx
jmp 0x100b84bc
mov ecx, 1
cmp word [ebp - 0x9c], 0
jle 0x100b84ce
test edx, edx
jne 0x100b84ce
xor eax, eax
jmp 0x100b84d3
mov eax, 2
add eax, ecx
mov dword [ebp - 0xb0], eax
lea esi, [eax + eax*2]
cmp dword [ebp + esi*8 - 0x58], 0
lea eax, [ebp + esi*8 - 0x64]
mov dword [ebp - 0x70], eax
jne 0x100b850c
mov dword [ebp + esi*8 - 0x68], 0x7f7fffff
mov dword [eax], 0x7f7fffff
mov dword [ebp + esi*8 - 0x60], 0xff7fffff
mov dword [ebp + esi*8 - 0x5c], 0xff7fffff
jmp 0x100b850f
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0xa4]
mov ecx, eax
mov edx, dword [ebp + esi*8 - 0x54]
and eax, 0x1f
shr ecx, 5
mov dword [ebp - 0xa4], eax
mov edi, dword [ebp - 0xa4]
mov eax, dword [edx + ecx*4]
bts eax, edi
mov edi, dword [ebp - 0xa8]
mov dword [edx + ecx*4], eax
inc dword [ebp + esi*8 - 0x58]
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
movss xmm0, dword [ebp + esi*8 - 0x68]
mov eax, dword [ecx + eax*8 + 8]
movss xmm4, dword [eax]
comiss xmm0, xmm4
movss xmm1, dword [eax + 4]
movss xmm2, dword [eax + 8]
movss xmm3, dword [eax + 0xc]
jbe 0x100b856e
movss dword [ebp + esi*8 - 0x68], xmm4
mov eax, dword [ebp - 0x70]
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x100b857e
movss dword [eax], xmm1
comiss xmm2, dword [ebp + esi*8 - 0x60]
jbe 0x100b858b
movss dword [ebp + esi*8 - 0x60], xmm2
comiss xmm3, dword [ebp + esi*8 - 0x5c]
jbe 0x100b8598
movss dword [ebp + esi*8 - 0x5c], xmm3
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xb0]
bts ecx, eax
mov edx, dword [ebp - 0x84]
mov dword [ebp - 0x8c], ecx
mov esi, dword [ebp - 0x74]
inc edx
mov dword [ebp - 0x84], edx
cmp edx, dword [ebp - 0x94]
jl 0x100b83d0
mov eax, 0xffff
mov word [edi + 0x5c], ax
mov edi, dword [ebp - 0x98]
add dword [ebp - 0x88], 0x70
inc esi
mov dword [ebp - 0x74], esi
cmp esi, dword [edi + 0x40]
jl 0x100b8386
cmp dword [ebp - 0x8c], 0
je 0x100b8b2b
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xa0]
add eax, 0x4ba0
mov dword [ebp - 0x70], eax
mov esi, dword [ecx + 4]
sub esi, 2
mov edi, dword [eax + 4]
cmp esi, edi
jle 0x100b8640
test edi, edi
je 0x100b8628
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x100b862d
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x70]
push eax
call fcn.100e0d80
mov eax, dword [ebp - 0x70]
mov dword [eax], esi
mov edx, 2
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x70], edx
mov esi, dword [eax + 0x4ba8]
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x80], esi
mov esi, dword [eax + 4]
dec esi
mov dword [ebp - 0x94], esi
cmp esi, edx
jl 0x100b86d0
nop word [eax + eax]
mov eax, edx
mov edi, edx
or eax, 0x1f
mov ecx, esi
and ecx, 0x1f
and edi, 0x1f
cmp esi, eax
mov esi, edx
mov eax, 0x1f
cmovg ecx, eax
xor edx, edx
inc ecx
sar esi, 5
bts edx, ecx
xor eax, eax
cmp ecx, 0x20
cmovae eax, edx
xor ecx, ecx
xor edx, eax
bts ecx, edi
dec edx
xor eax, eax
cmp edi, 0x20
cmovae eax, ecx
xor ecx, eax
mov eax, dword [ebp - 0x6c]
neg ecx
and edx, ecx
or dword [eax + esi*4], edx
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x94]
add edx, 0x20
and edx, 0xffffffe0
mov dword [ebp - 0x70], edx
cmp edx, esi
jle 0x100b8670
jmp 0x100b86d3
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x98]
movaps xmm3, xmmword [0x102f3f90]
movzx edx, word [edi + 0x1dc]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [eax + ecx*4]
btr eax, edx
mov edx, dword [ebp - 0x6c]
mov dword [edx + ecx*4], eax
xor eax, eax
cmp word [ebp - 0x9c], ax
mov ecx, dword [ebp - 0x7c]
movups xmm0, xmmword [edi + 0x12c]
setg al
add eax, 2
mov esi, dword [ecx + 4]
movups xmmword [ebp - 0xc0], xmm0
sub esi, eax
xor edi, edi
movss xmm4, dword [ebp - 0xb4]
movss xmm5, dword [ebp - 0xb8]
movss xmm7, dword [ebp - 0xbc]
movss xmm6, dword [ebp - 0xc0]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x84], edi
nop dword [eax + eax]
lea eax, [edi + edi*2]
shl eax, 3
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + eax - 0x58]
mov dword [ebp - 0x8c], ecx
test ecx, ecx
je 0x100b8a3c
movups xmm2, xmmword [ebp + eax - 0x68]
mov ecx, edi
movaps xmmword [ebp - 0xc0], xmm2
and ecx, 1
je 0x100b8788
cmp word [ebp - 0xc4], 0
jg 0x100b879c
comiss xmm6, xmm2
ja 0x100b879c
movss dword [ebp - 0xc0], xmm6
movaps xmm2, xmmword [ebp - 0xc0]
and edi, 2
je 0x100b87ab
cmp word [ebp - 0x9c], 0
jg 0x100b87c6
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
comiss xmm7, xmm0
ja 0x100b87c6
movss dword [ebp - 0xbc], xmm7
movaps xmm2, xmmword [ebp - 0xc0]
test ecx, ecx
je 0x100b87e5
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
comiss xmm0, xmm5
jae 0x100b87e5
movss dword [ebp - 0xb8], xmm5
movaps xmm2, xmmword [ebp - 0xc0]
test edi, edi
je 0x100b8813
mov ecx, dword [ebp - 0x98]
test dword [ecx + 4], 0x20000
jne 0x100b8813
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
comiss xmm0, xmm4
jae 0x100b8813
movss dword [ebp - 0xb4], xmm4
movaps xmm2, xmmword [ebp - 0xc0]
sub esi, dword [ebp + eax - 0x58]
xor ecx, ecx
mov dword [ebp - 0x74], esi
mov esi, dword [ebp - 0x90]
sar esi, 2
mov dword [ebp - 0x88], esi
test esi, esi
jle 0x100b899d
cmp esi, 2
jb 0x100b8986
mov edi, dword [ebp + eax - 0x54]
lea edx, [ebp + eax - 0x54]
mov eax, dword [ebp - 0x6c]
lea eax, [eax + esi*4]
add eax, 0xfffffffc
mov dword [ebp - 0x70], eax
lea eax, [esi - 1]
lea eax, [edi + eax*4]
cmp dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x70]
ja 0x100b8866
cmp eax, edi
jae 0x100b8980
cmp dword [ebp - 0x6c], edx
ja 0x100b8873
cmp eax, edx
jae 0x100b8980
cmp esi, 0x10
jb 0x100b8940
mov eax, esi
and eax, 0x8000000f
jns 0x100b888a
dec eax
or eax, 0xfffffff0
inc eax
mov edx, esi
mov esi, 0x20
sub edx, eax
mov eax, 0xfffffff0
sub eax, dword [ebp - 0x6c]
mov dword [ebp - 0x94], eax
mov eax, 0x10
sub eax, dword [ebp - 0x6c]
mov dword [ebp - 0xac], edx
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0xb0], eax
add edx, esi
mov eax, 0xffffffe0
sub eax, dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
movups xmm0, xmmword [edx - 0x20]
add eax, edx
lea esi, [esi + 0x40]
add ecx, 0x10
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0x94]
add eax, edx
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0xb0]
movups xmm0, xmmword [edx - 0x10]
add eax, edx
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx - 0x10], xmm1
movups xmm1, xmmword [esi + edi - 0x40]
movups xmm0, xmmword [edx]
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0x70]
movups xmm0, xmmword [edx + 0x10]
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
add edx, 0x40
cmp ecx, dword [ebp - 0xac]
jl 0x100b88c5
mov esi, dword [ebp - 0x88]
mov eax, esi
and al, 0xf
cmp al, 2
jb 0x100b897c
mov eax, dword [ebp - 0x78]
mov edi, dword [ebp + eax - 0x54]
mov eax, esi
and eax, 0x80000001
jns 0x100b8955
dec eax
or eax, 0xfffffffe
inc eax
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x6c]
nop dword [eax]
movq xmm1, qword [edi + ecx*4]
movq xmm0, qword [eax + ecx*4]
andnps xmm1, xmm3
andps xmm1, xmm0
movq qword [eax + ecx*4], xmm1
add ecx, 2
cmp ecx, edx
jl 0x100b8960
cmp ecx, esi
jge 0x100b899a
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp + eax - 0x54]
mov eax, dword [eax + ecx*4]
not eax
and dword [edx + ecx*4], eax
inc ecx
mov eax, dword [ebp - 0x78]
cmp ecx, esi
jl 0x100b8986
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x7c]
xor edx, edx
cmp dword [ecx + 4], edx
jle 0x100b8a2e
mov dword [ebp - 0x88], edx
cmp dword [ebp - 0x8c], 0
je 0x100b8a2e
mov eax, dword [ebp + eax - 0x54]
mov esi, edx
sar esi, 5
mov ecx, edx
mov dword [ebp - 0x94], eax
and ecx, 0x1f
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
test edi, eax
je 0x100b8a1b
mov eax, dword [ebp - 0x94]
btr edi, ecx
dec dword [ebp - 0x8c]
mov dword [eax + esi*4], edi
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x80]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x88]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm2
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x80], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0x7c]
inc edx
add dword [ebp - 0x88], 0x18
mov eax, dword [ebp - 0x78]
cmp edx, dword [ecx + 4]
jl 0x100b89b1
mov edi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x74]
jmp 0x100b8a3f
mov ecx, dword [ebp - 0x7c]
cmp edi, 1
jne 0x100b8a8d
cmp word [ebp - 0xc8], 0
jle 0x100b8a8d
mov eax, dword [ebp - 0x98]
mov esi, dword [ebp - 0x80]
mov edx, esi
add esi, 0x18
inc edi
mov dword [ebp - 0x80], esi
movzx eax, word [eax + 0x1dc]
mov esi, dword [ebp - 0x74]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x7c]
mov eax, dword [eax + 0x10]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
movq qword [edx + 0x10], xmm0
mov edx, dword [ebp - 0x6c]
jmp 0x100b8745
inc edi
mov dword [ebp - 0x84], edi
cmp edi, 4
jl 0x100b8750
mov eax, dword [ecx + 4]
xor edi, edi
test eax, eax
jle 0x100b8b05
mov esi, dword [ebp - 0x80]
mov dword [ebp - 0x90], edi
nop
cmp dword [ebp - 0x74], 0
je 0x100b8b05
mov ecx, edi
mov edx, 1
and ecx, 0x1f
mov eax, edi
shl edx, cl
mov ecx, dword [ebp - 0x6c]
sar eax, 5
test dword [ecx + eax*4], edx
je 0x100b8af3
mov eax, dword [ebp - 0x7c]
mov ecx, esi
add esi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x90]
dec dword [ebp - 0x74]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [ebp - 0x7c]
inc edi
add dword [ebp - 0x90], 0x18
mov eax, dword [ecx + 4]
cmp edi, eax
jl 0x100b8ab0
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0xa0]
push dword [eax + 0x4ba8]
mov eax, dword [ecx + 0x10]
add eax, 0x30
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1013cfec
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret