Function at 0x1007ccf0
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 [0x10162378]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edx, ecx
mov dword [ebp - 0xa0], edx
mov eax, dword [0x10167324]
mov dword [ebp - 0xa4], eax
mov eax, dword [edx + 0x168]
xor edi, edi
mov dword [ebp - 0x7c], eax
movzx eax, word [edx + 0x1dc]
mov ecx, eax
mov dword [ebp - 0xa8], eax
movzx eax, word [edx + 0x1e0]
mov dword [ebp - 0xd0], ecx
mov ecx, eax
mov dword [ebp - 0xcc], ecx
lea ecx, [edi + 4]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x6c], edi
nop dword [eax]
mov dword [eax - 4], edi
lea eax, [eax + 0x18]
mov dword [eax - 0x18], edi
mov dword [eax - 0x14], edi
mov dword [eax - 0x10], edi
mov dword [eax - 0xc], edi
mov dword [eax - 8], edi
sub ecx, 1
jne 0x1007cd70
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 0xa4]
lea eax, [eax*2 + 0x23]
sar eax, 3
lea ecx, [ecx + 0x60e4]
and eax, 0xfffffffc
mov dword [ebp - 0xb0], eax
movd xmm0, eax
lea esi, [eax + eax*4]
pshufd xmm0, xmm0, 0
push esi
movaps xmmword [ebp - 0xc0], xmm0
call fcn.10035cd0
push esi
mov esi, dword [ebp - 0xa4]
push 0
push dword [esi + 0x60ec]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x60ec]
add esp, 0xc
cmp dword [0x10167298], 2
jl 0x1007ce31
movaps xmm1, xmmword [0x1015cd00]
pmulld xmm1, xmmword [ebp - 0xc0]
movd xmm0, dword [esi + 0x60ec]
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 0x1007ce5b
xor ecx, ecx
lea edx, [ebp - 0x54]
mov edi, eax
lea esi, [ecx + 4]
nop dword [eax + eax]
lea eax, [edi + ecx]
add ecx, dword [ebp - 0xb0]
mov dword [edx], eax
lea edx, [edx + 0x18]
sub esi, 1
jne 0x1007ce40
mov esi, dword [ebp - 0xa4]
xor edi, edi
mov eax, dword [esi + 0x60ec]
mov ecx, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xa0]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x84], eax
xor eax, eax
mov dword [ebp - 0x98], eax
cmp dword [esi + 0x40], eax
jle 0x1007d66d
mov dword [ebp - 0x80], eax
nop word [eax + eax]
mov ecx, eax
mov edx, 1
and ecx, 0x1f
shl edx, cl
mov ecx, eax
mov eax, dword [esi + 0x30]
sar ecx, 5
test dword [eax + ecx*4], edx
je 0x1007d0fd
mov esi, dword [esi + 0x10]
xor eax, eax
add esi, dword [ebp - 0x80]
cmp word [ebp - 0xa8], ax
mov dword [ebp - 0x94], esi
setg al
inc eax
xor edx, edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x8c], edx
test edx, edx
jne 0x1007cede
movzx eax, word [esi + 0x5e]
jmp 0x1007cee2
movzx eax, word [esi + 0x60]
mov ecx, dword [ebp - 0x7c]
movzx eax, ax
mov dword [ebp - 0x90], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x88], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [ebp - 0x70], eax
test eax, eax
jle 0x1007cf62
mov esi, dword [ebp - 0x88]
lea edi, [eax + eax*4]
mov eax, dword [ebp - 0x78]
mov edx, dword [eax + esi*8 + 8]
mov eax, ecx
mov esi, dword [ebp - 0x94]
cmp dword [edx + edi*8 - 0xc], 0
mov edx, dword [ebp - 0x8c]
jne 0x1007cf5f
mov esi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x78]
mov edx, dword [eax + esi*8 + 8]
mov eax, ecx
mov esi, dword [ebp - 0x94]
cmp dword [edx + edi*8 - 8], 0
mov edx, dword [ebp - 0x8c]
jne 0x1007cf5f
mov edi, dword [ebp - 0x78]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x88]
mov dword [edi + eax*8], ecx
mov edi, dword [ebp - 0x6c]
cmp ecx, 1
jne 0x1007d0db
test dword [esi], 0x100
jne 0x1007cfa8
cmp word [ebp - 0xa8], 0
jg 0x1007cf89
movss xmm0, dword [esi + 0x44]
maxss xmm0, dword [esi + 0x48]
jmp 0x1007cf9e
test edx, edx
jne 0x1007cf99
movss xmm0, dword [esi + 0x40]
maxss xmm0, dword [esi + 0x48]
jmp 0x1007cf9e
movss xmm0, dword [esi + 0x44]
comiss xmm0, dword [esi + 0x28]
ja 0x1007d0db
cmp word [ebp - 0xc8], 0
jle 0x1007cfcb
mov eax, dword [ebp - 0xa0]
movsx eax, word [eax + 0x1e0]
cmp dword [ebp - 0x98], eax
jge 0x1007cfcb
xor ecx, ecx
jmp 0x1007cfd0
mov ecx, 1
cmp word [ebp - 0xa8], 0
jle 0x1007cfe2
test edx, edx
jne 0x1007cfe2
xor eax, eax
jmp 0x1007cfe7
mov eax, 2
add eax, ecx
mov dword [ebp - 0xac], eax
lea edi, [eax + eax*2]
cmp dword [ebp + edi*8 - 0x58], 0
lea eax, [ebp + edi*8 - 0x64]
lea ecx, [ebp + edi*8 - 0x60]
mov dword [ebp - 0x70], eax
lea edx, [ebp + edi*8 - 0x5c]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x74], edx
jne 0x1007d02d
mov dword [ebp + edi*8 - 0x68], 0x7f7fffff
mov dword [eax], 0x7f7fffff
mov dword [ecx], 0xff7fffff
mov dword [edx], 0xff7fffff
jmp 0x1007d039
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x90]
mov ecx, eax
mov edx, dword [ebp + edi*8 - 0x54]
and eax, 0x1f
shr ecx, 5
mov dword [ebp - 0x90], eax
mov esi, dword [ebp - 0x90]
mov eax, dword [edx + ecx*4]
bts eax, esi
mov esi, dword [ebp - 0x94]
mov dword [edx + ecx*4], eax
inc dword [ebp + edi*8 - 0x58]
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x78]
movss xmm0, dword [ebp + edi*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 0x1007d09b
movss dword [ebp + edi*8 - 0x68], xmm4
mov eax, dword [ebp - 0x70]
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x1007d0ab
movss dword [eax], xmm1
mov eax, dword [ebp - 0xc4]
comiss xmm2, dword [eax]
jbe 0x1007d0ba
movss dword [eax], xmm2
mov eax, dword [ebp - 0x74]
comiss xmm3, dword [eax]
jbe 0x1007d0c6
movss dword [eax], xmm3
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0xac]
bts edi, eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x6c], edi
inc edx
mov dword [ebp - 0x8c], edx
cmp edx, dword [ebp - 0x9c]
jl 0x1007ced4
mov eax, 0xffff
mov word [esi + 0x5c], ax
mov esi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x98]
add dword [ebp - 0x80], 0x70
inc eax
mov dword [ebp - 0x98], eax
cmp eax, dword [esi + 0x40]
jl 0x1007ce90
test edi, edi
je 0x1007d66d
mov ecx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0xa4]
add eax, 0x4df4
mov dword [ebp - 0x74], eax
mov esi, dword [ecx + 4]
sub esi, 2
mov edi, dword [eax + 4]
cmp esi, edi
jle 0x1007d169
test edi, edi
je 0x1007d14e
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
add ecx, edi
jmp 0x1007d153
mov ecx, 8
cmp ecx, esi
mov eax, esi
cmovg eax, ecx
mov ecx, dword [ebp - 0x74]
push eax
call fcn.100741b0
mov eax, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], esi
mov eax, dword [ebp - 0xa4]
mov edx, dword [ecx + 4]
dec edx
mov dword [ebp - 0xac], edx
mov esi, dword [eax + 0x4dfc]
mov eax, 2
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x74], eax
cmp edx, eax
jl 0x1007d1fe
mov ecx, edx
and ecx, 0x1f
mov dword [ebp - 0x9c], ecx
nop
mov esi, eax
mov edi, eax
or eax, 0x1f
sar edi, 5
and esi, 0x1f
mov ecx, 0x1f
cmp edx, eax
cmovle ecx, dword [ebp - 0x9c]
xor edx, edx
inc ecx
xor eax, eax
bts edx, ecx
cmp ecx, 0x20
cmovae eax, edx
xor ecx, ecx
xor edx, eax
bts ecx, esi
xor eax, eax
dec edx
cmp esi, 0x20
cmovae eax, ecx
xor ecx, eax
mov eax, dword [ebp - 0x84]
neg ecx
and edx, ecx
or dword [eax + edi*4], edx
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0xac]
add eax, 0x20
and eax, 0xffffffe0
mov dword [ebp - 0x74], eax
cmp eax, edx
jle 0x1007d1a0
mov edi, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x84]
movaps xmm3, xmmword [0x1015cf50]
movzx edx, word [edi + 0x1e8]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [eax + ecx*4]
btr eax, edx
mov edx, dword [ebp - 0x84]
mov dword [edx + ecx*4], eax
xor eax, eax
cmp word [ebp - 0xa8], ax
mov ecx, dword [ebp - 0x7c]
movups xmm0, xmmword [edi + 0x134]
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 - 0x6c], esi
mov dword [ebp - 0x8c], edi
nop
lea eax, [edi + edi*2]
shl eax, 3
mov dword [ebp - 0x78], eax
mov ecx, dword [ebp + eax - 0x58]
mov dword [ebp - 0x70], ecx
test ecx, ecx
je 0x1007d579
movups xmm2, xmmword [ebp + eax - 0x68]
mov ecx, edi
movaps xmmword [ebp - 0xc0], xmm2
and ecx, 1
je 0x1007d2b5
cmp word [ebp - 0xcc], 0
jg 0x1007d2c9
comiss xmm6, xmm2
ja 0x1007d2c9
movss dword [ebp - 0xc0], xmm6
movaps xmm2, xmmword [ebp - 0xc0]
and edi, 2
je 0x1007d2d8
cmp word [ebp - 0xa8], 0
jg 0x1007d2f3
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
comiss xmm7, xmm0
ja 0x1007d2f3
movss dword [ebp - 0xbc], xmm7
movaps xmm2, xmmword [ebp - 0xc0]
test ecx, ecx
je 0x1007d312
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
comiss xmm0, xmm5
jae 0x1007d312
movss dword [ebp - 0xb8], xmm5
movaps xmm2, xmmword [ebp - 0xc0]
test edi, edi
je 0x1007d340
mov ecx, dword [ebp - 0xa0]
test dword [ecx + 4], 0x20000
jne 0x1007d340
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
comiss xmm0, xmm4
jae 0x1007d340
movss dword [ebp - 0xb4], xmm4
movaps xmm2, xmmword [ebp - 0xc0]
sub esi, dword [ebp + eax - 0x58]
xor ecx, ecx
mov dword [ebp - 0x6c], esi
mov esi, dword [ebp - 0xb0]
sar esi, 2
mov dword [ebp - 0xac], esi
test esi, esi
jle 0x1007d4e4
cmp esi, 2
jb 0x1007d4d0
mov edi, dword [ebp + eax - 0x54]
lea eax, [ebp + eax - 0x54]
mov dword [ebp - 0x74], eax
lea eax, [esi - 1]
lea eax, [edx + eax*4]
mov dword [ebp - 0x9c], eax
lea eax, [esi - 1]
lea eax, [edi + eax*4]
cmp edx, eax
ja 0x1007d398
lea eax, [esi - 1]
lea eax, [edx + eax*4]
cmp eax, edi
jae 0x1007d4cb
mov eax, dword [ebp - 0x74]
cmp edx, eax
ja 0x1007d3ab
cmp dword [ebp - 0x9c], eax
jae 0x1007d4cb
cmp esi, 0x10
jb 0x1007d483
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x1007d3c2
dec eax
or eax, 0xfffffff0
inc eax
mov dword [ebp - 0x90], esi
mov esi, 0x20
sub dword [ebp - 0x90], eax
add edx, esi
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x98], 0xfffffff0
sub dword [ebp - 0x98], eax
mov dword [ebp - 0x94], 0x10
sub dword [ebp - 0x94], eax
mov dword [ebp - 0x80], 0xffffffe0
sub dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
lea esi, [esi + 0x40]
movups xmm0, xmmword [edx - 0x20]
add eax, edx
add ecx, 0x10
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0x98]
add eax, edx
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0x94]
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]
movups xmm0, xmmword [edx + 0x10]
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
add edx, 0x40
cmp ecx, dword [ebp - 0x90]
jl 0x1007d405
mov esi, dword [ebp - 0xac]
mov eax, esi
and al, 0xf
cmp al, 2
jb 0x1007d4bc
mov eax, dword [ebp - 0x74]
mov edi, dword [eax]
mov eax, esi
and eax, reloc.WS2_32.dll_accept
jns 0x1007d493
dec eax
or eax, 0xfffffffe
inc eax
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x84]
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 0x1007d4a0
mov eax, dword [ebp - 0x78]
cmp ecx, esi
jge 0x1007d4e4
mov edx, dword [ebp - 0x84]
jmp 0x1007d4d0
mov eax, dword [ebp - 0x78]
nop
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 0x1007d4d0
mov ecx, dword [ebp - 0x7c]
xor edx, edx
cmp dword [ecx + 4], edx
jle 0x1007d568
mov dword [ebp - 0x80], edx
cmp dword [ebp - 0x70], 0
je 0x1007d568
mov eax, dword [ebp + eax - 0x54]
mov esi, edx
sar esi, 5
mov ecx, edx
mov dword [ebp - 0x9c], eax
and ecx, 0x1f
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
test edi, eax
je 0x1007d558
mov eax, dword [ebp - 0x9c]
btr edi, ecx
dec dword [ebp - 0x70]
mov dword [eax + esi*4], edi
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x88]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x80]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm2
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x88], 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 - 0x80], 0x18
mov eax, dword [ebp - 0x78]
cmp edx, dword [ecx + 4]
jl 0x1007d4f1
mov edi, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x6c]
jmp 0x1007d57c
mov ecx, dword [ebp - 0x7c]
cmp edi, 1
jne 0x1007d5d3
cmp word [ebp - 0xd0], 0
jle 0x1007d5d3
mov eax, dword [ebp - 0xa0]
mov esi, dword [ebp - 0x88]
mov edx, esi
add esi, 0x18
inc edi
mov dword [ebp - 0x88], esi
movzx eax, word [eax + 0x1e8]
mov esi, dword [ebp - 0x6c]
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 - 0x84]
jmp 0x1007d279
inc edi
mov dword [ebp - 0x8c], edi
cmp edi, 4
jl 0x1007d280
mov eax, dword [ecx + 4]
xor edi, edi
test eax, eax
jle 0x1007d647
mov esi, dword [ebp - 0x88]
mov dword [ebp - 0x70], edi
cmp dword [ebp - 0x6c], 0
je 0x1007d647
mov ecx, edi
mov edx, 1
and ecx, 0x1f
mov eax, edi
shl edx, cl
mov ecx, dword [ebp - 0x84]
sar eax, 5
test dword [ecx + eax*4], edx
je 0x1007d638
mov eax, dword [ebp - 0x7c]
mov ecx, esi
add esi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x70]
dec dword [ebp - 0x6c]
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 - 0x70], 0x18
mov eax, dword [ecx + 4]
cmp edi, eax
jl 0x1007d5f5
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0xa4]
push dword [eax + 0x4dfc]
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.10110a52
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret