Function at 0x10074030
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 [0x1018100c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edx, ecx
mov dword [ebp - 0xa4], edx
mov eax, dword [0x101884f4]
mov dword [ebp - 0x74], eax
mov eax, dword [edx + 0x168]
xor edi, edi
mov dword [ebp - 0x80], 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
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 0x100740a6
mov eax, dword [edx + 0x40]
mov edx, dword [ebp - 0x74]
lea eax, [eax*2 + 0x23]
sar eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0xb0], eax
movd xmm0, eax
lea esi, [eax + eax*4]
pshufd xmm0, xmm0, 0
movaps xmmword [ebp - 0xc0], xmm0
cmp esi, dword [edx + 0x5f70]
jle 0x1007413b
mov ecx, esi
call fcn.1004a490
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x7c], eax
mov ecx, dword [edx + 0x5f74]
test ecx, ecx
je 0x1007412f
push dword [edx + 0x5f6c]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x74]
add esp, 0xc
mov ecx, dword [eax + 0x5f74]
call fcn.1004a4d0
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
mov dword [edx + 0x5f74], eax
mov dword [edx + 0x5f70], esi
push esi
push 0
push dword [edx + 0x5f74]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x74]
add esp, 0xc
cmp dword [0x101884a4], 2
mov eax, dword [ecx + 0x5f74]
jl 0x100741a4
movaps xmm1, xmmword [0x1015aca0]
pmulld xmm1, xmmword [ebp - 0xc0]
movd xmm0, dword [ecx + 0x5f74]
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 0x100741c8
xor ecx, ecx
lea edx, [ebp - 0x54]
mov edi, eax
lea esi, [ecx + 4]
nop
lea eax, [ecx + edi]
add ecx, dword [ebp - 0xb0]
mov dword [edx], eax
lea edx, [edx + 0x18]
sub esi, 1
jne 0x100741b0
mov ecx, dword [ebp - 0x74]
xor edi, edi
mov eax, dword [ecx + 0x5f74]
mov ecx, dword [ebp - 0xb0]
mov esi, dword [ebp - 0xa4]
lea eax, [eax + ecx*4]
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0xa0], eax
cmp dword [esi + 0x40], eax
jle 0x10074a47
mov dword [ebp - 0x84], 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 0x10074470
mov esi, dword [esi + 0x10]
xor eax, eax
add esi, dword [ebp - 0x84]
cmp word [ebp - 0xa8], ax
mov dword [ebp - 0x9c], esi
setg al
inc eax
xor edx, edx
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], edx
test edx, edx
jne 0x10074251
movzx eax, word [esi + 0x5e]
jmp 0x10074255
movzx eax, word [esi + 0x60]
mov ecx, dword [ebp - 0x80]
movzx eax, ax
mov dword [ebp - 0x98], eax
mov ecx, dword [ecx + 0x10]
lea eax, [eax + eax*2]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x8c], eax
mov eax, dword [ecx + eax*8]
mov ecx, eax
mov dword [ebp - 0x70], eax
test eax, eax
jle 0x100742d5
mov esi, dword [ebp - 0x8c]
lea edi, [eax + eax*4]
mov eax, dword [ebp - 0x78]
mov edx, dword [eax + esi*8 + 8]
mov eax, ecx
mov esi, dword [ebp - 0x9c]
cmp dword [edx + edi*8 - 0xc], 0
mov edx, dword [ebp - 0x90]
jne 0x100742d2
mov esi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x78]
mov edx, dword [eax + esi*8 + 8]
mov eax, ecx
mov esi, dword [ebp - 0x9c]
cmp dword [edx + edi*8 - 8], 0
mov edx, dword [ebp - 0x90]
jne 0x100742d2
mov edi, dword [ebp - 0x78]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0x8c]
mov dword [edi + eax*8], ecx
mov edi, dword [ebp - 0x6c]
cmp ecx, 1
jne 0x1007444e
test dword [esi], 0x100
jne 0x1007431b
cmp word [ebp - 0xa8], 0
jg 0x100742fc
movss xmm0, dword [esi + 0x44]
maxss xmm0, dword [esi + 0x48]
jmp 0x10074311
test edx, edx
jne 0x1007430c
movss xmm0, dword [esi + 0x40]
maxss xmm0, dword [esi + 0x48]
jmp 0x10074311
movss xmm0, dword [esi + 0x44]
comiss xmm0, dword [esi + 0x28]
ja 0x1007444e
cmp word [ebp - 0xc8], 0
jle 0x1007433e
mov eax, dword [ebp - 0xa4]
movsx eax, word [eax + 0x1e0]
cmp dword [ebp - 0xa0], eax
jge 0x1007433e
xor ecx, ecx
jmp 0x10074343
mov ecx, 1
cmp word [ebp - 0xa8], 0
jle 0x10074355
test edx, edx
jne 0x10074355
xor eax, eax
jmp 0x1007435a
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 - 0x7c], edx
jne 0x100743a0
mov dword [ebp + edi*8 - 0x68], 0x7f7fffff
mov dword [eax], 0x7f7fffff
mov dword [ecx], 0xff7fffff
mov dword [edx], 0xff7fffff
jmp 0x100743ac
mov dword [ebp - 0x70], eax
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x98]
mov ecx, eax
mov edx, dword [ebp + edi*8 - 0x54]
and eax, 0x1f
shr ecx, 5
mov dword [ebp - 0x98], eax
mov esi, dword [ebp - 0x98]
mov eax, dword [edx + ecx*4]
bts eax, esi
mov esi, dword [ebp - 0x9c]
mov dword [edx + ecx*4], eax
inc dword [ebp + edi*8 - 0x58]
mov eax, dword [ebp - 0x8c]
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 0x1007440e
movss dword [ebp + edi*8 - 0x68], xmm4
mov eax, dword [ebp - 0x70]
movss xmm0, dword [eax]
comiss xmm0, xmm1
jbe 0x1007441e
movss dword [eax], xmm1
mov eax, dword [ebp - 0xc4]
comiss xmm2, dword [eax]
jbe 0x1007442d
movss dword [eax], xmm2
mov eax, dword [ebp - 0x7c]
comiss xmm3, dword [eax]
jbe 0x10074439
movss dword [eax], xmm3
mov edi, dword [ebp - 0x6c]
mov eax, dword [ebp - 0xac]
bts edi, eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x6c], edi
inc edx
mov dword [ebp - 0x90], edx
cmp edx, dword [ebp - 0x94]
jl 0x10074247
mov eax, 0xffff
mov word [esi + 0x5c], ax
mov esi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0xa0]
add dword [ebp - 0x84], 0x70
inc eax
mov dword [ebp - 0xa0], eax
cmp eax, dword [esi + 0x40]
jl 0x10074200
test edi, edi
je 0x10074a47
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x74]
mov edi, dword [eax + 4]
mov ecx, dword [edx + 0x4cb0]
sub edi, 2
cmp edi, ecx
jle 0x10074525
test ecx, ecx
je 0x100744bd
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0x74]
sar eax, 1
add eax, ecx
jmp 0x100744c2
mov eax, 8
cmp eax, edi
mov esi, edi
cmovg esi, eax
cmp esi, ecx
jle 0x10074525
lea ecx, [esi + esi*2]
shl ecx, 3
call fcn.1004a490
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x94], eax
mov edx, dword [ecx + 0x4cb4]
test edx, edx
je 0x10074516
mov ecx, dword [ecx + 0x4cac]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x74]
add esp, 0xc
mov ecx, dword [eax + 0x4cb4]
call fcn.1004a4d0
mov eax, dword [ebp - 0x94]
mov edx, dword [ebp - 0x74]
mov dword [edx + 0x4cb4], eax
mov dword [edx + 0x4cb0], esi
mov ecx, dword [ebp - 0x80]
mov eax, 2
mov dword [edx + 0x4cac], edi
mov esi, dword [edx + 0x4cb4]
mov dword [ebp - 0x8c], esi
mov edx, dword [ecx + 4]
dec edx
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0xac], edx
cmp edx, eax
jl 0x100745be
mov ecx, edx
and ecx, 0x1f
mov dword [ebp - 0x94], ecx
nop dword [eax + eax]
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 - 0x94]
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 - 0x88]
neg ecx
and edx, ecx
or dword [eax + edi*4], edx
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0xac]
add eax, 0x20
and eax, 0xffffffe0
mov dword [ebp - 0x7c], eax
cmp eax, edx
jle 0x10074560
mov edi, dword [ebp - 0xa4]
mov eax, dword [ebp - 0x88]
movaps xmm3, xmmword [0x1015ad90]
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 - 0x88]
mov dword [edx + ecx*4], eax
xor eax, eax
cmp word [ebp - 0xa8], ax
mov ecx, dword [ebp - 0x80]
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 - 0x90], 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 0x10074956
movups xmm2, xmmword [ebp + eax - 0x68]
mov ecx, edi
movaps xmmword [ebp - 0xc0], xmm2
and ecx, 1
je 0x10074675
cmp word [ebp - 0xcc], 0
jg 0x10074689
comiss xmm6, xmm2
ja 0x10074689
movss dword [ebp - 0xc0], xmm6
movaps xmm2, xmmword [ebp - 0xc0]
and edi, 2
je 0x10074698
cmp word [ebp - 0xa8], 0
jg 0x100746b3
movaps xmm0, xmm2
shufps xmm0, xmm2, 0x55
comiss xmm7, xmm0
ja 0x100746b3
movss dword [ebp - 0xbc], xmm7
movaps xmm2, xmmword [ebp - 0xc0]
test ecx, ecx
je 0x100746d2
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xaa
comiss xmm0, xmm5
jae 0x100746d2
movss dword [ebp - 0xb8], xmm5
movaps xmm2, xmmword [ebp - 0xc0]
test edi, edi
je 0x10074700
mov ecx, dword [ebp - 0xa4]
test dword [ecx + 4], 0x20000
jne 0x10074700
movaps xmm0, xmm2
shufps xmm0, xmm2, 0xff
comiss xmm0, xmm4
jae 0x10074700
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 0x100748b4
cmp esi, 2
jb 0x100748a0
mov edi, dword [ebp + eax - 0x54]
lea eax, [ebp + eax - 0x54]
mov dword [ebp - 0x7c], eax
lea eax, [esi - 1]
lea eax, [edx + eax*4]
mov dword [ebp - 0x94], eax
lea eax, [esi - 1]
lea eax, [edi + eax*4]
cmp edx, eax
ja 0x10074758
lea eax, [esi - 1]
lea eax, [edx + eax*4]
cmp eax, edi
jae 0x1007489b
mov eax, dword [ebp - 0x7c]
cmp edx, eax
ja 0x1007476b
cmp dword [ebp - 0x94], eax
jae 0x1007489b
cmp esi, 0x10
jb 0x10074851
mov eax, esi
and eax, 0x8000000f
jns 0x10074782
dec eax
or eax, 0xfffffff0
inc eax
mov dword [ebp - 0x98], esi
mov esi, 0x20
sub dword [ebp - 0x98], eax
add edx, esi
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xa0], 0xfffffff0
sub dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], 0x10
sub dword [ebp - 0x9c], eax
mov dword [ebp - 0x84], 0xffffffe0
sub dword [ebp - 0x84], eax
nop dword [eax + eax]
mov eax, dword [ebp - 0x84]
lea esi, [esi + 0x40]
movups xmm0, xmmword [edx - 0x20]
add eax, edx
add ecx, 0x10
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0xa0]
add eax, edx
andnps xmm1, xmm3
andps xmm1, xmm0
movups xmmword [edx - 0x20], xmm1
movups xmm1, xmmword [eax + edi]
mov eax, dword [ebp - 0x9c]
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 - 0x98]
jl 0x100747d0
mov esi, dword [ebp - 0xac]
mov eax, esi
and al, 0xf
cmp al, 2
jb 0x1007488c
mov eax, dword [ebp - 0x7c]
mov edi, dword [eax]
mov eax, esi
and eax, 0x80000001
jns 0x10074861
dec eax
or eax, 0xfffffffe
inc eax
mov edx, esi
sub edx, eax
mov eax, dword [ebp - 0x88]
nop dword [eax + 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 0x10074870
mov eax, dword [ebp - 0x78]
cmp ecx, esi
jge 0x100748b4
mov edx, dword [ebp - 0x88]
jmp 0x100748a0
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 0x100748a0
mov ecx, dword [ebp - 0x80]
xor edx, edx
cmp dword [ecx + 4], edx
jle 0x10074945
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x70], 0
je 0x10074945
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 0x10074932
mov eax, dword [ebp - 0x94]
btr edi, ecx
dec dword [ebp - 0x70]
mov dword [eax + esi*4], edi
mov eax, dword [ebp - 0x80]
mov esi, dword [ebp - 0x8c]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x84]
mov eax, dword [ecx + 8]
movups xmmword [eax], xmm2
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x8c], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov ecx, dword [ebp - 0x80]
inc edx
add dword [ebp - 0x84], 0x18
mov eax, dword [ebp - 0x78]
cmp edx, dword [ecx + 4]
jl 0x100748c8
mov edi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x88]
mov esi, dword [ebp - 0x6c]
jmp 0x10074959
mov ecx, dword [ebp - 0x80]
cmp edi, 1
jne 0x100749b0
cmp word [ebp - 0xd0], 0
jle 0x100749b0
mov eax, dword [ebp - 0xa4]
mov esi, dword [ebp - 0x8c]
mov edx, esi
add esi, 0x18
inc edi
mov dword [ebp - 0x8c], esi
movzx eax, word [eax + 0x1e8]
mov esi, dword [ebp - 0x6c]
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0x80]
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 - 0x88]
jmp 0x10074639
inc edi
mov dword [ebp - 0x90], edi
cmp edi, 4
jl 0x10074640
mov eax, dword [ecx + 4]
xor edi, edi
test eax, eax
jle 0x10074a24
mov esi, dword [ebp - 0x8c]
mov dword [ebp - 0x70], edi
cmp dword [ebp - 0x6c], 0
je 0x10074a24
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
je 0x10074a15
mov eax, dword [ebp - 0x80]
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 - 0x80]
inc edi
add dword [ebp - 0x70], 0x18
mov eax, dword [ecx + 4]
cmp edi, eax
jl 0x100749d2
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0x74]
push dword [eax + 0x4cb4]
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.1010a62a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret