Function at 0x101ae2a0
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, 0xd8
mov eax, dword [0x106c15c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebx + 8]
push edi
mov edi, dword [0x106c40f4]
push 0x60
mov eax, dword [esi + 0x160]
mov dword [ebp - 0x70], eax
movzx eax, word [esi + 0x1c8]
mov ecx, eax
mov dword [ebp - 0xa0], eax
movzx eax, word [esi + 0x1cc]
mov dword [ebp - 0xcc], ecx
mov ecx, eax
mov dword [ebp - 0xc4], eax
xor eax, eax
push eax
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0xc8], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64]
mov ecx, 4
nop dword [eax]
lea eax, [eax + 0x18]
xorps xmm0, xmm0
movq qword [eax - 0xc], xmm0
mov dword [eax - 0x1c], 0
mov dword [eax - 0x18], 0
mov dword [eax - 0x14], 0
mov dword [eax - 0x10], 0
sub ecx, 1
jne 0x101ae330
mov eax, dword [esi + 0x40]
lea eax, [eax*2 + 0x23]
sar eax, 5
shl eax, 2
mov dword [ebp - 0x98], eax
movd xmm0, eax
lea esi, [eax + eax*4]
pshufd xmm0, xmm0, 0
movaps xmmword [ebp - 0xc0], xmm0
cmp esi, dword [edi + 0x5c30]
jle 0x101ae3d5
push esi
call fcn.1018b1c0
mov ecx, dword [ebp - 0x74]
mov edi, eax
add esp, 4
mov eax, dword [ecx + 0x5c34]
test eax, eax
je 0x101ae3c6
push dword [ecx + 0x5c2c]
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x74]
push dword [eax + 0x5c34]
call fcn.1018b1f0
mov ecx, dword [ebp - 0x74]
add esp, 0x10
mov dword [ecx + 0x5c34], edi
mov edi, dword [ebp - 0x74]
mov dword [edi + 0x5c30], esi
push esi
push 0
push dword [edi + 0x5c34]
call sub.VCRUNTIME140.dll_memset
mov edi, dword [edi + 0x5c34]
add esp, 0xc
cmp dword [0x106c5e68], 2
jl 0x101ae437
movaps xmm1, xmmword [0x1022fa00]
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 0x101ae453
xor ecx, ecx
lea edx, [ebp - 0x54]
lea esi, [ecx + 4]
nop
lea eax, [edi + ecx]
add ecx, dword [ebp - 0x98]
mov dword [edx], eax
lea edx, [edx + 0x18]
sub esi, 1
jne 0x101ae440
mov eax, dword [ebp - 0x74]
xor esi, esi
mov ecx, dword [ebp - 0x98]
mov edi, dword [ebp - 0x94]
mov dword [ebp - 0x6c], esi
mov eax, dword [eax + 0x5c34]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x8c], eax
cmp dword [edi + 0x40], esi
jle 0x101aec5f
movaps xmm5, xmmword [0x102ed390]
mov dword [ebp - 0xa8], esi
nop dword [eax]
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 0x101ae6b2
mov edi, dword [edi + 0x10]
xor eax, eax
add edi, dword [ebp - 0xa8]
cmp word [ebp - 0xa0], ax
mov dword [ebp - 0xa4], edi
setg al
inc eax
xor edx, edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x7c], edx
test edx, edx
jne 0x101ae4de
movzx eax, word [edi + 0x5e]
jmp 0x101ae4e2
movzx eax, word [edi + 0x60]
mov ecx, dword [ebp - 0x70]
movzx eax, ax
mov dword [ebp - 0x78], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [ebp - 0x88], eax
test eax, eax
jle 0x101ae55c
mov edi, dword [ebp - 0x84]
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0x80]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [ebp - 0xa4]
cmp dword [edx + esi*8 - 0xc], 0
mov edx, dword [ebp - 0x7c]
jne 0x101ae559
mov edi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x80]
mov edx, dword [eax + edi*8 + 8]
mov eax, ecx
mov edi, dword [ebp - 0xa4]
cmp dword [edx + esi*8 - 8], 0
mov edx, dword [ebp - 0x7c]
jne 0x101ae559
mov esi, dword [ebp - 0x80]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x84]
mov dword [esi + eax*8], ecx
mov esi, dword [ebp - 0x6c]
cmp ecx, 1
jne 0x101ae690
test dword [edi], 0x100
jne 0x101ae5a2
cmp word [ebp - 0xa0], 0
jg 0x101ae583
movss xmm0, dword [edi + 0x44]
maxss xmm0, dword [edi + 0x48]
jmp 0x101ae598
test edx, edx
jne 0x101ae593
movss xmm0, dword [edi + 0x40]
maxss xmm0, dword [edi + 0x48]
jmp 0x101ae598
movss xmm0, dword [edi + 0x44]
comiss xmm0, dword [edi + 0x28]
ja 0x101ae690
cmp word [ebp - 0xc4], 0
jle 0x101ae5c1
mov eax, dword [ebp - 0x94]
movsx eax, word [eax + 0x1cc]
cmp esi, eax
jge 0x101ae5c1
xor ecx, ecx
jmp 0x101ae5c6
mov ecx, 1
cmp word [ebp - 0xa0], 0
jle 0x101ae5d8
test edx, edx
jne 0x101ae5d8
xor eax, eax
jmp 0x101ae5dd
mov eax, 2
add eax, ecx
mov dword [ebp - 0x88], eax
lea esi, [eax + eax*2]
cmp dword [ebp + esi*8 - 0x58], 0
jne 0x101ae5f4
movups xmmword [ebp + esi*8 - 0x68], xmm5
mov eax, dword [ebp - 0x78]
mov ecx, eax
mov edx, dword [ebp + esi*8 - 0x54]
and eax, 0x1f
inc dword [ebp + esi*8 - 0x58]
movss xmm0, dword [ebp + esi*8 - 0x68]
shr ecx, 5
mov dword [ebp - 0x78], eax
mov edi, dword [ebp - 0x78]
mov eax, dword [edx + ecx*4]
bts eax, edi
mov edi, dword [ebp - 0xa4]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x80]
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 0x101ae64d
movss dword [ebp + esi*8 - 0x68], xmm4
movss xmm0, dword [ebp + esi*8 - 0x64]
comiss xmm0, xmm1
jbe 0x101ae65e
movss dword [ebp + esi*8 - 0x64], xmm1
comiss xmm2, dword [ebp + esi*8 - 0x60]
jbe 0x101ae66b
movss dword [ebp + esi*8 - 0x60], xmm2
comiss xmm3, dword [ebp + esi*8 - 0x5c]
jbe 0x101ae678
movss dword [ebp + esi*8 - 0x5c], xmm3
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x88]
bts ecx, eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x90], ecx
mov esi, dword [ebp - 0x6c]
inc edx
mov dword [ebp - 0x7c], edx
cmp edx, dword [ebp - 0x9c]
jl 0x101ae4d4
mov eax, 0xffff
mov word [edi + 0x5c], ax
mov edi, dword [ebp - 0x94]
add dword [ebp - 0xa8], 0x70
inc esi
mov dword [ebp - 0x6c], esi
cmp esi, dword [edi + 0x40]
jl 0x101ae490
cmp dword [ebp - 0x90], 0
je 0x101aec5f
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
mov edi, dword [eax + 4]
mov ecx, dword [edx + 0x4a4c]
sub edi, 2
cmp edi, ecx
jle 0x101ae767
test ecx, ecx
je 0x101ae6fb
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x74]
sar eax, 1
add eax, ecx
jmp 0x101ae700
mov eax, 8
cmp eax, edi
mov esi, edi
cmovg esi, eax
cmp esi, ecx
jle 0x101ae767
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.1018b1c0
mov ecx, dword [ebp - 0x74]
add esp, 4
mov dword [ebp - 0x9c], eax
mov edx, dword [ecx + 0x4a50]
test edx, edx
je 0x101ae758
mov ecx, dword [ecx + 0x4a48]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x74]
push dword [eax + 0x4a50]
call fcn.1018b1f0
mov eax, dword [ebp - 0x9c]
add esp, 0x10
mov edx, dword [ebp - 0x74]
mov dword [edx + 0x4a50], eax
mov dword [edx + 0x4a4c], esi
mov ecx, dword [ebp - 0x70]
mov dword [edx + 0x4a48], edi
mov esi, dword [edx + 0x4a50]
mov edx, 2
mov dword [ebp - 0x84], esi
mov esi, dword [ecx + 4]
dec esi
mov dword [ebp - 0x88], edx
mov dword [ebp - 0x9c], esi
cmp esi, edx
jl 0x101ae7fe
mov eax, edx
mov edi, edx
or eax, 0x1f
and edi, 0x1f
mov ecx, esi
and ecx, 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
mov edi, dword [ebp - 0x8c]
cmovae eax, ecx
xor ecx, eax
neg ecx
and edx, ecx
or dword [edi + esi*4], edx
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x9c]
add edx, 0x20
and edx, 0xffffffe0
mov dword [ebp - 0x88], edx
cmp edx, esi
jle 0x101ae795
jmp 0x101ae804
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x94]
movaps xmm2, xmmword [0x102f1a60]
movzx edx, word [eax + 0x1d4]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [edi + ecx*4]
btr eax, edx
mov dword [edi + ecx*4], eax
xor eax, eax
cmp word [ebp - 0xa0], ax
mov ecx, dword [ebp - 0x70]
setg al
add eax, 2
mov esi, dword [ecx + 4]
sub esi, eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x6c], esi
xor ecx, ecx
movups xmm0, xmmword [eax + 0x12c]
movups xmmword [ebp - 0xc0], xmm0
movss xmm3, dword [ebp - 0xb4]
movss xmm4, dword [ebp - 0xb8]
movss xmm6, dword [ebp - 0xbc]
movss xmm5, dword [ebp - 0xc0]
mov dword [ebp - 0x80], ecx
nop dword [eax]
lea edi, [ecx + ecx*2]
shl edi, 3
mov dword [ebp - 0x78], edi
mov eax, dword [ebp + edi - 0x58]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x101aeb66
movups xmm0, xmmword [ebp + edi - 0x68]
mov edx, ecx
movups xmmword [ebp - 0xc0], xmm0
and edx, 1
je 0x101ae8b5
cmp word [ebp - 0xc8], 0
jg 0x101ae8c9
movss xmm0, dword [ebp - 0xc0]
minss xmm0, xmm5
movss dword [ebp - 0xc0], xmm0
and ecx, 2
je 0x101ae8d8
cmp word [ebp - 0xa0], 0
jg 0x101ae8ec
movss xmm0, dword [ebp - 0xbc]
minss xmm0, xmm6
movss dword [ebp - 0xbc], xmm0
test edx, edx
je 0x101ae904
movss xmm0, dword [ebp - 0xb8]
maxss xmm0, xmm4
movss dword [ebp - 0xb8], xmm0
test ecx, ecx
je 0x101ae92b
mov ecx, dword [ebp - 0x94]
test dword [ecx + 4], 0x20000
jne 0x101ae92b
movss xmm0, dword [ebp - 0xb4]
maxss xmm0, xmm3
movss dword [ebp - 0xb4], xmm0
sub esi, eax
xor ecx, ecx
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0x98]
sar esi, 2
mov dword [ebp - 0x88], esi
test esi, esi
jle 0x101aeac5
cmp esi, 2
jb 0x101aeaa8
mov edx, dword [ebp - 0x8c]
mov edi, dword [ebp + edi - 0x54]
add edx, 0xfffffffc
mov dword [ebp - 0x9c], edi
lea edx, [edx + esi*4]
dec esi
lea eax, [edi + esi*4]
mov esi, dword [ebp - 0x88]
cmp dword [ebp - 0x8c], eax
ja 0x101ae982
cmp edx, edi
jae 0x101aeaa5
cmp esi, 0x10
jb 0x101aea61
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x101ae999
dec eax
or eax, 0xfffffff0
inc eax
mov edi, dword [ebp - 0x8c]
mov edx, esi
sub edx, eax
mov esi, 0x20
mov eax, 0xfffffff0
mov dword [ebp - 0xa8], edx
mov edx, dword [ebp - 0x8c]
sub eax, edi
mov dword [ebp - 0xc4], eax
add edx, esi
mov eax, 0x10
sub eax, edi
mov dword [ebp - 0x90], eax
mov eax, 0xffffffe0
sub eax, edi
mov edi, dword [ebp - 0x9c]
mov dword [ebp - 0xa4], 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 - 0xc4]
add eax, edx
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0x90]
movups xmm0, xmmword [edx - 0x10]
add eax, edx
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx - 0x10], xmm1
movups xmm1, xmmword [esi + edi - 0x40]
movups xmm0, xmmword [edx]
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0xa4]
movups xmm0, xmmword [edx + 0x10]
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
add edx, 0x40
cmp ecx, dword [ebp - 0xa8]
jl 0x101ae9e3
mov esi, dword [ebp - 0x88]
mov eax, esi
and al, 0xf
cmp al, 2
jb 0x101aea9c
mov eax, esi
and eax, reloc.WS2_32.dll_accept
jns 0x101aea6f
dec eax
or eax, 0xfffffffe
inc eax
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x8c]
nop dword [eax]
movq xmm1, qword [edi + ecx*4]
movq xmm0, qword [eax + ecx*4]
andnps xmm1, xmm2
andps xmm1, xmm0
movq qword [eax + ecx*4], xmm1
add ecx, 2
cmp ecx, edx
jl 0x101aea80
mov edi, dword [ebp - 0x78]
cmp ecx, esi
jge 0x101aeac2
jmp 0x101aeaa8
mov edi, dword [ebp - 0x78]
mov edx, dword [ebp + edi - 0x54]
mov edi, dword [ebp - 0x8c]
mov eax, dword [edx + ecx*4]
not eax
and dword [edi + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x101aeab2
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x70]
xor edx, edx
cmp dword [ecx + 4], edx
jle 0x101aeb60
mov dword [ebp - 0x90], edx
nop dword [eax]
test eax, eax
je 0x101aeb60
mov eax, dword [ebp + edi - 0x54]
mov esi, edx
sar esi, 5
mov ecx, edx
and ecx, 0x1f
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
test edi, eax
je 0x101aeb4a
movaps xmm0, xmmword [ebp - 0xc0]
btr edi, ecx
mov ecx, dword [ebp - 0x78]
dec dword [ebp - 0x7c]
mov eax, dword [ebp + ecx - 0x54]
mov dword [eax + esi*4], edi
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x84]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x90]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm0
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x84], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov eax, dword [ebp - 0x70]
inc edx
add dword [ebp - 0x90], 0x18
mov edi, dword [ebp - 0x78]
cmp edx, dword [eax + 4]
mov eax, dword [ebp - 0x7c]
jl 0x101aeae0
mov esi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x80]
cmp ecx, 1
jne 0x101aebba
cmp word [ebp - 0xcc], 0
jle 0x101aebba
mov eax, dword [ebp - 0x94]
mov esi, dword [ebp - 0x84]
mov edx, esi
add esi, 0x18
mov dword [ebp - 0x84], esi
movzx eax, word [eax + 0x1d4]
mov esi, dword [ebp - 0x6c]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x70]
mov eax, dword [eax + 0x10]
movups xmm0, xmmword [eax + ecx*8]
movups xmmword [edx], xmm0
movq xmm0, qword [eax + ecx*8 + 0x10]
mov ecx, dword [ebp - 0x80]
movq qword [edx + 0x10], xmm0
inc ecx
jmp 0x101ae879
inc ecx
mov dword [ebp - 0x80], ecx
cmp ecx, 4
jl 0x101ae880
mov ecx, dword [ebp - 0x70]
xor edi, edi
mov eax, dword [ecx + 4]
test eax, eax
jle 0x101aec3c
mov esi, dword [ebp - 0x84]
mov edx, dword [ebp - 0x6c]
mov dword [ebp - 0x98], edi
test edx, edx
je 0x101aec3c
mov ecx, edi
mov edx, 1
and ecx, 0x1f
mov eax, edi
shl edx, cl
mov ecx, dword [ebp - 0x8c]
sar eax, 5
test dword [ecx + eax*4], edx
mov edx, dword [ebp - 0x6c]
je 0x101aec2a
mov eax, dword [ebp - 0x70]
mov ecx, esi
add esi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x98]
dec edx
mov dword [ebp - 0x6c], edx
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [ebp - 0x70]
inc edi
add dword [ebp - 0x98], 0x18
mov eax, dword [ecx + 4]
cmp edi, eax
jl 0x101aebe2
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0x74]
push dword [eax + 0x4a50]
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.10229364
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret