Function at 0x4071b0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
mov esi, eax
test esi, esi
je 0x407462
push edi
mov edi, 0x20
push edi
push 0x4c4700
push 0x4c2fa0
mov dword [0x4c4724], edi
mov dword [0x4c4728], edi
call fcn.00466150
push edi
push 0x4c4700
push 0x4c2d80
call fcn.00466150
add esp, 0x18
xor eax, eax
mov ecx, 0x78
mov edi, 0x4c2fc0
rep stosd dword es:[edi], eax
mov ecx, 0x78
mov edi, 0x4c2da0
rep stosd dword es:[edi], eax
mov dword [0x4c472c], 0xe
mov ecx, 0x4c2d60
mov eax, esi
mov edx, 8
movzx esi, byte [eax]
shl esi, 0x18
mov dword [ecx], esi
movzx esi, byte [eax + 1]
inc eax
shl esi, 0x10
or dword [ecx], esi
movzx esi, byte [eax + 1]
inc eax
shl esi, 8
or dword [ecx], esi
movzx esi, byte [eax + 1]
or dword [ecx], esi
inc eax
inc eax
add ecx, 4
sub edx, 1
jne 0x407220
xor esi, esi
mov edi, edi
cmp esi, 0x78
jge 0x4073f1
mov edi, dword [esi*4 + 0x4c2d60]
mov eax, esi
cdq
and edx, 7
add eax, edx
mov ecx, esi
sar eax, 3
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x40727a
dec ecx
or ecx, 0xfffffff8
inc ecx
lea edx, [ecx + eax*8]
add eax, eax
add eax, eax
add eax, eax
sub ecx, eax
inc esi
cmp esi, 8
mov dword [edx*4 + 0x4c2fc0], edi
mov dword [ecx*4 + 0x4c2f60], edi
jl 0x407250
cmp esi, 0x78
jge 0x4073f1
push ebp
mov ebp, 0x4a70f0
push ebx
lea esp, [esp]
mov eax, dword [0x4c2d7c]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + 0x4a3ef0]
movsx ecx, byte [ebp]
xor edx, ecx
mov ecx, eax
sar ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x4a3ef0]
shl edx, 8
xor edx, ecx
mov ecx, eax
and ecx, 0xff
movzx ecx, byte [ecx + 0x4a3ef0]
sar eax, 0x18
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x4a3ef0]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [0x4c2d60], edx
inc ebp
mov eax, 0x4c2d64
mov ecx, dword [eax - 4]
xor dword [eax], ecx
add eax, 4
cmp eax, 0x4c2d70
jl 0x407318
mov eax, dword [0x4c2d6c]
mov edx, eax
sar edx, 0x18
and edx, 0xff
movsx ecx, byte [edx + 0x4a3ef0]
mov edx, eax
sar edx, 0x10
and edx, 0xff
movzx edx, byte [edx + 0x4a3ef0]
shl ecx, 8
xor ecx, edx
mov edx, eax
sar edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x4a3ef0]
shl ecx, 8
and eax, 0xff
movzx eax, byte [eax + 0x4a3ef0]
xor ecx, edx
shl ecx, 8
xor ecx, eax
xor dword [0x4c2d70], ecx
mov eax, 0x4c2d74
mov ecx, dword [eax - 4]
xor dword [eax], ecx
add eax, 4
cmp eax, 0x4c2d80
jl 0x407388
mov ebx, 0x4c2d60
lea esp, [esp]
cmp esi, 0x78
jge 0x4073ef
mov edi, dword [ebx]
mov eax, esi
cdq
and edx, 7
add eax, edx
mov ecx, esi
sar eax, 3
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4073c1
dec ecx
or ecx, 0xfffffff8
inc ecx
lea edx, [ecx + eax*8]
add eax, eax
add eax, eax
add eax, eax
sub ecx, eax
add ebx, 4
inc esi
cmp ebx, 0x4c2d80
mov dword [edx*4 + 0x4c2fc0], edi
mov dword [ecx*4 + 0x4c2f60], edi
jl 0x4073a0
cmp esi, 0x78
jl 0x4072b0
pop ebx
pop ebp
mov ecx, 0x4c2dc0
mov edx, 8
jmp 0x407400
mov eax, dword [ecx]
mov esi, eax
sar esi, 0x18
and esi, 0xff
mov esi, dword [esi*4 + 0x4a60f0]
mov edi, eax
sar edi, 0x10
and edi, 0xff
xor esi, dword [edi*4 + 0x4a64f0]
mov edi, eax
sar edi, 8
and edi, 0xff
xor esi, dword [edi*4 + 0x4a68f0]
and eax, 0xff
xor esi, dword [eax*4 + 0x4a6cf0]
add ecx, 4
sub edx, 1
mov dword [ecx - 4], esi
jne 0x407400
cmp ecx, 0x4c2f60
jl 0x4073f6
mov dword [0x4c4720], 1
pop edi
pop esi
ret