Function at 0x100574c0
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 [0x10209f80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edx, dword [ebx + 8]
mov eax, dword [0x1020b1f4]
mov dword [ebp - 0x7c], eax
mov eax, dword [edx + 0x168]
xor esi, esi
mov dword [ebp - 0x78], eax
movzx eax, word [edx + 0x1dc]
mov ecx, eax
mov dword [ebp - 0x9c], eax
movzx eax, word [edx + 0x1e0]
mov dword [ebp - 0xcc], ecx
mov ecx, eax
mov dword [ebp - 0xc8], ecx
lea ecx, [esi + 4]
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x6c], esi
mov dword [eax - 4], esi
lea eax, [eax + 0x18]
mov dword [eax - 0x18], esi
mov dword [eax - 0x14], esi
mov dword [eax - 0x10], esi
mov dword [eax - 0xc], esi
mov dword [eax - 8], esi
sub ecx, 1
jne 0x10057537
mov eax, dword [edx + 0x40]
lea eax, [eax*2 + 0x23]
sar eax, 5
shl eax, 2
mov dword [ebp - 0xc4], eax
lea edi, [eax + eax*4]
mov eax, dword [ebp - 0x7c]
cmp edi, dword [eax + 0x5f90]
jle 0x100575be
push edi
call fcn.1003a400
mov edx, dword [ebp - 0x7c]
add esp, 4
mov dword [ebp - 0x74], eax
mov ecx, dword [edx + 0x5f94]
test ecx, ecx
je 0x100575b2
push dword [edx + 0x5f8c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x5f94]
call fcn.1003a490
mov eax, dword [ebp - 0x74]
add esp, 0x10
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x5f94], eax
mov dword [edx + 0x5f90], edi
push edi
mov edi, dword [ebp - 0x7c]
push 0
push dword [edi + 0x5f94]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x5f94]
add esp, 0xc
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0x5f94]
add eax, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x5f94]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x24], eax
lea eax, [ecx + ecx*2]
add eax, dword [edi + 0x5f94]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x5f94]
mov edi, dword [ebp - 0x98]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x70], eax
xor eax, eax
mov dword [ebp - 0x88], eax
cmp dword [edi + 0x40], eax
jle 0x10057e38
movaps xmm5, xmmword [0x101cebe0]
mov dword [ebp - 0x80], eax
mov ecx, eax
mov edx, 1
and ecx, 0x1f
shl edx, cl
mov ecx, eax
mov eax, dword [edi + 0x30]
sar ecx, 5
test dword [eax + ecx*4], edx
je 0x1005786c
mov edi, dword [edi + 0x10]
xor eax, eax
add edi, dword [ebp - 0x80]
cmp word [ebp - 0x9c], ax
mov dword [ebp - 0xa4], edi
setg al
inc eax
xor edx, edx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
test edx, edx
jne 0x1005767f
movzx eax, word [edi + 0x5e]
jmp 0x10057683
movzx eax, word [edi + 0x60]
mov ecx, dword [ebp - 0x78]
movzx eax, ax
mov dword [ebp - 0xa0], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x84], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [ebp - 0x74], eax
test eax, eax
jle 0x1005770f
mov edi, dword [ebp - 0x84]
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0x8c]
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 - 0x90]
jne 0x1005770c
mov edi, dword [ebp - 0x84]
mov eax, dword [ebp - 0x8c]
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 - 0x90]
jne 0x1005770c
mov esi, dword [ebp - 0x8c]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x84]
mov dword [esi + eax*8], ecx
mov esi, dword [ebp - 0x6c]
cmp ecx, 1
jne 0x1005784a
test dword [edi], 0x100
jne 0x10057755
cmp word [ebp - 0x9c], 0
jg 0x10057736
movss xmm0, dword [edi + 0x44]
maxss xmm0, dword [edi + 0x48]
jmp 0x1005774b
test edx, edx
jne 0x10057746
movss xmm0, dword [edi + 0x40]
maxss xmm0, dword [edi + 0x48]
jmp 0x1005774b
movss xmm0, dword [edi + 0x44]
comiss xmm0, dword [edi + 0x28]
ja 0x1005784a
cmp word [ebp - 0xac], 0
jle 0x10057778
mov eax, dword [ebp - 0x98]
movsx eax, word [eax + 0x1e0]
cmp dword [ebp - 0x88], eax
jge 0x10057778
xor ecx, ecx
jmp 0x1005777d
mov ecx, 1
cmp word [ebp - 0x9c], 0
jle 0x1005778f
test edx, edx
jne 0x1005778f
xor eax, eax
jmp 0x10057794
mov eax, 2
add eax, ecx
mov dword [ebp - 0x74], eax
lea esi, [eax + eax*2]
cmp dword [ebp + esi*8 - 0x58], 0
jne 0x100577a8
movups xmmword [ebp + esi*8 - 0x68], xmm5
mov eax, dword [ebp - 0xa0]
mov ecx, eax
mov edx, dword [ebp + esi*8 - 0x54]
and eax, 0x1f
shr ecx, 5
mov dword [ebp - 0xa0], eax
mov edi, dword [ebp - 0xa0]
mov eax, dword [edx + ecx*4]
bts eax, edi
mov edi, dword [ebp - 0xa4]
mov dword [edx + ecx*4], eax
inc dword [ebp + esi*8 - 0x58]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x8c]
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 0x1005780d
movss dword [ebp + esi*8 - 0x68], xmm4
movss xmm0, dword [ebp + esi*8 - 0x64]
comiss xmm0, xmm1
jbe 0x1005781e
movss dword [ebp + esi*8 - 0x64], xmm1
comiss xmm2, dword [ebp + esi*8 - 0x60]
jbe 0x1005782b
movss dword [ebp + esi*8 - 0x60], xmm2
comiss xmm3, dword [ebp + esi*8 - 0x5c]
jbe 0x10057838
movss dword [ebp + esi*8 - 0x5c], xmm3
mov esi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x74]
bts esi, eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x6c], esi
inc edx
mov dword [ebp - 0x90], edx
cmp edx, dword [ebp - 0x94]
jl 0x10057675
mov eax, 0xffff
mov word [edi + 0x5c], ax
mov edi, dword [ebp - 0x98]
mov eax, dword [ebp - 0x88]
add dword [ebp - 0x80], 0x70
inc eax
mov dword [ebp - 0x88], eax
cmp eax, dword [edi + 0x40]
jl 0x10057631
test esi, esi
je 0x10057e38
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x7c]
mov edi, dword [eax + 4]
mov ecx, dword [edx + 0x4cd0]
sub edi, 2
cmp edi, ecx
jle 0x10057926
test ecx, ecx
je 0x100578ba
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x7c]
sar eax, 1
add eax, ecx
jmp 0x100578bf
mov eax, 8
cmp eax, edi
mov esi, edi
cmovg esi, eax
cmp esi, ecx
jle 0x10057926
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.1003a400
mov ecx, dword [ebp - 0x7c]
add esp, 4
mov dword [ebp - 0x94], eax
mov edx, dword [ecx + 0x4cd4]
test edx, edx
je 0x10057917
mov ecx, dword [ecx + 0x4ccc]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x4cd4]
call fcn.1003a490
mov eax, dword [ebp - 0x94]
add esp, 0x10
mov edx, dword [ebp - 0x7c]
mov dword [edx + 0x4cd4], eax
mov dword [edx + 0x4cd0], esi
mov ecx, dword [ebp - 0x78]
mov dword [edx + 0x4ccc], edi
mov edi, dword [edx + 0x4cd4]
mov edx, 2
mov dword [ebp - 0x6c], edi
mov esi, dword [ecx + 4]
dec esi
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x94], esi
cmp esi, edx
jl 0x100579b3
nop
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 - 0x70]
neg ecx
and edx, ecx
or dword [eax + esi*4], edx
mov edx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x94]
add edx, 0x20
and edx, 0xffffffe0
mov dword [ebp - 0x74], edx
cmp edx, esi
jle 0x10057950
mov edi, dword [ebp - 0x6c]
jmp 0x100579b6
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x98]
movaps xmm2, xmmword [0x101d2e50]
movzx edx, word [esi + 0x1e8]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [eax + ecx*4]
btr eax, edx
mov edx, dword [ebp - 0x70]
mov dword [edx + ecx*4], eax
xor eax, eax
cmp word [ebp - 0x9c], ax
mov ecx, dword [ebp - 0x78]
movups xmm0, xmmword [esi + 0x134]
setg al
add eax, 2
mov ecx, dword [ecx + 4]
movups xmmword [ebp - 0xc0], xmm0
sub ecx, eax
xor esi, esi
movss xmm3, dword [ebp - 0xb4]
movss xmm4, dword [ebp - 0xb8]
movss xmm6, dword [ebp - 0xbc]
movss xmm5, dword [ebp - 0xc0]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x8c], esi
lea eax, [esi + esi*2]
shl eax, 3
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp + eax - 0x58]
mov dword [ebp - 0x80], ecx
test ecx, ecx
je 0x10057d59
movups xmm0, xmmword [ebp + eax - 0x68]
mov ecx, esi
movups xmmword [ebp - 0xc0], xmm0
and ecx, 1
je 0x10057a69
cmp word [ebp - 0xc8], 0
jg 0x10057a7d
movss xmm0, dword [ebp - 0xc0]
minss xmm0, xmm5
movss dword [ebp - 0xc0], xmm0
and esi, 2
je 0x10057a8c
cmp word [ebp - 0x9c], 0
jg 0x10057aa0
movss xmm0, dword [ebp - 0xbc]
minss xmm0, xmm6
movss dword [ebp - 0xbc], xmm0
test ecx, ecx
je 0x10057ab8
movss xmm0, dword [ebp - 0xb8]
maxss xmm0, xmm4
movss dword [ebp - 0xb8], xmm0
test esi, esi
je 0x10057adf
mov ecx, dword [ebp - 0x98]
test dword [ecx + 4], 0x20000
jne 0x10057adf
movss xmm0, dword [ebp - 0xb4]
maxss xmm0, xmm3
movss dword [ebp - 0xb4], xmm0
mov ecx, dword [ebp - 0x84]
sub ecx, dword [ebp + eax - 0x58]
mov esi, dword [ebp - 0xc4]
sar esi, 2
mov dword [ebp - 0x84], ecx
xor ecx, ecx
mov dword [ebp - 0xa8], esi
test esi, esi
jle 0x10057caa
cmp esi, 2
jb 0x10057c86
mov edx, dword [ebp + eax - 0x54]
lea eax, [ebp + eax - 0x54]
mov dword [ebp - 0x88], eax
lea eax, [esi - 1]
mov dword [ebp - 0x74], edx
lea eax, [edx + eax*4]
cmp dword [ebp - 0x70], eax
ja 0x10057b3e
mov eax, dword [ebp - 0x70]
add eax, 0xfffffffc
lea eax, [eax + esi*4]
cmp eax, edx
jae 0x10057c83
mov eax, dword [ebp - 0x88]
cmp dword [ebp - 0x70], eax
ja 0x10057b5a
mov edx, dword [ebp - 0x70]
add edx, 0xfffffffc
lea edx, [edx + esi*4]
cmp edx, eax
jae 0x10057c83
cmp esi, 0x10
jb 0x10057c37
mov eax, esi
and eax, reloc.WS2_32.dll_ntohs
jns 0x10057b71
dec eax
or eax, 0xfffffff0
inc eax
mov edi, dword [ebp - 0x74]
mov edx, esi
mov esi, dword [ebp - 0x70]
sub edx, eax
mov eax, 0xfffffff0
mov dword [ebp - 0xa0], edx
sub eax, esi
mov dword [ebp - 0xac], eax
mov eax, 0x10
sub eax, esi
lea edx, [esi + 0x20]
mov dword [ebp - 0xa4], eax
mov eax, 0xffffffe0
sub eax, esi
mov esi, dword [ebp - 0x74]
mov dword [ebp - 0x94], eax
add esi, 0x20
mov eax, dword [ebp - 0x94]
lea esi, [esi + 0x40]
movups xmm0, xmmword [edx - 0x20]
add eax, edx
add ecx, 0x10
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0xac]
add eax, edx
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0xa4]
movups xmm0, xmmword [edx - 0x10]
add eax, edx
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx - 0x10], xmm1
movups xmm1, xmmword [esi - 0x40]
movups xmm0, xmmword [edx]
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx], xmm1
movups xmm1, xmmword [eax + edi]
movups xmm0, xmmword [edx + 0x10]
andnps xmm1, xmm2
andps xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
add edx, 0x40
cmp ecx, dword [ebp - 0xa0]
jl 0x10057bb1
mov esi, dword [ebp - 0xa8]
mov eax, esi
mov edi, dword [ebp - 0x6c]
and al, 0xf
cmp al, 2
jb 0x10057c7f
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
mov dword [ebp - 0xa8], eax
mov eax, esi
and eax, reloc.WS2_32.dll_accept
jns 0x10057c4d
dec eax
or eax, 0xfffffffe
inc eax
mov edi, dword [ebp - 0x70]
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0xa8]
nop word [eax + eax]
movq xmm1, qword [eax + ecx*4]
movq xmm0, qword [edi + ecx*4]
andnps xmm1, xmm2
andps xmm1, xmm0
movq qword [edi + ecx*4], xmm1
add ecx, 2
cmp ecx, edx
jl 0x10057c60
mov edi, dword [ebp - 0x6c]
cmp ecx, esi
jge 0x10057ca4
mov edx, dword [ebp - 0x70]
mov edi, dword [ebp - 0x90]
nop dword [eax]
mov eax, dword [ebp + edi - 0x54]
mov eax, dword [eax + ecx*4]
not eax
and dword [edx + ecx*4], eax
inc ecx
cmp ecx, esi
jl 0x10057c90
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0x78]
xor edx, edx
cmp dword [ecx + 4], edx
jle 0x10057d4e
mov dword [ebp - 0x88], edx
nop
cmp dword [ebp - 0x80], 0
je 0x10057d4e
mov eax, dword [ebp + eax - 0x54]
mov esi, edx
sar esi, 5
mov ecx, edx
mov dword [ebp - 0xa8], eax
and ecx, 0x1f
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
test edi, eax
je 0x10057d31
mov eax, dword [ebp - 0xa8]
btr edi, ecx
movaps xmm0, xmmword [ebp - 0xc0]
dec dword [ebp - 0x80]
mov dword [eax + esi*4], edi
mov eax, dword [ebp - 0x78]
mov edi, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x88]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm0
mov eax, edi
add edi, 0x18
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x6c], edi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
jmp 0x10057d34
mov edi, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x78]
inc edx
add dword [ebp - 0x88], 0x18
mov eax, dword [ebp - 0x90]
cmp edx, dword [ecx + 4]
jl 0x10057cc0
mov esi, dword [ebp - 0x8c]
mov edx, dword [ebp - 0x70]
jmp 0x10057d5c
mov ecx, dword [ebp - 0x78]
cmp esi, 1
jne 0x10057da4
cmp word [ebp - 0xcc], 0
jle 0x10057da4
mov eax, dword [ebp - 0x98]
mov edx, edi
add edi, 0x18
inc esi
mov dword [ebp - 0x6c], edi
movzx eax, word [eax + 0x1e8]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x78]
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 - 0x70]
jmp 0x10057a2b
inc esi
mov dword [ebp - 0x8c], esi
cmp esi, 4
jl 0x10057a31
mov eax, dword [ecx + 4]
xor esi, esi
test eax, eax
jle 0x10057e15
mov dword [ebp - 0x80], esi
cmp dword [ebp - 0x84], 0
je 0x10057e15
mov ecx, esi
mov edx, 1
and ecx, 0x1f
mov eax, esi
shl edx, cl
mov ecx, dword [ebp - 0x70]
sar eax, 5
test dword [ecx + eax*4], edx
je 0x10057e06
mov eax, dword [ebp - 0x78]
mov ecx, edi
add edi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x80]
dec dword [ebp - 0x84]
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [ebp - 0x78]
inc esi
add dword [ebp - 0x80], 0x18
mov eax, dword [ecx + 4]
cmp esi, eax
jl 0x10057dc0
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0x7c]
push dword [eax + 0x4cd4]
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.100f3936
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret