Function at 0x4582b0
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, 0x34
cmp byte [ecx + 4], 0
mov dword [ebp - 0x18], ecx
je 0x458551
mov eax, dword [ecx + 0x3cc]
cmp eax, 0x10
jne 0x4582df
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00457ec0
mov esp, ebp
pop ebp
ret 8
cdq
and edx, 3
push edi
lea edi, [edx + eax]
sar edi, 2
xor eax, eax
mov dword [ebp - 0x1c], edi
cmp edi, 4
je 0x4582fb
cmp edi, 6
setne al
inc eax
shl eax, 5
push ebx
mov edx, dword [eax + 0x64853c]
mov ebx, dword [eax + 0x648544]
mov eax, dword [eax + 0x64854c]
mov dword [ebp - 0xc], eax
lea eax, [ecx + 0x454]
push esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
mov esi, eax
test edi, edi
jle 0x45836b
mov eax, dword [ebp + 8]
lea ebx, [ecx + 0x1e8]
movzx ecx, byte [eax]
shl ecx, 0x18
mov dword [esi], ecx
movzx ecx, byte [eax + 1]
shl ecx, 0x10
or dword [esi], ecx
movzx ecx, byte [eax + 2]
shl ecx, 8
or dword [esi], ecx
movzx ecx, byte [eax + 3]
or dword [esi], ecx
mov ecx, dword [ebx]
mov edx, esi
add esi, 4
xor dword [edx], ecx
lea eax, [eax + 4]
lea ebx, [ebx + 4]
dec edi
jne 0x458333
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
cmp dword [esi + 0x3d0], 1
jle 0x45846f
lea ecx, [esi + 0x208]
lea eax, [esi + 0x434]
mov dword [ebp - 0x20], ecx
test edi, edi
jle 0x458432
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
sub eax, edx
sub ecx, edx
mov ebx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], edi
add eax, ebx
cdq
idiv edi
mov eax, dword [ebp - 0x24]
add eax, ebx
mov ecx, dword [esi + edx*4 + 0x454]
cdq
idiv edi
sar ecx, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x649590]
movzx eax, byte [esi + edx*4 + 0x454]
xor ecx, dword [eax*4 + 0x649990]
mov eax, ebx
cdq
idiv edi
inc ebx
movsx eax, word [esi + edx*4 + 0x456]
mov edx, dword [ebp - 0x14]
and eax, 0xff
add edx, 4
xor ecx, dword [eax*4 + 0x64a190]
movzx eax, byte [edx + 0x1f]
mov dword [ebp - 0x14], edx
xor ecx, dword [eax*4 + 0x649d90]
mov eax, dword [ebp + 8]
add eax, 4
xor ecx, dword [eax - 4]
dec dword [ebp - 0x18]
mov dword [edx - 4], ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x28]
jne 0x4583b4
lea eax, [esi + 0x434]
lea ecx, [edi*4]
push ecx
push eax
lea eax, [esi + 0x454]
push eax
call fcn.005cfcf0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
inc eax
add ecx, 0x20
add esp, 0xc
cmp eax, dword [esi + 0x3d0]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
lea eax, [esi + 0x434]
jl 0x458391
xor ebx, ebx
mov dword [ebp - 0x20], ebx
test edi, edi
jle 0x458548
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
sub dword [ebp - 0xc], eax
jmp 0x458490
mov eax, dword [esi + 0x3d0]
inc edx
lea eax, [ebx + eax*8]
mov dword [ebp + 8], edx
mov ebx, dword [esi + eax*4 + 0x1e8]
mov eax, dword [ebp - 0x10]
mov ecx, ebx
movzx eax, byte [eax + 3]
sar ecx, 0x18
xor cl, byte [eax + 0x64b690]
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov byte [edx - 1], cl
cdq
idiv edi
mov eax, ebx
sar eax, 0x10
add dword [ebp - 0x10], 4
movsx ecx, word [esi + edx*4 + 0x456]
and ecx, 0xff
xor al, byte [ecx + 0x64b690]
mov ecx, dword [ebp + 8]
inc ecx
mov byte [ecx - 1], al
mov eax, dword [ebp - 4]
cdq
idiv edi
mov dword [ebp + 8], ecx
mov eax, ebx
sar eax, 8
mov ecx, dword [esi + edx*4 + 0x454]
sar ecx, 8
and ecx, 0xff
xor al, byte [ecx + 0x64b690]
mov ecx, dword [ebp + 8]
inc ecx
mov byte [ecx - 1], al
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 4]
add eax, ecx
cdq
idiv edi
inc ecx
mov dword [ebp - 4], ecx
movzx eax, byte [esi + edx*4 + 0x454]
mov edx, dword [ebp + 8]
mov al, byte [eax + 0x64b690]
xor al, bl
mov ebx, dword [ebp - 0x20]
inc ebx
mov byte [edx], al
inc edx
mov dword [ebp - 0x20], ebx
cmp ebx, edi
jl 0x458490
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 8
push 0x686e74
lea ecx, [ebp - 0x34]
call fcn.005cd9eb
push 0x673fa0
lea eax, [ebp - 0x34]
push eax
call fcn.005d3ef0
int3