Function at 0x4776d0
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push 0xffffffffffffffff
push 0x4d426b
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x507334]
xor eax, esp
mov dword [esp + 0x128], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x507334]
xor eax, esp
push eax
lea eax, [esp + 0x144]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x158]
mov eax, dword [esp + 0x154]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x18], eax
mov esi, edx
je 0x477729
cmp ebp, ebx
ja 0x477730
xor eax, eax
jmp 0x4779ee
xor eax, eax
push 0x10
push ecx
mov dword [esp + 0x135], eax
mov dword [esp + 0x139], eax
mov dword [esp + 0x13d], eax
mov word [esp + 0x141], ax
mov byte [esp + 0x143], al
lea eax, [esp + 0x134]
push 0x10
push eax
mov byte [esp + 0x13c], bl
call fcn.004891f8
push 0xec
lea ecx, [esp + 0x4c]
push ebx
push ecx
mov dword [esp + 0x50], ebx
call fcn.00489f10
add esp, 0x1c
cmp esi, ebx
mov dword [esp + 0x124], ebx
je 0x477940
mov edx, dword [esi]
push 8
push edx
mov dword [esp + 0x12c], 0xa
call fcn.0048f21e
mov edi, eax
mov eax, dword [esi]
push 8
push eax
and edi, 0xff00ff00
call fcn.0048f22c
mov ecx, dword [esi + 4]
and eax, 0xff00ff
or eax, edi
push 8
push ecx
mov dword [esp + 0x4c], eax
call fcn.0048f21e
mov edx, dword [esi + 4]
mov edi, eax
push 8
push edx
and edi, 0xff00ff00
call fcn.0048f22c
and eax, 0xff00ff
or eax, edi
mov dword [esp + 0x58], eax
mov eax, dword [esi + 8]
push 8
push eax
call fcn.0048f21e
mov ecx, dword [esi + 8]
mov edi, eax
push 8
push ecx
and edi, 0xff00ff00
call fcn.0048f22c
mov edx, dword [esi + 0xc]
and eax, 0xff00ff
or eax, edi
push 8
push edx
mov dword [esp + 0x74], eax
call fcn.0048f21e
mov edi, eax
mov eax, dword [esi + 0xc]
push 8
push eax
and edi, 0xff00ff00
call fcn.0048f22c
and eax, 0xff00ff
or eax, edi
mov dword [esp + 0x80], eax
movzx ecx, byte [esp + 0x82]
mov ecx, dword [ecx*4 + 0x4e2970]
xor ecx, 0x1000000
and ecx, 0xff000000
movzx edx, ah
mov edx, dword [edx*4 + 0x4e2d70]
and edx, 0xff0000
xor ecx, edx
mov edx, eax
shr edx, 0x18
movzx edx, byte [edx*4 + 0x4e2570]
xor ecx, edx
mov edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x4e2170]
and edx, 0xff00
xor ecx, edx
xor ecx, dword [esp + 0x74]
add esp, 0x40
mov dword [esp + 0x44], ecx
xor ecx, dword [esp + 0x38]
mov esi, 0x4e4274
mov dword [esp + 0x48], ecx
xor ecx, dword [esp + 0x3c]
mov dword [esp + 0x4c], ecx
xor ecx, eax
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x38]
mov edx, dword [ecx + 0x18]
add ecx, 0x10
mov edi, edx
movzx eax, dh
mov eax, dword [eax*4 + 0x4e2d70]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x4e2970]
and eax, 0xff0000
and edi, 0xff000000
xor eax, edi
mov edi, edx
and edx, 0xff
mov edx, dword [edx*4 + 0x4e2170]
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4e2570]
xor eax, edi
and edx, 0xff00
xor eax, edx
xor eax, dword [ecx - 4]
add esi, 4
xor eax, dword [esi - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ecx]
xor edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ecx + 4]
xor eax, edx
mov dword [ecx + 0x14], eax
mov edx, dword [ecx + 8]
xor edx, eax
cmp esi, 0x4e4298
mov dword [ecx + 0x18], edx
jne 0x4778c2
lea eax, [esp + 0x17]
push eax
mov byte [esp + 0x1b], bl
lea eax, [ebp + ebp*4]
add eax, eax
lea ebx, [esp + 0x28]
call fcn.004530bc
xor ebx, ebx
mov dword [esp + 0x14c], ebx
mov esi, dword [esp + 0x28]
cmp esi, ebx
mov edi, dword [esp + 0x2c]
je 0x477973
mov ecx, edi
sub ecx, esi
jne 0x477978
call fcn.0048990e
push ebp
push ebx
push esi
call fcn.00489f10
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x1c], ebx
je 0x477991
mov edx, edi
sub edx, esi
jne 0x477996
call fcn.0048990e
mov eax, dword [esp + 0x15c]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
push ebp
push eax
lea eax, [esp + 0x140]
mov ecx, esi
call fcn.004571be
add esp, 0x14
cmp esi, ebx
je 0x4779c7
sub edi, esi
jne 0x4779cc
call fcn.0048990e
mov ecx, dword [esp + 0x18]
push ebp
push esi
push ebp
push ecx
call fcn.004891f8
add esp, 0x10
cmp esi, ebx
je 0x4779e9
push esi
call fcn.00489bc2
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x144]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.0048f726
add esp, 0x13c
ret