Function at 0x4c5060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5582e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x55b690]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd0], edi
mov dword [ebp - 0xc0], esi
mov ebx, dword [edi + 0x178]
lea ecx, [esi + 4]
mov al, byte [edi + 0x1b4]
mov dword [ebp - 0xc8], ebx
mov bl, byte [edi + 0x1b2]
mov byte [ebp - 0xc1], al
lea eax, [ebp - 0xa0]
mov byte [ebp - 0xb9], bl
nop
mov dword [eax - 4], esi
xorps xmm0, xmm0
mov dword [eax], esi
lea eax, [eax + 0x28]
mov dword [eax - 0x24], esi
mov dword [eax - 0x20], esi
movups xmmword [eax - 0x18], xmm0
mov dword [eax - 8], esi
mov dword [eax - 0x1c], esi
sub ecx, 1
jne 0x4c50c0
xor eax, eax
mov dword [ebp - 0xd4], eax
cmp dword [edi + 0x54], eax
jle 0x4c57da
mov dword [ebp - 0xd8], eax
xor edx, edx
xor ecx, ecx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [edi + 0x38]
and ecx, dword [edi + 0x3c]
or edx, ecx
je 0x4c5338
mov edx, dword [edi + 0x10]
xor eax, eax
add edx, dword [ebp - 0xd8]
test bl, bl
mov dword [ebp - 0x104], edx
setg al
inc eax
xor ebx, ebx
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x100], ebx
nop
test ebx, ebx
jne 0x4c5149
mov al, byte [edx + 0x58]
jmp 0x4c514c
mov al, byte [edx + 0x59]
movzx eax, al
mov dword [ebp - 0xcc], eax
lea edi, [eax + eax*2]
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xf8], edi
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xe0], eax
mov eax, dword [eax + edi*8]
mov ecx, eax
test eax, eax
jle 0x4c51ab
mov ecx, dword [ebp - 0xe0]
lea esi, [eax + eax*4]
mov edi, dword [ecx + edi*8 + 8]
mov ecx, eax
cmp dword [edi + esi*8 - 0xc], 0
jne 0x4c51a5
cmp dword [edi + esi*8 - 8], 0
je 0x4c51a5
mov esi, dword [ebp - 0xe0]
lea ecx, [eax - 1]
mov eax, dword [ebp - 0xf8]
mov dword [esi + eax*8], ecx
mov esi, dword [ebp - 0xc0]
cmp ecx, 1
jne 0x4c5315
test dword [edx], 0x100
jne 0x4c51f0
cmp byte [ebp - 0xb9], 0
jg 0x4c51d1
movss xmm0, dword [edx + 0x44]
maxss xmm0, dword [edx + 0x48]
jmp 0x4c51e6
test ebx, ebx
jne 0x4c51e1
movss xmm0, dword [edx + 0x40]
maxss xmm0, dword [edx + 0x48]
jmp 0x4c51e6
movss xmm0, dword [edx + 0x44]
comiss xmm0, dword [edx + 0x28]
ja 0x4c5315
cmp byte [ebp - 0xc1], 0
jle 0x4c5212
mov eax, dword [ebp - 0xd0]
movsx eax, byte [eax + 0x1b4]
cmp dword [ebp - 0xd4], eax
jge 0x4c5212
xor ecx, ecx
jmp 0x4c5217
mov ecx, 1
cmp byte [ebp - 0xb9], 0
jle 0x4c5228
test ebx, ebx
jne 0x4c5228
xor eax, eax
jmp 0x4c522d
mov eax, 2
add eax, ecx
lea esi, [ebp - 0xa4]
mov dword [ebp - 0x108], eax
lea eax, [eax + eax*4]
cmp dword [esi + eax*8 + 0x10], 0
lea esi, [esi + eax*8]
lea eax, [esi + 0xc]
mov dword [ebp - 0xfc], eax
jne 0x4c526d
mov dword [esi], 0x7f7fffff
mov dword [esi + 4], 0x7f7fffff
mov dword [esi + 8], 0xff7fffff
mov dword [eax], 0xff7fffff
jmp 0x4c5273
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xcc]
mov ecx, eax
shr ecx, 5
and eax, 0x1f
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp - 0xcc]
mov eax, dword [esi + ecx*4 + 0x14]
bts eax, edx
mov edx, dword [ebp - 0x104]
mov dword [esi + ecx*4 + 0x14], eax
mov eax, dword [ebp - 0xf8]
mov ecx, dword [ebp - 0xe0]
inc dword [esi + 0x10]
movss xmm0, dword [esi]
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 0x4c52d1
movss dword [esi], xmm4
movss xmm0, dword [esi + 4]
comiss xmm0, xmm1
jbe 0x4c52e0
movss dword [esi + 4], xmm1
comiss xmm2, dword [esi + 8]
jbe 0x4c52eb
movss dword [esi + 8], xmm2
mov eax, dword [ebp - 0xfc]
comiss xmm3, dword [eax]
jbe 0x4c52fa
movss dword [eax], xmm3
mov esi, dword [ebp - 0xc0]
mov eax, dword [ebp - 0x108]
bts esi, eax
mov ebx, dword [ebp - 0x100]
mov dword [ebp - 0xc0], esi
inc ebx
mov dword [ebp - 0x100], ebx
cmp ebx, dword [ebp - 0xe4]
jl 0x4c5140
mov edi, dword [ebp - 0xd0]
mov bl, byte [ebp - 0xb9]
mov byte [edx + 0x57], 0xff
mov eax, dword [ebp - 0xd4]
add dword [ebp - 0xd8], 0x68
inc eax
mov dword [ebp - 0xd4], eax
cmp eax, dword [edi + 0x54]
jl 0x4c50f7
test esi, esi
je 0x4c57da
mov edi, dword [ebp - 0xc8]
mov edx, dword [ebp - 0xdc]
mov edi, dword [edi + 4]
mov ecx, dword [edx + 0x4374]
sub edi, 2
cmp edi, ecx
jle 0x4c53fd
test ecx, ecx
je 0x4c5392
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 0xdc]
sar eax, 1
add eax, ecx
jmp 0x4c5397
mov eax, 8
cmp eax, edi
mov esi, edi
cmovg esi, eax
cmp esi, ecx
jle 0x4c53fd
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.0047f9d0
mov edx, dword [ebp - 0xdc]
mov ebx, eax
add esp, 4
mov eax, dword [edx + 0x4378]
test eax, eax
je 0x4c53f1
mov ecx, dword [edx + 0x4370]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0xdc]
push dword [eax + 0x4378]
call fcn.0047fa00
mov edx, dword [ebp - 0xdc]
add esp, 0x10
mov dword [edx + 0x4378], ebx
mov dword [edx + 0x4374], esi
mov ecx, dword [ebp - 0xc8]
mov ebx, 2
mov dword [edx + 0x4370], edi
xorps xmm0, xmm0
mov esi, dword [edx + 0x4378]
mov dword [ebp - 0xcc], esi
mov edi, dword [ecx + 4]
movups xmmword [ebp - 0xb8], xmm0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xc0], edi
lea edx, [edi - 1]
cmp edx, ebx
jl 0x4c54b3
mov esi, edx
and esi, 0x1f
mov dword [ebp - 0xe4], esi
nop dword [eax]
mov eax, ebx
mov edi, ebx
or eax, 0x1f
sar edi, 5
cmp edx, eax
mov ecx, 0x1f
cmovle ecx, esi
xor esi, esi
inc ecx
xor eax, eax
bts esi, ecx
cmp ecx, 0x20
mov ecx, ebx
cmovae eax, esi
xor edx, edx
xor esi, eax
and ecx, 0x1f
bts edx, ecx
dec esi
xor eax, eax
cmp ecx, 0x20
cmovae eax, edx
add ebx, 0x20
xor edx, eax
and ebx, 0xffffffe0
neg edx
and esi, edx
or dword [ebp + edi*4 - 0xb8], esi
mov edi, dword [ebp - 0xc0]
mov esi, dword [ebp - 0xe4]
lea edx, [edi - 1]
cmp ebx, edx
jle 0x4c5450
mov esi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xd0]
movzx edx, byte [eax + 0x1b8]
mov ecx, edx
and edx, 0x1f
shr ecx, 5
mov eax, dword [ebp + ecx*4 - 0xb8]
btr eax, edx
mov dl, byte [ebp - 0xb9]
mov dword [ebp + ecx*4 - 0xb8], eax
xor eax, eax
test dl, dl
setg al
add eax, 2
sub edi, eax
xor ebx, ebx
mov dword [ebp - 0xc0], edi
mov edi, dword [ebp - 0xd0]
movups xmm0, xmmword [edi + 0x144]
movups xmmword [ebp - 0xf4], xmm0
movss xmm2, dword [ebp - 0xe8]
movss xmm3, dword [ebp - 0xec]
movss xmm5, dword [ebp - 0xf0]
movss xmm4, dword [ebp - 0xf4]
mov dword [ebp - 0xd4], ebx
nop dword [eax]
lea eax, [ebx + ebx*4]
shl eax, 3
mov ecx, dword [ebp + eax - 0x94]
mov dword [ebp - 0xd8], ecx
test ecx, ecx
je 0x4c5729
lea edi, [ebp - 0xa4]
mov edx, ebx
add edi, eax
movups xmm1, xmmword [edi]
movups xmmword [ebp - 0xf4], xmm1
and edx, 1
je 0x4c556d
cmp byte [ebp - 0xc1], 0
jg 0x4c5581
comiss xmm4, xmm1
ja 0x4c5581
movss dword [ebp - 0xf4], xmm4
movups xmm1, xmmword [ebp - 0xf4]
mov eax, ebx
and eax, 2
je 0x4c5591
cmp byte [ebp - 0xb9], 0
jg 0x4c55ac
movaps xmm0, xmm1
shufps xmm0, xmm1, 0x55
comiss xmm5, xmm0
ja 0x4c55ac
movss dword [ebp - 0xf0], xmm5
movups xmm1, xmmword [ebp - 0xf4]
test edx, edx
je 0x4c55cb
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xaa
comiss xmm0, xmm3
jae 0x4c55cb
movss dword [ebp - 0xec], xmm3
movups xmm1, xmmword [ebp - 0xf4]
test eax, eax
je 0x4c55f9
mov eax, dword [ebp - 0xd0]
test dword [eax + 4], 0x20000
jne 0x4c55f9
movaps xmm0, xmm1
shufps xmm0, xmm1, 0xff
comiss xmm0, xmm2
jae 0x4c55f9
movss dword [ebp - 0xe8], xmm2
movups xmm1, xmmword [ebp - 0xf4]
mov eax, dword [ebp - 0xc0]
xor edx, edx
sub eax, dword [edi + 0x10]
mov dword [ebp - 0xc0], eax
mov eax, dword [edi + 0x14]
not eax
and dword [ebp - 0xb8], eax
mov eax, dword [edi + 0x18]
not eax
and dword [ebp - 0xb4], eax
mov eax, dword [edi + 0x1c]
not eax
and dword [ebp - 0xb0], eax
mov eax, dword [edi + 0x20]
not eax
and dword [ebp - 0xac], eax
mov eax, dword [edi + 0x24]
not eax
and dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc8]
cmp dword [eax + 4], edx
jle 0x4c56d8
xor ebx, ebx
test ecx, ecx
je 0x4c56d2
mov esi, edx
mov ecx, edx
and ecx, 0x1f
sar esi, 5
mov eax, 1
shl eax, cl
test dword [edi + esi*4 + 0x14], eax
je 0x4c56b7
mov eax, dword [edi + esi*4 + 0x14]
dec dword [ebp - 0xd8]
btr eax, ecx
mov dword [edi + esi*4 + 0x14], eax
mov eax, dword [ebp - 0xc8]
mov esi, dword [ebp - 0xcc]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + ebx + 8]
movups xmmword [eax], xmm1
mov eax, esi
add esi, 0x18
movups xmm0, xmmword [ecx + ebx]
mov dword [ebp - 0xcc], esi
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + ebx + 0x10]
movq qword [eax + 0x10], xmm0
jmp 0x4c56bd
mov esi, dword [ebp - 0xcc]
mov eax, dword [ebp - 0xc8]
inc edx
mov ecx, dword [ebp - 0xd8]
add ebx, 0x18
cmp edx, dword [eax + 4]
jl 0x4c5652
mov ebx, dword [ebp - 0xd4]
mov dl, byte [ebp - 0xb9]
mov edi, dword [ebp - 0xd0]
cmp ebx, 1
jne 0x4c5731
test dl, dl
jle 0x4c5731
movzx eax, byte [edi + 0x1b8]
mov edx, esi
add esi, 0x18
inc ebx
mov dword [ebp - 0xcc], esi
lea ecx, [eax + eax*2]
mov eax, dword [ebp - 0xc8]
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 dl, byte [ebp - 0xb9]
jmp 0x4c5527
mov eax, dword [ebp - 0xc8]
jmp 0x4c56e4
inc ebx
mov dword [ebp - 0xd4], ebx
cmp ebx, 4
jl 0x4c5530
mov eax, dword [eax + 4]
xor edi, edi
test eax, eax
jle 0x4c57ae
mov edx, dword [ebp - 0xc0]
xor ebx, ebx
test edx, edx
je 0x4c57ae
mov eax, edi
mov ecx, edi
and ecx, 0x1f
sar eax, 5
mov edx, 1
shl edx, cl
test dword [ebp + eax*4 - 0xb8], edx
mov edx, dword [ebp - 0xc0]
je 0x4c579d
mov eax, dword [ebp - 0xc8]
mov ecx, esi
add esi, 0x18
dec edx
mov dword [ebp - 0xc0], edx
mov eax, dword [eax + 0x10]
movups xmm0, xmmword [eax + ebx]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + ebx + 0x10]
movq qword [ecx + 0x10], xmm0
mov eax, dword [ebp - 0xc8]
inc edi
add ebx, 0x18
mov eax, dword [eax + 4]
cmp edi, eax
jl 0x4c5752
lea eax, [eax + eax*2]
lea eax, [eax*8 - 0x30]
push eax
mov eax, dword [ebp - 0xdc]
push dword [eax + 0x4378]
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 0x10]
add eax, 0x30
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00501271
mov esp, ebp
pop ebp
ret