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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5698a0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5bf500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x70], edx
cmp byte [edx + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
jne 0x4e4619
call dword [0x57038c]
test eax, eax
je 0x4e4570
call dword [0x5702ec]
sub esp, 0x18
xor edx, edx
mov ecx, esp
mov dword [ebp - 0x74], esp
mov eax, 0x16
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
cmp byte [str.Object_not_Initialized], dl
cmove eax, edx
push eax
push str.Object_not_Initialized
call fcn.004027f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.004e37c0
mov esi, eax
push esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 1
call fcn.0051fa77
mov byte [ebp - 4], 2
lea eax, [esi + 0xc]
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push eax
mov dword [ebp - 0x34], 0x59d704
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00402660
push 0x5bc210
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 1
push eax
call fcn.00524e20
mov esi, dword [ebp + 8]
movzx ebx, byte [esi]
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 4]
shl eax, 0x10
shl ebx, 0x18
or ebx, eax
shl ecx, 0x18
movzx eax, byte [esi + 2]
shl eax, 8
or ebx, eax
movzx eax, byte [esi + 3]
or ebx, eax
movzx eax, byte [esi + 5]
shl eax, 0x10
or ecx, eax
xor ebx, dword [edx + 0x1e8]
movzx eax, byte [esi + 6]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x5c], ebx
movzx eax, byte [esi + 7]
or ecx, eax
movzx eax, byte [esi + 8]
xor ecx, dword [edx + 0x1ec]
mov dword [ebp - 0x68], ecx
movzx ecx, byte [esi + 9]
shl ecx, 0x10
shl eax, 0x18
or eax, ecx
movzx ecx, byte [esi + 0xa]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 0xb]
or eax, ecx
movzx ecx, byte [esi + 0xd]
xor eax, dword [edx + 0x1f0]
movzx edx, byte [esi + 0xc]
shl ecx, 0x10
shl edx, 0x18
or edx, ecx
movzx ecx, byte [esi + 0xe]
shl ecx, 8
mov dword [ebp - 0x60], ecx
movzx ecx, byte [esi + 0xf]
or dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x60]
or ecx, edx
mov edx, dword [ebp - 0x70]
xor ecx, dword [edx + 0x1f4]
mov esi, dword [edx + 0x3d0]
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x6c], esi
cmp esi, 1
jle 0x4e481f
add edx, 0x210
mov dword [ebp - 0x5c], edx
lea edx, [esi - 1]
mov dword [ebp - 0x74], edx
mov edx, ecx
mov ecx, dword [ebp - 0x68]
sar ecx, 0x18
and ecx, 0xff
sar edx, 8
and edx, 0xff
mov edi, dword [edx*4 + 0x589990]
mov edx, eax
xor edi, dword [ecx*4 + 0x589190]
mov ecx, ebx
sar ecx, 0x10
and ecx, 0xff
sar edx, 0x18
and edx, 0xff
xor edi, dword [ecx*4 + 0x58bc10]
mov esi, dword [edx*4 + 0x589190]
movzx ecx, al
mov edx, dword [ebp - 0x60]
xor edi, dword [ecx*4 + 0x589590]
mov ecx, dword [ebp - 0x5c]
xor edi, dword [ecx - 4]
mov ecx, dword [ebp - 0x68]
sar ecx, 0x10
and ecx, 0xff
xor esi, dword [ecx*4 + 0x58bc10]
mov ecx, ebx
sar ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x589990]
movzx ecx, dl
sar edx, 0x18
and edx, 0xff
xor esi, dword [ecx*4 + 0x589590]
mov ecx, dword [ebp - 0x5c]
mov edx, dword [edx*4 + 0x589190]
xor esi, dword [ecx]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
sar eax, 8
and eax, 0xff
xor edx, dword [ecx*4 + 0x58bc10]
mov ecx, dword [ebp - 0x68]
sar ecx, 8
and ecx, 0xff
xor edx, dword [ecx*4 + 0x589990]
movzx ecx, bl
sar ebx, 0x18
and ebx, 0xff
xor edx, dword [ecx*4 + 0x589590]
mov ecx, dword [ebp - 0x5c]
xor edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x60]
sar ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x58bc10]
xor ecx, dword [eax*4 + 0x589990]
mov eax, dword [ebp - 0x68]
xor ecx, dword [ebx*4 + 0x589190]
movzx eax, al
mov dword [ebp - 0x68], edi
xor ecx, dword [eax*4 + 0x589590]
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x5c], 0x20
xor ecx, dword [eax - 8]
mov eax, esi
dec dword [ebp - 0x74]
mov ebx, ecx
mov ecx, edx
mov dword [ebp - 0x60], ecx
jne 0x4e46e3
mov edx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 0x5c], ebx
shl esi, 5
mov dword [ebp - 0x6c], esi
mov edi, dword [ebp - 0x70]
mov ebx, dword [esi + edx + 0x1e8]
mov ecx, ebx
mov esi, dword [ebp - 0x5c]
mov edx, esi
sar edx, 0x18
and edx, 0xff
sar ecx, 0x18
xor cl, byte [edx + 0x58ae10]
mov edx, dword [ebp - 0x64]
mov byte [edx], cl
mov ecx, ebx
mov edx, dword [ebp - 0x60]
sar edx, 0x10
and edx, 0xff
sar ecx, 0x10
xor cl, byte [edx + 0x58ae10]
mov edx, dword [ebp - 0x64]
mov byte [edx + 1], cl
mov edx, eax
sar edx, 8
mov ecx, ebx
and edx, 0xff
sar ecx, 8
xor cl, byte [edx + 0x58ae10]
mov edx, dword [ebp - 0x64]
mov byte [edx + 2], cl
mov edx, dword [ebp - 0x68]
movzx ecx, dl
sar edx, 0x18
and edx, 0xff
movzx ecx, byte [ecx + 0x58ae10]
xor cl, bl
mov ebx, dword [ebp - 0x64]
mov byte [ebx + 3], cl
mov ecx, dword [ebp - 0x6c]
mov ebx, dword [ebp - 0x70]
mov ebx, dword [ecx + ebx + 0x1ec]
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + 0x58ae10]
mov edx, dword [ebp - 0x64]
mov byte [edx + 4], cl
mov edx, esi
sar edx, 0x10
mov ecx, ebx
and edx, 0xff
sar ecx, 0x10
xor cl, byte [edx + 0x58ae10]
mov edx, dword [ebp - 0x64]
mov byte [edx + 5], cl
mov ecx, ebx
mov edx, dword [ebp - 0x60]
sar edx, 8
and edx, 0xff
sar ecx, 8
xor cl, byte [edx + 0x58ae10]
mov edx, dword [ebp - 0x64]
mov byte [edx + 6], cl
movzx ecx, al
movzx ecx, byte [ecx + 0x58ae10]
xor cl, bl
mov byte [edx + 7], cl
mov edx, eax
mov ecx, dword [ebp - 0x6c]
sar edx, 0x18
and edx, 0xff
mov ebx, dword [ecx + edi + 0x1f0]
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + 0x58ae10]
mov edx, dword [ebp - 0x64]
mov byte [edx + 8], cl
mov ecx, ebx
mov edx, dword [ebp - 0x68]
sar edx, 0x10
and edx, 0xff
sar ecx, 0x10
xor cl, byte [edx + 0x58ae10]
mov edx, dword [ebp - 0x64]
sar eax, 0x10
and eax, 0xff
mov byte [edx + 9], cl
mov edx, esi
mov esi, dword [ebp - 0x64]
mov ecx, ebx
sar ecx, 8
sar edx, 8
and edx, 0xff
xor cl, byte [edx + 0x58ae10]
mov byte [esi + 0xa], cl
mov ecx, dword [ebp - 0x60]
movzx ecx, cl
movzx ecx, byte [ecx + 0x58ae10]
xor cl, bl
mov ebx, dword [ebp - 0x60]
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0x6c]
sar ebx, 0x18
and ebx, 0xff
mov edx, dword [ecx + edi + 0x1f4]
mov ecx, edx
sar ecx, 0x18
xor cl, byte [ebx + 0x58ae10]
mov byte [esi + 0xc], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + 0x58ae10]
mov eax, edx
mov byte [esi + 0xd], cl
mov ecx, dword [ebp - 0x68]
sar ecx, 8
and ecx, 0xff
sar eax, 8
xor al, byte [ecx + 0x58ae10]
mov byte [esi + 0xe], al
mov eax, dword [ebp - 0x5c]
movzx eax, al
mov al, byte [eax + 0x58ae10]
xor al, dl
mov byte [esi + 0xf], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0051ece9
mov esp, ebp
pop ebp
ret 8