Function at 0x4da380
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62d1b0
mov eax, dword fs:[0]
push eax
sub esp, 0xa64
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0xa64], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xa70], eax
mov dword [ebp - 0xa6c], ecx
test eax, eax
jne 0x4da3d3
xor al, al
jmp 0x4da5f4
mov esi, dword [ebp + 0x18]
mov edi, 0x40
cmp esi, 3
je 0x4da3e5
cmp esi, 2
jne 0x4da3ea
mov edi, 0x80
push esi
call fcn.004c4710
mov ecx, dword [ebp + 0x14]
add esp, 4
mov dword [ebp - 0xa68], eax
cmp ecx, edi
jle 0x4da429
lea eax, [ebp - 0x158]
push eax
push esi
push ecx
push dword [ebp - 0xa64]
call fcn.004c3730
mov ecx, dword [ebp - 0xa68]
lea eax, [ebp - 0x158]
add esp, 0x10
mov dword [ebp - 0xa64], eax
push edi
cmp ecx, edi
lea eax, [ebp - 0x94]
push 0
mov esi, edi
push eax
cmovle esi, ecx
call sub.VCRUNTIME140.dll_memset
push edi
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push esi
push dword [ebp - 0xa64]
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll_memcpy
push esi
push dword [ebp - 0xa64]
lea eax, [ebp - 0x118]
push eax
call sub.VCRUNTIME140.dll_memcpy
movaps xmm2, xmmword [0x6e6890]
add esp, 0x30
movaps xmm3, xmmword [0x67e020]
xor eax, eax
nop word [eax + eax]
movups xmm0, xmmword [ebp + eax - 0x94]
movaps xmm1, xmm3
xorps xmm0, xmm2
movups xmmword [ebp + eax - 0x94], xmm0
movups xmm0, xmmword [ebp + eax - 0x118]
xorps xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0x84]
movups xmmword [ebp + eax - 0x118], xmm1
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0x108]
movups xmmword [ebp + eax - 0x84], xmm1
movaps xmm1, xmm3
xorps xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0x74]
movups xmmword [ebp + eax - 0x108], xmm1
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0xf8]
movups xmmword [ebp + eax - 0x74], xmm1
movaps xmm1, xmm3
xorps xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0x64]
movups xmmword [ebp + eax - 0xf8], xmm1
movaps xmm1, xmm2
xorps xmm1, xmm0
movups xmm0, xmmword [ebp + eax - 0xe8]
movups xmmword [ebp + eax - 0x64], xmm1
movaps xmm1, xmm3
xorps xmm1, xmm0
movups xmmword [ebp + eax - 0xe8], xmm1
add eax, 0x40
cmp eax, edi
jl 0x4da490
lea ecx, [ebp - 0xa60]
call fcn.0049eba0
push dword [ebp - 0xa6c]
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x94]
mov dword [ebp - 0xa5c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa58], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x658], eax
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0xa60]
mov dword [ebp - 4], 0
push esi
push eax
mov dword [ebp - 0x25c], 2
mov dword [ebp - 0x65c], edi
call fcn.004c3a40
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x258]
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0xa68]
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x258]
add eax, edi
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0xa70]
mov eax, dword [ebp - 0xa68]
add eax, edi
push esi
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004c3730
add esp, 0x38
lea ecx, [ebp - 0xa60]
call fcn.0049ee20
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret