Function at 0x4c1200
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53eb80
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
push edi
mov eax, dword [0x584200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [esi + 0x4c]
sub eax, dword [esi + 0x50]
cmp eax, 0x20
jae 0x4c1252
push dword [ebp + 8]
call fcn.004994c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x40]
lea ecx, [ebp - 0x4c]
shl eax, 2
push 0
push eax
mov dword [ebp - 0x3c], eax
call fcn.0043c150
mov esi, dword [esi + 0x40]
mov ecx, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], esi
lea eax, [esi + esi*2]
mov dword [ebp - 0x1c], 1
lea edi, [ecx + esi*4]
mov dword [ebp - 0x2c], 0
lea edx, [ecx + esi*8]
mov dword [ebp - 0x24], edi
lea eax, [ecx + eax*4]
mov dword [ebp - 0x14], edx
lea ecx, [esi + esi*2]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x4c12a8
mov edi, dword [ebp - 0x10]
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x34]
mov dword [eax], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
cmp edx, eax
je 0x4c12f5
shl ecx, 2
test ecx, ecx
je 0x4c12f5
test edx, edx
je 0x4c12e5
push ecx
test eax, eax
je 0x4c12da
push eax
push edx
call fcn.004ce550
add esp, 0xc
jmp 0x4c12f5
push 0
push edx
call fcn.004cf050
add esp, 0xc
call fcn.004d96df
mov dword [eax], 0x16
call fcn.004d9568
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, dword [ecx + 0x44]
mov ecx, dword [ecx + 0x40]
cmp edx, eax
je 0x4c1340
shl ecx, 2
test ecx, ecx
je 0x4c1340
test edx, edx
je 0x4c132c
push ecx
test eax, eax
je 0x4c1321
push eax
push edx
call fcn.004ce550
add esp, 0xc
jmp 0x4c1340
push 0
push edx
call fcn.004cf050
add esp, 0xc
call fcn.004d96df
mov dword [eax], 0x16
call fcn.004d9568
nop dword [eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x4c1421
mov ecx, 1
cmp esi, ecx
cmovb ecx, esi
mov dword [ebp + 8], ecx
nop word [eax + eax]
test ecx, ecx
je 0x4c13c4
cmp ecx, esi
jae 0x4c139e
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
shl eax, 2
mov dword [ebp - 0x30], eax
add esi, eax
nop dword [eax]
mov eax, dword [esi]
lea edx, [edx + 4]
inc ecx
mov dword [edx - 4], eax
lea esi, [esi + 4]
cmp ecx, edi
jb 0x4c1380
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
jmp 0x4c13a5
lea edx, [ecx*4]
mov eax, esi
mov esi, dword [ebp - 0x14]
sub eax, ecx
lea esi, [esi + eax*4]
test ecx, ecx
je 0x4c13c1
shr edx, 2
mov edi, esi
mov ecx, edx
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
cmp dword [edi + eax*4 - 4], 0
je 0x4c13d2
inc eax
mov dword [ebp - 0x1c], eax
mov esi, 1
cmp eax, esi
cmovb esi, eax
test esi, esi
je 0x4c140d
dec eax
cmp eax, esi
jb 0x4c13fd
mov ecx, eax
sub ecx, esi
lea edx, [edi + ecx*4]
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx - 4]
mov dword [edi + eax*4], ecx
dec eax
cmp eax, esi
jae 0x4c13f0
mov edx, dword [ebp - 0x14]
test esi, esi
je 0x4c140d
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x24]
add dword [ebp - 0x2c], 0x20
mov eax, dword [edx]
mov esi, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x4c1360
xor edi, edi
test al, 1
jne 0x4c142e
shr eax, 1
inc edi
test al, 1
je 0x4c1427
add dword [ebp - 0x2c], edi
cmp eax, 1
jne 0x4c1458
mov eax, esi
test esi, esi
je 0x4c144f
lea ecx, [esi - 1]
lea ecx, [edx + ecx*4]
cmp dword [ecx], 0
jne 0x4c144f
sub ecx, 4
sub eax, 1
jne 0x4c1442
cmp eax, 1
je 0x4c17ee
cmp edi, 1
jne 0x4c14bb
xor edi, edi
mov dword [ebp + 8], esi
test esi, esi
je 0x4c1489
lea edx, [edx + esi*4]
add edx, 0xfffffffc
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx - 4]
mov eax, ecx
shr eax, 1
or eax, edi
mov edi, ecx
shl edi, 0x1f
sub dword [ebp + 8], 1
mov dword [edx + 4], eax
jne 0x4c1470
xor edx, edx
xor esi, esi
cmp dword [ebp - 0x1c], edx
jbe 0x4c154a
mov edi, dword [ebp - 0x24]
nop dword [eax]
mov ecx, dword [edi + edx*4]
lea eax, [ecx + ecx]
or eax, esi
mov esi, ecx
mov dword [edi + edx*4], eax
inc edx
shr esi, 0x1f
cmp edx, dword [ebp - 0x1c]
jb 0x4c14a0
jmp 0x4c154a
mov dword [ebp + 8], 0
test edi, edi
je 0x4c1505
mov dword [ebp - 0x30], esi
test esi, esi
je 0x4c1505
mov eax, 0x20
sub eax, edi
dec esi
mov dword [ebp - 0x38], eax
lea esi, [edx + esi*4]
nop dword [eax + eax]
mov edx, dword [esi]
lea esi, [esi - 4]
mov ecx, edi
mov eax, edx
shr eax, cl
or eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x38]
mov dword [esi + 4], eax
mov eax, edx
shl eax, cl
sub dword [ebp - 0x30], 1
mov dword [ebp + 8], eax
jne 0x4c14e0
xor esi, esi
jmp 0x4c150b
xor esi, esi
test edi, edi
je 0x4c154a
xor ecx, ecx
mov dword [ebp + 8], ecx
cmp dword [ebp - 0x1c], ecx
jbe 0x4c154a
mov eax, 0x20
sub eax, edi
mov dword [ebp - 0x38], eax
nop
mov eax, dword [ebp - 0x24]
mov edx, dword [eax + ecx*4]
mov ecx, edi
mov eax, edx
shl eax, cl
mov ecx, dword [ebp - 0x24]
or eax, esi
mov esi, dword [ebp + 8]
mov dword [ecx + esi*4], eax
mov esi, edx
mov ecx, dword [ebp - 0x38]
shr esi, cl
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp - 0x1c]
jb 0x4c1520
mov ecx, dword [ebp - 0x24]
test esi, esi
je 0x4c155b
mov edi, dword [ebp - 0x1c]
mov dword [ecx + edi*4], esi
inc edi
mov dword [ebp - 0x1c], edi
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
cmp dword [eax + esi*4 - 4], 0
jne 0x4c1576
cmp dword [edx + esi*4 - 4], 0
jne 0x4c1576
dec esi
mov dword [ebp - 0x28], esi
mov eax, dword [eax + esi*4 - 4]
mov edx, dword [edx + esi*4 - 4]
mov dword [ebp + 8], eax
cmp eax, edx
jae 0x4c1594
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
cmp eax, edx
cmovae edi, ecx
cmovae ecx, dword [ebp - 0x10]
mov eax, ecx
mov dword [ebp + 8], edi
mov edi, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x10], eax
test esi, esi
je 0x4c16cd
mov eax, dword [ebp - 0x20]
cmp esi, 2
jb 0x4c16a5
mov ecx, dword [ebp - 0x14]
lea eax, [eax + esi*4]
add ecx, 0xfffffffc
add eax, 0xfffffffc
cmp dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
lea ecx, [ecx + esi*4]
ja 0x4c15e0
cmp ecx, eax
jae 0x4c16a5
cmp esi, 0x10
jb 0x4c166a
mov edi, dword [ebp - 0x14]
mov ecx, esi
and ecx, 0xf
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
lea eax, [ecx + 0x30]
sub ecx, edi
mov dword [ebp - 0x38], eax
lea eax, [edi + 0x10]
mov edi, dword [ebp - 0x38]
nop dword [eax]
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 [ecx + 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 - 0x30]
jb 0x4c1610
cmp dword [ebp - 0x24], 2
mov edi, dword [ebp - 0x1c]
jb 0x4c169e
jmp 0x4c166f
mov ecx, eax
sub ecx, dword [ebp - 0x14]
mov eax, esi
and eax, 0xfffffffe
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
lea eax, [eax + edx*4]
nop dword [eax]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm1, qword [eax + ecx - 8]
add edx, 2
pxor xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, dword [ebp - 0x38]
jb 0x4c1680
cmp edx, esi
jae 0x4c16ca
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
sub eax, edi
mov dword [ebp - 0x38], eax
lea ecx, [edi + edx*4]
mov edi, esi
sub edi, edx
mov esi, eax
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edi, 1
jne 0x4c16b6
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
xor edx, edx
test edi, edi
je 0x4c17e3
cmp edi, 2
jb 0x4c17c2
lea ecx, [eax - 4]
mov eax, dword [ebp + 8]
lea ecx, [ecx + edi*4]
lea eax, [eax + edi*4]
add eax, 0xfffffffc
cmp dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
ja 0x4c16ff
cmp ecx, eax
jae 0x4c17c5
cmp edi, 0x10
jb 0x4c178a
mov esi, dword [ebp - 0x10]
mov ecx, edi
and ecx, 0xf
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ecx + 0x30]
sub ecx, esi
mov dword [ebp - 0x38], eax
lea eax, [esi + 0x10]
mov esi, dword [ebp - 0x38]
nop dword [eax + eax]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x10
lea eax, [eax + 0x40]
lea esi, [esi + 0x40]
movups xmm1, xmmword [esi - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [ecx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [esi - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [esi - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x30]
jb 0x4c1730
cmp dword [ebp - 0x24], 2
mov esi, dword [ebp - 0x28]
jb 0x4c17be
jmp 0x4c178f
mov ecx, eax
sub ecx, dword [ebp - 0x10]
mov eax, edi
and eax, 0xfffffffe
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
lea eax, [eax + edx*4]
nop dword [eax]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm1, qword [ecx + eax - 8]
add edx, 2
pxor xmm1, xmm0
movq qword [eax - 8], xmm1
cmp edx, dword [ebp - 0x38]
jb 0x4c17a0
cmp edx, edi
jae 0x4c17e3
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov esi, eax
sub esi, dword [ebp - 0x10]
sub edi, edx
lea ecx, [ecx + edx*4]
mov eax, dword [ecx + esi]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
sub edi, 1
jne 0x4c17d2
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24], edi
jmp 0x4c1340
mov eax, dword [ebp - 0x2c]
mov edi, 0x20
cmp eax, edi
jb 0x4c193d
mov ecx, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp + 8], eax
mov esi, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], esi
mov ecx, dword [ecx + 0x48]
lea eax, [ecx + 0x1f]
and eax, 0xffffffe0
cmp eax, 0x20
jbe 0x4c184f
mov edi, dword [ebp - 0x10]
mov edx, 1
mov esi, dword [ebp - 0x18]
nop dword [eax + eax]
mov eax, dword [edi + 4]
lea edi, [edi + 4]
mov dword [edi - 4], eax
inc edx
mov ecx, dword [esi + 0x48]
lea eax, [ecx + 0x1f]
shr eax, 5
cmp edx, eax
jb 0x4c1830
mov esi, dword [ebp - 0x38]
mov edi, 0x20
lea eax, [ecx + 0x1f]
mov ecx, dword [ebp - 0x10]
shr eax, 5
mov dword [ecx + eax*4 - 4], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x38], ecx
cmp ecx, 0x20
jae 0x4c1906
mov eax, edi
mov edx, 0
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x4c18a4
lea edi, [ecx + edx]
cmp edi, 0x20
jae 0x4c189a
mov ecx, edx
mov eax, esi
shr eax, cl
mov ecx, edi
and eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x38]
jmp 0x4c189c
xor eax, eax
inc edx
xor esi, eax
cmp edx, dword [ebp - 0x30]
jb 0x4c1880
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x50]
mov eax, edx
and eax, 0x1f
je 0x4c18c5
mov ecx, 0x20
shr edx, 5
sub ecx, eax
mov eax, esi
shr eax, cl
xor dword [edi + edx*4], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x4c]
mov ecx, eax
shr eax, 5
mov edx, dword [edi + eax*4 - 4]
lea edi, [edi + eax*4]
and ecx, 0x1f
je 0x4c191d
mov eax, esi
shl eax, cl
xor eax, edx
mov dword [edi - 4], eax
mov edi, 0x20
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov edx, dword [eax + 0x4c]
mov eax, edx
and edx, 0x1f
shr eax, 5
sub ecx, edx
shr esi, cl
mov ecx, dword [ebp - 0x10]
xor dword [ecx + eax*4], esi
jmp 0x4c192a
mov edi, dword [ebp - 0x10]
mov eax, ecx
shr eax, 5
and ecx, 0x1f
lea edx, [edi + eax*4]
mov eax, esi
shl eax, cl
xor dword [edx - 4], eax
jmp 0x4c18a7
mov ecx, dword [ebp - 0x10]
xor edx, esi
mov dword [edi - 4], edx
mov edi, 0x20
mov eax, dword [ebp - 0x2c]
sub eax, 0x20
sub dword [ebp + 8], 1
mov dword [ebp - 0x2c], eax
jne 0x4c1807
mov edx, dword [ebp - 0x10]
test eax, eax
je 0x4c1a2a
mov esi, dword [edx]
mov ecx, edi
push eax
sub ecx, eax
mov eax, dword [ebp - 0x18]
shl esi, cl
mov eax, dword [eax + 0x48]
add eax, 0x1f
shr eax, 5
push eax
push edx
call fcn.0045ced0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [eax + 0x50]
mov dword [ebp + 8], ecx
cmp ecx, 0x20
jae 0x4c19ae
mov eax, edi
mov edx, 0
sub eax, ecx
mov dword [ebp - 0x38], eax
je 0x4c19c3
lea edi, [ecx + edx]
cmp edi, 0x20
jae 0x4c199d
mov ecx, edx
mov eax, esi
shr eax, cl
mov ecx, edi
and eax, 1
shl eax, cl
mov ecx, dword [ebp + 8]
jmp 0x4c199f
xor eax, eax
inc edx
xor esi, eax
cmp edx, dword [ebp - 0x38]
jb 0x4c1983
mov edi, 0x20
jmp 0x4c19c3
mov edx, dword [ebp - 0x10]
mov eax, ecx
shr eax, 5
and ecx, 0x1f
lea edx, [edx + eax*4]
mov eax, esi
shl eax, cl
xor dword [edx - 4], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x50]
mov eax, edx
and eax, 0x1f
je 0x4c19e1
mov ecx, edi
shr edx, 5
sub ecx, eax
mov eax, esi
shr eax, cl
mov ecx, dword [ebp - 0x10]
xor dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + 0x4c]
mov ecx, eax
shr eax, 5
lea edi, [edx + eax*4]
mov edx, dword [edi - 4]
and ecx, 0x1f
je 0x4c1a22
mov eax, esi
shl eax, cl
mov ecx, 0x20
xor eax, edx
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0x4c]
mov eax, edx
and edx, 0x1f
shr eax, 5
sub ecx, edx
mov edx, dword [ebp - 0x10]
shr esi, cl
xor dword [edx + eax*4], esi
jmp 0x4c1a2a
xor edx, esi
mov dword [edi - 4], edx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x5c]
cmp eax, edx
je 0x4c1a6e
shl ecx, 2
test ecx, ecx
je 0x4c1a6e
test eax, eax
je 0x4c1a5e
push ecx
test edx, edx
je 0x4c1a53
push edx
push eax
call fcn.004ce550
add esp, 0xc
jmp 0x4c1a6e
push 0
push eax
call fcn.004cf050
add esp, 0xc
call fcn.004d96df
mov dword [eax], 0x16
call fcn.004d9568
mov ecx, dword [ebp - 0x3c]
mov eax, 0x3fffffff
mov edx, dword [ebp - 0x34]
cmp ecx, eax
mov edi, edx
mov dword [ebp - 4], 0
cmova ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call fcn.0043a040
add esp, 4
lea eax, [esi + 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4