Function at 0x4c1b00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53eba0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x584200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp + 8]
mov edi, dword [edx + 0x48]
push 0
mov ecx, dword [ecx + 8]
cmp dword [edx + 0x5c], ecx
lea edi, [edi + 0x1f]
cmovb ecx, dword [edx + 0x5c]
shr edi, 5
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x44]
push edi
mov dword [ebp - 0x10], edi
call fcn.0043c150
mov esi, eax
mov dword [ebp - 0x20], esi
test edi, edi
je 0x4c1b73
lea ecx, [edi - 1]
mov dword [esi], 0
test ecx, ecx
je 0x4c1b73
xor eax, eax
lea edi, [esi + 4]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x48]
sub eax, 1
mov dword [ebp - 0x24], eax
js 0x4c1e64
mov ecx, dword [ecx + 0x48]
dec ecx
mov eax, ecx
shr eax, 5
cmp eax, edi
jae 0x4c1ce9
mov eax, dword [esi + eax*4]
and ecx, 0x1f
shr eax, cl
test al, 1
je 0x4c1ce9
xor edx, edx
xor edi, edi
cmp dword [ebp - 0x10], edx
jbe 0x4c1d08
mov ecx, dword [esi + edx*4]
lea eax, [ecx + ecx]
or eax, edi
mov edi, ecx
mov dword [esi + edx*4], eax
inc edx
shr edi, 0x1f
cmp edx, dword [ebp - 0x10]
jb 0x4c1bb3
mov ecx, dword [ebp - 0x18]
xor edx, edx
mov edi, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x44]
mov eax, ecx
cmp edi, 2
jb 0x4c1cc7
lea eax, [edi - 1]
lea eax, [esi + eax*4]
mov dword [ebp - 0x28], eax
lea eax, [edi - 1]
lea eax, [ecx + eax*4]
cmp esi, eax
ja 0x4c1bfd
mov eax, ecx
cmp dword [ebp - 0x28], ecx
jae 0x4c1cc7
mov dword [ebp - 0x1c], ecx
cmp edi, 0x10
jb 0x4c1c8d
mov eax, edi
mov dword [ebp - 0x1c], ecx
and eax, 0xf
mov dword [ebp - 0x28], eax
mov eax, edi
sub eax, dword [ebp - 0x28]
mov edi, ecx
mov dword [ebp - 0x34], eax
sub edi, esi
lea eax, [ecx + 0x30]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0x10]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x10
lea eax, [eax + 0x40]
lea edi, [edi + 0x40]
movups xmm1, xmmword [edi - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [edi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x34]
jb 0x4c1c32
cmp dword [ebp - 0x28], 2
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
jb 0x4c1cc0
and edi, 0xfffffffe
lea eax, [esi + edx*4]
sub ecx, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ecx
mov ecx, edi
mov edi, dword [ebp - 0x30]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm1, qword [edi + eax - 8]
add edx, 2
pxor xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, ecx
jb 0x4c1ca0
mov edi, dword [ebp - 0x10]
cmp edx, edi
jae 0x4c1d0b
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x34], edi
lea ecx, [esi + edx*4]
mov dword [ebp - 0x1c], eax
sub edi, edx
mov esi, eax
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edi, 1
jne 0x4c1cd6
mov esi, dword [ebp - 0x20]
jmp 0x4c1d08
xor edx, edx
xor edi, edi
cmp dword [ebp - 0x10], edx
jbe 0x4c1d08
mov ecx, dword [esi + edx*4]
lea eax, [ecx + ecx]
or eax, edi
mov edi, ecx
mov dword [esi + edx*4], eax
inc edx
shr edi, 0x1f
cmp edx, dword [ebp - 0x10]
jb 0x4c1cf2
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov edx, ecx
mov eax, dword [ebp + 0xc]
shr edx, 5
cmp edx, dword [eax + 8]
jae 0x4c1e57
mov eax, dword [eax + 0xc]
and ecx, 0x1f
mov eax, dword [eax + edx*4]
shr eax, cl
test al, 1
je 0x4c1e57
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c1e57
cmp eax, 2
jb 0x4c1e36
dec eax
lea eax, [edx + eax*4]
cmp esi, eax
ja 0x4c1d65
mov eax, dword [ebp - 0x14]
dec eax
lea eax, [esi + eax*4]
cmp eax, edx
jae 0x4c1e36
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x4c1df2
mov edi, eax
and edi, 0xf
sub eax, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], eax
mov edi, edx
sub edi, esi
lea eax, [edx + 0x30]
mov dword [ebp - 0x34], eax
lea eax, [esi + 0x10]
mov dword [ebp - 0x30], edi
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x10
lea eax, [eax + 0x40]
lea edi, [edi + 0x40]
movups xmm1, xmmword [edi - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edi - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [edi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 0x2c]
jb 0x4c1d94
cmp dword [ebp - 0x28], 2
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
jb 0x4c1e31
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffe
mov edi, edx
sub edi, esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edi
lea eax, [esi + ecx*4]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0x34]
nop dword [eax + eax]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm1, qword [eax + esi - 8]
add ecx, 2
pxor xmm1, xmm0
movq qword [eax - 8], xmm1
cmp ecx, dword [ebp - 0x30]
jb 0x4c1e10
mov esi, dword [ebp - 0x20]
cmp ecx, dword [ebp - 0x14]
jae 0x4c1e57
sub edx, esi
lea eax, [esi + ecx*4]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x34]
sub edx, ecx
mov ecx, dword [eax + edi]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
sub edx, 1
jne 0x4c1e46
mov edi, dword [ebp - 0x10]
sub dword [ebp - 0x24], 1
mov ecx, dword [ebp - 0x18]
jns 0x4c1b85
mov ecx, dword [ecx + 0x48]
and ecx, 0x1f
je 0x4c1e78
mov eax, 1
shl eax, cl
dec eax
and dword [esi + edi*4 - 4], eax
mov edi, dword [ebp - 0x18]
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x5c]
cmp eax, esi
je 0x4c1ebc
shl ecx, 2
test ecx, ecx
je 0x4c1ebc
test eax, eax
je 0x4c1eac
push ecx
test esi, esi
je 0x4c1ea1
push esi
push eax
call fcn.004ce550
add esp, 0xc
jmp 0x4c1ebc
push 0
push eax
call fcn.004cf050
add esp, 0xc
call fcn.004d96df
mov dword [eax], 0x16
call fcn.004d9568
lea eax, [edi + 0x54]
mov dword [ebp - 4], 0
test esi, esi
je 0x4c1ee2
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push esi
call fcn.0043a040
mov eax, dword [ebp - 0x18]
add esp, 4
add eax, 0x54
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8