Function at 0x456a1e
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, 0x14
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x456a38
mov dword [ebp + 0xc], str.Empty_key
jmp 0x456a6e
mov ecx, dword [ebp + 0x10]
push 0x18
pop ebx
push 0x10
pop edi
cmp ecx, edi
je 0x456a57
cmp ecx, ebx
je 0x456a57
cmp ecx, 0x20
je 0x456a57
mov dword [ebp + 0xc], str.Incorrect_key_length
jmp 0x456a6e
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x456a88
cmp eax, ebx
je 0x456a88
cmp eax, 0x20
je 0x456a88
mov dword [ebp + 0xc], str.Incorrect_block_length
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.00466afb
push 0x4c5548
lea eax, [ebp - 0x14]
push eax
call fcn.00465b2b
push eax
push dword [ebp + 0xc]
mov dword [esi + 0x3cc], eax
lea eax, [esi + 0x3d4]
push eax
mov dword [esi + 0x3c8], ecx
call fcn.00465760
push dword [esi + 0x3cc]
lea eax, [esi + 0x3f4]
push dword [ebp + 0xc]
push eax
call fcn.00465760
mov eax, dword [esi + 0x3c8]
add esp, 0x18
cmp eax, edi
je 0x456ae8
cmp eax, ebx
je 0x456ad6
mov dword [esi + 0x3d0], 0xe
jmp 0x456b0a
xor eax, eax
cmp dword [esi + 0x3cc], 0x20
sete al
lea eax, [eax + eax + 0xc]
jmp 0x456b04
mov eax, dword [esi + 0x3cc]
cmp eax, edi
jne 0x456af7
push 0xa
pop eax
jmp 0x456b04
xor ecx, ecx
cmp eax, ebx
setne cl
lea ecx, [ecx + ecx + 0xc]
mov eax, ecx
mov dword [esi + 0x3d0], eax
mov eax, dword [esi + 0x3cc]
push 4
cdq
pop ecx
idiv ecx
xor edx, edx
cmp dword [esi + 0x3d0], edx
mov dword [ebp + 0x10], eax
jl 0x456b3f
lea ebx, [esi + 8]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x456b33
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
inc edx
add ebx, 0x20
cmp edx, dword [esi + 0x3d0]
jle 0x456b26
xor edx, edx
cmp dword [esi + 0x3d0], edx
jl 0x456b68
lea ebx, [esi + 0x1e8]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x456b5c
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
inc edx
add ebx, 0x20
cmp edx, dword [esi + 0x3d0]
jle 0x456b4f
mov eax, dword [esi + 0x3c8]
cdq
push 4
pop ecx
idiv ecx
mov edi, dword [esi + 0x3d0]
mov ecx, dword [ebp + 8]
inc edi
imul edi, dword [ebp + 0x10]
mov dword [ebp - 8], edi
mov edx, eax
test edx, edx
mov dword [ebp - 4], edx
lea eax, [esi + 0x414]
jle 0x456bbe
mov dword [ebp + 0xc], edx
movzx ebx, byte [ecx]
shl ebx, 0x18
mov dword [eax], ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or dword [eax], ebx
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or dword [eax], ebx
inc ecx
movzx ebx, byte [ecx]
or dword [eax], ebx
inc ecx
add eax, 4
dec dword [ebp + 0xc]
jne 0x456b97
and dword [ebp + 0xc], 0
test edx, edx
jle 0x456c0b
lea ecx, [esi + 0x414]
cmp dword [ebp + 0xc], edi
jge 0x456d5a
mov eax, dword [ebp + 0xc]
cdq
idiv dword [ebp + 0x10]
mov ebx, dword [ecx]
mov dword [ebp + 8], eax
lea eax, [edx + eax*8]
mov dword [esi + eax*4 + 8], ebx
mov eax, dword [esi + 0x3d0]
sub eax, dword [ebp + 8]
inc dword [ebp + 0xc]
lea eax, [edx + eax*8]
mov edx, dword [ecx]
mov dword [esi + eax*4 + 0x1e8], edx
mov edx, dword [ebp - 4]
add ecx, 4
cmp dword [ebp + 0xc], edx
jl 0x456bcc
cmp dword [ebp + 0xc], edi
jge 0x456d5a
mov dword [ebp + 0x14], 0x4b3f80
mov eax, dword [esi + edx*4 + 0x410]
mov ebx, dword [ebp + 0x14]
movsx ebx, byte [ebx]
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + 0xa]
movsx ecx, byte [ecx + str.cw]
xor ecx, ebx
movzx ebx, ah
movzx ebx, byte [ebx + str.cw]
shl ecx, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor ecx, ebx
shl ecx, 8
xor ecx, eax
movzx eax, byte [ebp + 0xb]
movzx eax, byte [eax + str.cw]
shl ecx, 8
xor ecx, eax
xor dword [esi + 0x414], ecx
inc dword [ebp + 0x14]
cmp edx, 8
je 0x456c95
cmp edx, 1
jle 0x456d07
lea eax, [esi + 0x418]
lea ecx, [edx - 1]
mov ebx, dword [eax - 4]
xor dword [eax], ebx
add eax, 4
dec ecx
jne 0x456c88
jmp 0x456d07
push 3
lea eax, [esi + 0x418]
pop ecx
mov ebx, dword [eax - 4]
xor dword [eax], ebx
add eax, 4
dec ecx
jne 0x456c9e
mov eax, dword [esi + 0x420]
mov dword [ebp + 8], eax
movzx ecx, byte [ebp + 0xb]
movsx ecx, byte [ecx + str.cw]
movzx ebx, byte [ebp + 0xa]
movzx ebx, byte [ebx + str.cw]
shl ecx, 8
xor ecx, ebx
movzx ebx, ah
movzx ebx, byte [ebx + str.cw]
shl ecx, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor ecx, ebx
shl ecx, 8
xor ecx, eax
xor dword [esi + 0x424], ecx
push 3
lea eax, [esi + 0x428]
pop ecx
mov ebx, dword [eax - 4]
xor dword [eax], ebx
add eax, 4
dec ecx
jne 0x456cfc
and dword [ebp + 8], 0
test edx, edx
jle 0x456d51
lea ecx, [esi + 0x414]
mov eax, dword [ebp + 0xc]
cmp eax, edi
jge 0x456d5a
cdq
idiv dword [ebp + 0x10]
mov ebx, dword [ecx]
lea edi, [edx + eax*8]
mov dword [esi + edi*4 + 8], ebx
mov edi, dword [esi + 0x3d0]
sub edi, eax
inc dword [ebp + 8]
lea eax, [edx + edi*8]
mov edx, dword [ecx]
mov edi, dword [ebp - 8]
mov dword [esi + eax*4 + 0x1e8], edx
mov edx, dword [ebp - 4]
add ecx, 4
inc dword [ebp + 0xc]
cmp dword [ebp + 8], edx
jl 0x456d15
cmp dword [ebp + 0xc], edi
jl 0x456c1b
xor eax, eax
inc eax
cmp dword [esi + 0x3d0], eax
mov dword [ebp + 0x14], eax
jle 0x456dc6
lea eax, [esi + 0x208]
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 0x10]
test edx, edx
jle 0x456db4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebp + 8], eax
movzx edi, byte [ebp + 0xb]
movzx ebx, byte [ebp + 0xa]
mov edi, dword [edi*4 + 0x4b2f80]
xor edi, dword [ebx*4 + 0x4b3380]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4b3780]
and eax, 0xff
xor edi, dword [eax*4 + 0x4b3b80]
mov dword [ecx], edi
add ecx, 4
dec edx
jne 0x456d7b
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
add dword [ebp + 0xc], 0x20
cmp eax, dword [esi + 0x3d0]
jl 0x456d71
pop edi
mov byte [esi + 4], 1
pop esi
pop ebx
leave
ret 0x10