Function at 0x457a90
Capabilities:
Encode data using xor
Encrypt data using aes
Encrypt data using rc4 ksa
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, ecx
je 0x457e91
mov esi, dword [ebp + 0xc]
push 0x10
lea eax, [ebx + 0x3d4]
push esi
push eax
mov dword [ebx + 0x3c8], 0x20
mov dword [ebx + 0x3cc], 0x10
call fcn.005cfcf0
push dword [ebx + 0x3cc]
lea eax, [ebx + 0x3f4]
push esi
push eax
call fcn.005cfcf0
mov eax, dword [ebx + 0x3c8]
add esp, 0x18
cmp eax, 0x10
je 0x457b0b
cmp eax, 0x18
je 0x457afd
mov dword [ebx + 0x3d0], 0xe
jmp 0x457b30
xor eax, eax
cmp dword [ebx + 0x3cc], 0x20
sete al
jmp 0x457b23
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x457b1b
lea eax, [ecx - 6]
jmp 0x457b2a
xor eax, eax
cmp ecx, 0x18
setne al
lea eax, [eax*2 + 0xc]
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
xor edx, edx
mov dword [ebp - 4], esi
cmp dword [ebx + 0x3d0], edx
jl 0x457b6f
lea edi, [ebx + 8]
mov dword [ebp + 0xc], edi
test esi, esi
jle 0x457b60
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
inc edx
add edi, 0x20
mov dword [ebp + 0xc], edi
cmp edx, dword [ebx + 0x3d0]
jle 0x457b53
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x457b9e
lea edi, [ebx + 0x1e8]
mov dword [ebp + 0xc], edi
test esi, esi
jle 0x457b8f
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
inc edx
add edi, 0x20
mov dword [ebp + 0xc], edi
cmp edx, dword [ebx + 0x3d0]
jle 0x457b82
mov ecx, dword [ebx + 0x3d0]
mov eax, dword [ebx + 0x3c8]
inc ecx
imul ecx, esi
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 8], ecx
mov dword [ebp + 0xc], eax
lea edx, [ebx + 0x414]
test eax, eax
jle 0x457bff
mov ecx, dword [ebp + 8]
mov edi, eax
lea esp, [esp]
movzx eax, byte [ecx]
shl eax, 0x18
mov dword [edx], eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or dword [edx], eax
movzx eax, byte [ecx + 2]
shl eax, 8
or dword [edx], eax
movzx eax, byte [ecx + 3]
or dword [edx], eax
lea ecx, [ecx + 4]
lea edx, [edx + 4]
dec edi
jne 0x457bd0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
test eax, eax
jle 0x457c55
lea edx, [ebx + 0x414]
mov dword [ebp + 8], edx
mov edi, edi
cmp edi, ecx
jge 0x457df6
mov eax, edi
cdq
idiv esi
mov ecx, dword [ebp + 8]
inc edi
mov ecx, dword [ecx]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 4]
sub ecx, eax
lea ecx, [edx + ecx*8]
mov edx, dword [ebp + 8]
add edx, 4
mov eax, dword [edx - 4]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], edx
cmp edi, eax
jl 0x457c10
cmp edi, ecx
jge 0x457df6
add eax, 0x104
mov dword [ebp + 8], 0x648510
lea eax, [ebx + eax*4]
mov dword [ebp - 0x14], eax
nop
mov edx, dword [eax]
mov eax, edx
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + 0x64b590]
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x64b590]
xor ecx, eax
movzx eax, dl
sar edx, 0x18
movzx eax, byte [eax + 0x64b590]
shl ecx, 8
xor ecx, eax
and edx, 0xff
shl ecx, 8
movzx eax, byte [edx + 0x64b590]
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor dword [ebx + 0x414], ecx
lea edx, [ebx + 0x414]
cmp eax, 8
je 0x457d00
cmp eax, 1
jle 0x457d94
lea ecx, [ebx + 0x418]
lea edx, [eax - 1]
mov edi, edi
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x457cf0
jmp 0x457d8b
lea eax, [ebx + 0x418]
mov edx, 3
jmp 0x457d10
mov ecx, dword [eax - 4]
xor dword [eax], ecx
lea eax, [eax + 4]
dec edx
jne 0x457d10
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
and eax, 0xff
movsx ecx, byte [eax + 0x64b590]
mov eax, edx
sar eax, 0x10
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x64b590]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x64b590]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x64b590]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
mov edx, 3
mov edi, edi
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x457d80
mov eax, dword [ebp + 0xc]
lea edx, [ebx + 0x414]
mov dword [ebp - 0x10], 0
test eax, eax
jle 0x457de7
mov ecx, edx
mov dword [ebp - 0xc], edx
cmp edi, dword [ebp - 8]
jge 0x457df6
mov eax, edi
cdq
idiv esi
mov ecx, dword [ecx]
inc edi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 4]
sub ecx, eax
mov eax, dword [ebp - 0xc]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 0xc]
inc edx
add ecx, 4
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
cmp edx, dword [ebp + 0xc]
jl 0x457da4
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
cmp edi, dword [ebp - 8]
jl 0x457c70
mov ecx, 1
mov dword [ebp + 8], ecx
cmp dword [ebx + 0x3d0], ecx
jle 0x457e84
mov eax, dword [ebp - 4]
lea edx, [ebx + 0x208]
mov dword [ebp + 0xc], edx
test eax, eax
jle 0x457e72
mov esi, edx
mov edi, eax
lea ebx, [ebx]
mov edx, dword [esi]
mov ecx, edx
sar ecx, 0x18
and ecx, 0xff
mov eax, edx
mov ecx, dword [ecx*4 + 0x648d90]
sar eax, 0x10
and eax, 0xff
lea esi, [esi + 4]
xor ecx, dword [eax*4 + 0x649190]
mov eax, edx
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x648590]
movzx eax, dl
xor ecx, dword [eax*4 + 0x648990]
mov dword [esi - 4], ecx
dec edi
jne 0x457e20
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
inc ecx
add edx, 0x20
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
cmp ecx, dword [ebx + 0x3d0]
jl 0x457e12
pop edi
pop esi
mov byte [ebx + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], str.Empty_key
call fcn.005cd9eb
push 0x673fa0
lea eax, [ebp - 0x20]
push eax
call fcn.005d3ef0
int3