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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
cmp byte [edi + 4], 0
je 0x45828d
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
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 ecx, 0x18
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 6]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 7]
or ecx, eax
xor ecx, dword [edi + 0x1ec]
movzx eax, byte [esi + 8]
movzx edx, byte [esi + 0xc]
mov dword [ebp - 4], 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 ebx, dword [edi + 0x1e8]
xor eax, dword [edi + 0x1f0]
shl ecx, 0x10
shl edx, 0x18
or edx, ecx
movzx ecx, byte [esi + 0xe]
shl ecx, 8
mov dword [ebp + 8], ecx
movzx ecx, byte [esi + 0xf]
or dword [ebp + 8], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [edi + 0x3d0]
or ecx, edx
xor ecx, dword [edi + 0x1f4]
mov dword [ebp - 8], ebx
mov dword [ebp + 8], ecx
mov dword [ebp - 0xc], esi
cmp esi, 1
jle 0x4580dc
lea edx, [edi + 0x210]
mov dword [ebp - 8], edx
lea edx, [esi - 1]
mov dword [ebp - 0x14], edx
nop
mov edx, ecx
mov ecx, dword [ebp - 4]
sar ecx, 0x18
and ecx, 0xff
sar edx, 8
and edx, 0xff
mov edi, dword [edx*4 + 0x649590]
xor edi, dword [ecx*4 + 0x649d90]
mov ecx, ebx
sar ecx, 0x10
and ecx, 0xff
mov edx, eax
xor edi, dword [ecx*4 + 0x64a190]
movzx ecx, al
sar edx, 0x18
xor edi, dword [ecx*4 + 0x649990]
mov ecx, dword [ebp - 8]
and edx, 0xff
xor edi, dword [ecx - 4]
mov esi, dword [edx*4 + 0x649d90]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
mov edx, dword [ebp + 8]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x64a190]
mov ecx, ebx
sar ecx, 8
and ecx, 0xff
xor esi, dword [ecx*4 + 0x649590]
movzx ecx, dl
sar edx, 0x18
xor esi, dword [ecx*4 + 0x649990]
mov ecx, dword [ebp - 8]
and edx, 0xff
xor esi, dword [ecx]
mov edx, dword [edx*4 + 0x649d90]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
sar eax, 8
xor edx, dword [ecx*4 + 0x64a190]
mov ecx, dword [ebp - 4]
sar ecx, 8
and ecx, 0xff
and eax, 0xff
xor edx, dword [ecx*4 + 0x649590]
movzx ecx, bl
sar ebx, 0x18
xor edx, dword [ecx*4 + 0x649990]
mov ecx, dword [ebp - 8]
and ebx, 0xff
xor edx, dword [ecx + 4]
mov ecx, dword [ebp + 8]
sar ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x64a190]
xor ecx, dword [eax*4 + 0x649590]
mov eax, dword [ebp - 4]
xor ecx, dword [ebx*4 + 0x649d90]
movzx eax, al
mov dword [ebp - 4], edi
xor ecx, dword [eax*4 + 0x649990]
mov eax, dword [ebp - 8]
add dword [ebp - 8], 0x20
xor ecx, dword [eax - 8]
dec dword [ebp - 0x14]
mov ebx, ecx
mov ecx, edx
mov eax, esi
mov dword [ebp + 8], ecx
jne 0x457fa0
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 8], ebx
shl esi, 5
mov dword [ebp - 0xc], esi
mov ebx, dword [esi + edi + 0x1e8]
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov ecx, ebx
sar ecx, 0x18
mov edx, edi
sar edx, 0x18
and edx, 0xff
xor cl, byte [edx + 0x64b690]
mov edx, dword [ebp + 8]
mov byte [esi], cl
sar edx, 0x10
and edx, 0xff
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [edx + 0x64b690]
mov edx, eax
mov byte [esi + 1], cl
sar edx, 8
and edx, 0xff
mov ecx, ebx
sar ecx, 8
xor cl, byte [edx + 0x64b690]
mov edx, dword [ebp - 4]
mov byte [esi + 2], cl
movzx ecx, dl
sar edx, 0x18
movzx ecx, byte [ecx + 0x64b690]
xor cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0xc]
and edx, 0xff
mov ebx, dword [ecx + ebx + 0x1ec]
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + 0x64b690]
mov edx, edi
mov byte [esi + 4], cl
sar edx, 0x10
and edx, 0xff
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [edx + 0x64b690]
mov edx, dword [ebp + 8]
mov byte [esi + 5], cl
sar edx, 8
and edx, 0xff
mov ecx, ebx
sar ecx, 8
xor cl, byte [edx + 0x64b690]
mov edx, eax
mov byte [esi + 6], cl
movzx ecx, al
sar edx, 0x18
movzx ecx, byte [ecx + 0x64b690]
xor cl, bl
mov ebx, dword [ebp - 0xc]
mov byte [esi + 7], cl
mov ecx, dword [ebp - 0x10]
and edx, 0xff
mov ebx, dword [ebx + ecx + 0x1f0]
mov ecx, ebx
sar ecx, 0x18
xor cl, byte [edx + 0x64b690]
mov edx, dword [ebp - 4]
mov byte [esi + 8], cl
sar edx, 0x10
and edx, 0xff
mov ecx, ebx
sar ecx, 0x10
xor cl, byte [edx + 0x64b690]
mov edx, edi
mov byte [esi + 9], cl
sar edx, 8
mov ecx, ebx
and edx, 0xff
sar ecx, 8
xor cl, byte [edx + 0x64b690]
mov byte [esi + 0xa], cl
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
movzx ecx, cl
sar eax, 0x10
movzx ecx, byte [ecx + 0x64b690]
xor cl, bl
mov ebx, dword [ebp + 8]
mov byte [esi + 0xb], cl
mov ecx, dword [ebp - 0x10]
sar ebx, 0x18
mov edx, dword [edx + ecx + 0x1f4]
and ebx, 0xff
mov ecx, edx
sar ecx, 0x18
xor cl, byte [ebx + 0x64b690]
and eax, 0xff
mov byte [esi + 0xc], cl
mov ecx, edx
sar ecx, 0x10
xor cl, byte [eax + 0x64b690]
mov eax, edx
mov byte [esi + 0xd], cl
mov ecx, dword [ebp - 4]
sar ecx, 8
sar eax, 8
and ecx, 0xff
xor al, byte [ecx + 0x64b690]
mov byte [esi + 0xe], al
mov eax, edi
movzx eax, al
pop edi
mov al, byte [eax + 0x64b690]
xor al, dl
mov byte [esi + 0xf], al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x686e74
lea ecx, [ebp - 0x20]
call fcn.005cd9eb
push 0x673fa0
lea eax, [ebp - 0x20]
push eax
call fcn.005d3ef0
int3