Function at 0x4a6510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0d0e
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
push edi
mov eax, dword [0x5116c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.004a33c0
mov ecx, edi
mov esi, eax
call fcn.004a33c0
mov edi, dword [ebp + 8]
add eax, 0x1f
add esi, eax
mov ecx, edi
shr esi, 5
push 0
push esi
mov dword [edi + 4], 0x3fffffff
mov dword [edi + 8], esi
call fcn.004438f0
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
jbe 0x4a65a0
mov dword [eax], 0
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
lea edx, [edx + 4]
sub ecx, 1
je 0x4a65a0
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 1
call fcn.004a33c0
sub eax, 1
mov dword [ebp - 0x14], eax
js 0x4a676e
mov edx, dword [ebp + 8]
mov edi, dword [edx + 8]
test edi, edi
je 0x4a660b
mov edx, dword [edx + 0xc]
xor esi, esi
mov ecx, dword [edx]
lea edx, [edx + 4]
lea eax, [ecx + ecx]
or eax, esi
mov esi, ecx
shr esi, 0x1f
mov dword [edx - 4], eax
sub edi, 1
jne 0x4a65d1
test esi, esi
je 0x4a6608
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
inc eax
push eax
call fcn.004a4250
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
mov eax, dword [edx + 0xc]
mov dword [eax + ecx*4 - 4], esi
jmp 0x4a660b
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov esi, ecx
mov eax, dword [ebp + 0xc]
shr esi, 5
cmp esi, dword [eax + 8]
jae 0x4a674e
mov eax, dword [eax + 0xc]
and ecx, 0x1f
mov eax, dword [eax + esi*4]
shr eax, cl
test al, 1
je 0x4a674e
mov eax, dword [ebp - 0x24]
mov ecx, dword [edx + 0xc]
xor edx, edx
mov dword [ebp - 0x10], ecx
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x1c], edi
test esi, esi
je 0x4a674e
cmp esi, 2
jb 0x4a6736
lea eax, [esi - 1]
lea eax, [edi + eax*4]
cmp ecx, eax
ja 0x4a666f
lea eax, [esi - 1]
lea eax, [ecx + eax*4]
cmp eax, edi
jae 0x4a6736
cmp esi, 0x10
jb 0x4a66fb
mov eax, esi
and eax, 0xf
mov dword [ebp - 0x18], eax
mov eax, esi
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
lea eax, [edi + 0x30]
mov dword [ebp - 0x2c], eax
lea eax, [ecx + 0x10]
mov dword [ebp - 0x28], eax
mov eax, edi
sub eax, ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x10
lea eax, [eax + 0x40]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [ecx - 0x70]
xorps xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [eax + edi - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
xorps xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
movups xmm0, xmmword [ecx - 0x40]
xorps xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x34]
jb 0x4a66a4
cmp dword [ebp - 0x18], 2
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
jb 0x4a6732
mov eax, dword [ebp - 0x10]
mov ecx, esi
and ecx, 0xfffffffe
sub edi, dword [ebp - 0x10]
mov dword [ebp - 0x30], edi
lea eax, [eax + edx*4]
nop dword [eax]
movq xmm1, qword [edi + eax]
lea eax, [eax + 8]
movq xmm0, qword [eax - 8]
add edx, 2
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, ecx
jb 0x4a6710
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
cmp edx, esi
jae 0x4a674e
sub edi, dword [ebp - 0x10]
lea ecx, [ecx + edx*4]
sub esi, edx
nop
mov eax, dword [ecx + edi]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub esi, 1
jne 0x4a6740
sub dword [ebp - 0x14], 1
jns 0x4a65c2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8