Function at 0x467610
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 [0x4b36c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebx + 8]
mov ecx, 0x4bb224
mov dword [ebp - 0x98], edi
call fcn.0048decd
mov eax, dword [0x4b3748]
xor esi, esi
mov dword [ebp - 0x80], eax
mov eax, dword [edi + 0x160]
mov dword [ebp - 0x7c], eax
movzx eax, word [edi + 0x1c8]
mov ecx, eax
mov dword [ebp - 0x9c], eax
movzx eax, word [edi + 0x1cc]
mov dword [ebp - 0xcc], ecx
mov ecx, eax
push 0x60
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0x74], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [esi + 4]
lea eax, [ebp - 0x64]
mov dword [eax - 4], esi
lea eax, [eax + 0x18]
mov dword [eax - 0x18], esi
mov dword [eax - 0x14], esi
mov dword [eax - 0x10], esi
sub ecx, 1
jne 0x4676a0
mov eax, dword [edi + 0x40]
lea eax, [eax*2 + 0x23]
sar eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0xc4], eax
lea edi, [eax + eax*4]
mov eax, dword [ebp - 0x80]
cmp edi, dword [eax + 0x5c20]
jle 0x467721
push edi
call fcn.0041c460
mov edx, dword [ebp - 0x80]
add esp, 4
mov dword [ebp - 0x78], eax
mov ecx, dword [edx + 0x5c24]
test ecx, ecx
je 0x467715
push dword [edx + 0x5c1c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
push dword [eax + 0x5c24]
call fcn.0041c490
mov eax, dword [ebp - 0x78]
add esp, 0x10
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x5c24], eax
mov dword [edx + 0x5c20], edi
push edi
mov edi, dword [ebp - 0x80]
push 0
push dword [edi + 0x5c24]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [edi + 0x5c24]
add esp, 0xc
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x54], eax
mov eax, dword [edi + 0x5c24]
add eax, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x5c24]
lea eax, [eax + ecx*2]
mov dword [ebp - 0x24], eax
lea eax, [ecx + ecx*2]
add eax, dword [edi + 0x5c24]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x5c24]
mov edi, dword [ebp - 0x98]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0xa0], eax
cmp dword [edi + 0x40], eax
jle 0x467fcd
mov dword [ebp - 0x6c], 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 0x4679e9
mov edi, dword [edi + 0x10]
xor eax, eax
add edi, dword [ebp - 0x6c]
cmp word [ebp - 0x9c], ax
mov dword [ebp - 0xa4], edi
setg al
inc eax
xor edx, edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x8c], edx
test edx, edx
jne 0x4677de
movzx eax, word [edi + 0x5e]
jmp 0x4677e2
movzx eax, word [edi + 0x60]
mov ecx, dword [ebp - 0x7c]
movzx eax, ax
mov dword [ebp - 0x70], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x94], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [ebp - 0x78], eax
test eax, eax
jle 0x46786b
mov edi, dword [ebp - 0x94]
lea esi, [eax + eax*4]
mov eax, dword [ebp - 0x90]
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 - 0x8c]
jne 0x467868
mov edi, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
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 - 0x8c]
jne 0x467868
mov esi, dword [ebp - 0x90]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x94]
mov dword [esi + eax*8], ecx
mov esi, dword [ebp - 0x74]
cmp ecx, 1
jne 0x4679c7
test dword [edi], 0x100
jne 0x4678b1
cmp word [ebp - 0x9c], 0
jg 0x467892
movss xmm0, dword [edi + 0x44]
maxss xmm0, dword [edi + 0x48]
jmp 0x4678a7
test edx, edx
jne 0x4678a2
movss xmm0, dword [edi + 0x40]
maxss xmm0, dword [edi + 0x48]
jmp 0x4678a7
movss xmm0, dword [edi + 0x44]
comiss xmm0, dword [edi + 0x28]
ja 0x4679c7
cmp word [ebp - 0xa8], 0
jle 0x4678d4
mov eax, dword [ebp - 0x98]
movsx eax, word [eax + 0x1cc]
cmp dword [ebp - 0xa0], eax
jge 0x4678d4
xor ecx, ecx
jmp 0x4678d9
mov ecx, 1
cmp word [ebp - 0x9c], 0
jle 0x4678eb
test edx, edx
jne 0x4678eb
xor eax, eax
jmp 0x4678f0
mov eax, 2
add eax, ecx
mov dword [ebp - 0xac], eax
lea esi, [eax + eax*2]
cmp dword [ebp + esi*8 - 0x58], 0
lea eax, [ebp + esi*8 - 0x64]
mov dword [ebp - 0x78], eax
jne 0x467929
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 0x46792c
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x70]
mov ecx, eax
mov edx, dword [ebp + esi*8 - 0x54]
and eax, 0x1f
shr ecx, 5
mov dword [ebp - 0x70], eax
mov edi, dword [ebp - 0x70]
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 - 0x94]
mov ecx, dword [ebp - 0x90]
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 0x467988
movss dword [ebp + esi*8 - 0x68], xmm4
mov eax, dword [ebp - 0x78]
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x467998
movss dword [eax], xmm1
comiss xmm2, dword [ebp + esi*8 - 0x60]
jbe 0x4679a5
movss dword [ebp + esi*8 - 0x60], xmm2
comiss xmm3, dword [ebp + esi*8 - 0x5c]
jbe 0x4679b2
movss dword [ebp + esi*8 - 0x5c], xmm3
mov esi, dword [ebp - 0x74]
mov eax, dword [ebp - 0xac]
bts esi, eax
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0x74], esi
inc edx
mov dword [ebp - 0x8c], edx
cmp edx, dword [ebp - 0x84]
jl 0x4677d4
mov eax, 0xffff
mov word [edi + 0x5c], ax
mov edi, dword [ebp - 0x98]
mov eax, dword [ebp - 0xa0]
add dword [ebp - 0x6c], 0x70
inc eax
mov dword [ebp - 0xa0], eax
cmp eax, dword [edi + 0x40]
jl 0x467790
test esi, esi
je 0x467fcd
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
mov esi, dword [eax + 4]
mov ecx, dword [edx + 0x4a28]
sub esi, 2
cmp esi, ecx
jle 0x467aa3
test ecx, ecx
je 0x467a37
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x80]
sar eax, 1
add eax, ecx
jmp 0x467a3c
mov eax, 8
cmp eax, esi
mov edi, esi
cmovg edi, eax
cmp edi, ecx
jle 0x467aa3
lea eax, [edi + edi*2]
shl eax, 3
push eax
call fcn.0041c460
mov ecx, dword [ebp - 0x80]
add esp, 4
mov dword [ebp - 0x84], eax
mov edx, dword [ecx + 0x4a2c]
test edx, edx
je 0x467a94
mov ecx, dword [ecx + 0x4a24]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x80]
push dword [eax + 0x4a2c]
call fcn.0041c490
mov eax, dword [ebp - 0x84]
add esp, 0x10
mov edx, dword [ebp - 0x80]
mov dword [edx + 0x4a2c], eax
mov dword [edx + 0x4a28], edi
mov ecx, dword [ebp - 0x7c]
mov dword [edx + 0x4a24], esi
mov esi, dword [edx + 0x4a2c]
mov edx, 2
mov dword [ebp - 0x94], esi
mov esi, dword [ecx + 4]
dec esi
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x84], esi
cmp esi, edx
jl 0x467b33
nop
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 - 0x88]
cmovae eax, ecx
xor ecx, eax
neg ecx
and edx, ecx
or dword [edi + esi*4], edx
mov edx, dword [ebp - 0x78]
mov esi, dword [ebp - 0x84]
add edx, 0x20
and edx, 0xffffffe0
mov dword [ebp - 0x78], edx
cmp edx, esi
jle 0x467ad0
jmp 0x467b39
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x98]
movaps xmm3, xmmword [0x4aae40]
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 - 0x9c], ax
mov ecx, dword [ebp - 0x7c]
setg al
add eax, 2
mov esi, dword [ecx + 4]
sub esi, eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x70], esi
xor ecx, ecx
movups xmm0, xmmword [eax + 0x12c]
movups xmmword [ebp - 0xc0], xmm0
movss xmm4, dword [ebp - 0xb4]
movss xmm5, dword [ebp - 0xb8]
movss xmm7, dword [ebp - 0xbc]
movss xmm6, dword [ebp - 0xc0]
mov dword [ebp - 0x90], ecx
lea edi, [ecx + ecx*2]
shl edi, 3
mov dword [ebp - 0x74], edi
mov eax, dword [ebp + edi - 0x58]
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x467ed7
movups xmm2, xmmword [ebp + edi - 0x68]
mov edx, ecx
movaps xmmword [ebp - 0xc0], xmm2
and edx, 1
je 0x467bec
cmp word [ebp - 0xc8], 0
jg 0x467c00
comiss xmm6, xmm2
ja 0x467c00
movss dword [ebp - 0xc0], xmm6
movaps xmm2, xmmword [ebp - 0xc0]
and ecx, 2
je 0x467c0f
cmp word [ebp - 0x9c], 0
jg 0x467c2a
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
comiss xmm7, xmm0
ja 0x467c2a
movss dword [ebp - 0xbc], xmm7
movaps xmm2, xmmword [ebp - 0xc0]
test edx, edx
je 0x467c49
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
comiss xmm0, xmm5
jae 0x467c49
movss dword [ebp - 0xb8], xmm5
movaps xmm2, xmmword [ebp - 0xc0]
test ecx, ecx
je 0x467c77
mov ecx, dword [ebp - 0x98]
test dword [ecx + 4], 0x20000
jne 0x467c77
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
comiss xmm0, xmm4
jae 0x467c77
movss dword [ebp - 0xb4], xmm4
movaps xmm2, xmmword [ebp - 0xc0]
sub esi, eax
xor ecx, ecx
mov dword [ebp - 0x70], esi
mov esi, dword [ebp - 0xc4]
sar esi, 2
mov dword [ebp - 0xa0], esi
test esi, esi
jle 0x467e37
cmp esi, 2
jb 0x467e16
mov edx, dword [ebp + edi - 0x54]
lea eax, [ebp + edi - 0x54]
mov edi, dword [ebp - 0x74]
lea eax, [esi - 1]
mov dword [ebp - 0x84], edx
lea eax, [edx + eax*4]
cmp dword [ebp - 0x88], eax
ja 0x467cd1
mov eax, dword [ebp - 0x88]
add eax, 0xfffffffc
lea eax, [eax + esi*4]
cmp eax, edx
jae 0x467e16
lea eax, [ebp + edi - 0x54]
cmp dword [ebp - 0x88], eax
ja 0x467cf4
mov edx, dword [ebp - 0x88]
mov edi, dword [ebp - 0x74]
add edx, 0xfffffffc
lea edx, [edx + esi*4]
cmp edx, eax
jae 0x467e16
cmp esi, 0x10
jb 0x467dcb
mov eax, esi
and eax, 0x8000000f
jns 0x467d0b
dec eax
or eax, 0xfffffff0
inc eax
mov edi, dword [ebp - 0x88]
mov edx, esi
sub edx, eax
mov esi, 0x20
mov eax, 0xfffffff0
mov dword [ebp - 0x78], edx
sub eax, edi
mov dword [ebp - 0xac], eax
lea edx, [edi + 0x20]
mov eax, 0x10
sub eax, edi
mov dword [ebp - 0xa8], eax
mov eax, 0xffffffe0
sub eax, edi
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x6c], eax
nop word [eax + 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 - 0xac]
add eax, edx
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0xa8]
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 - 0x6c]
movups xmm0, xmmword [edx + 0x10]
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx + 0x10], xmm1
add edx, 0x40
cmp ecx, dword [ebp - 0x78]
jl 0x467d50
mov esi, dword [ebp - 0xa0]
mov eax, esi
mov edi, dword [ebp - 0x74]
and al, 0xf
cmp al, 2
jb 0x467e12
mov eax, dword [ebp + edi - 0x54]
mov dword [ebp - 0x84], eax
mov eax, esi
and eax, 0x80000001
jns 0x467de3
dec eax
or eax, 0xfffffffe
inc eax
mov edi, dword [ebp - 0x88]
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x84]
movq xmm1, qword [eax + ecx*4]
movq xmm0, qword [edi + ecx*4]
andnps xmm1, xmm3
andps xmm1, xmm0
movq qword [edi + ecx*4], xmm1
add ecx, 2
cmp ecx, edx
jl 0x467df3
mov edi, dword [ebp - 0x74]
cmp ecx, esi
jge 0x467e31
mov edx, dword [ebp - 0x88]
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 0x467e20
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 0x7c]
xor edx, edx
cmp dword [ecx + 4], edx
jle 0x467ece
mov dword [ebp - 0x6c], edx
test eax, eax
je 0x467ece
mov eax, dword [ebp + edi - 0x54]
mov esi, edx
sar esi, 5
mov ecx, edx
mov dword [ebp - 0x84], eax
and ecx, 0x1f
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
test edi, eax
je 0x467eb4
mov eax, dword [ebp - 0x84]
btr edi, ecx
dec dword [ebp - 0x8c]
mov dword [eax + esi*4], edi
mov eax, dword [ebp - 0x7c]
mov esi, dword [ebp - 0x94]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x6c]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm2
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x94], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov eax, dword [ebp - 0x7c]
inc edx
add dword [ebp - 0x6c], 0x18
mov edi, dword [ebp - 0x74]
cmp edx, dword [eax + 4]
mov eax, dword [ebp - 0x8c]
jl 0x467e48
mov esi, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x90]
cmp ecx, 1
jne 0x467f2e
cmp word [ebp - 0xcc], 0
jle 0x467f2e
mov eax, dword [ebp - 0x98]
mov esi, dword [ebp - 0x94]
mov edx, esi
add esi, 0x18
mov dword [ebp - 0x94], esi
movzx eax, word [eax + 0x1d4]
mov esi, dword [ebp - 0x70]
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]
mov ecx, dword [ebp - 0x90]
movq qword [edx + 0x10], xmm0
inc ecx
jmp 0x467bae
inc ecx
mov dword [ebp - 0x90], ecx
cmp ecx, 4
jl 0x467bb4
mov ecx, dword [ebp - 0x7c]
xor edi, edi
mov eax, dword [ecx + 4]
test eax, eax
jle 0x467faa
mov esi, dword [ebp - 0x94]
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x6c], edi
test edx, edx
je 0x467faa
mov ecx, edi
mov edx, 1
and ecx, 0x1f
mov eax, edi
shl edx, cl
mov ecx, dword [ebp - 0x88]
sar eax, 5
test dword [ecx + eax*4], edx
mov edx, dword [ebp - 0x70]
je 0x467f9b
mov eax, dword [ebp - 0x7c]
mov ecx, esi
add esi, 0x18
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x6c]
dec edx
mov dword [ebp - 0x70], edx
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 - 0x6c], 0x18
mov eax, dword [ecx + 4]
cmp edi, eax
jl 0x467f56
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0x80]
push dword [eax + 0x4a2c]
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.0048deff
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret