Function at 0x485990
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, 0x24
push ebx
mov ebx, eax
push edi
test ebx, ebx
jne 0x4859bf
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.Empty_key
call fcn.00490ac9
push 0x4e9530
lea ecx, [ebp - 0x24]
push ecx
call fcn.00495f48
mov edi, 0x10
mov dword [esi + 0x3cc], edi
mov dword [esi + 0x3c8], edi
mov edx, dword [0x4e78dc]
mov dword [esi + 0x3d4], edx
mov eax, dword [0x4e78e0]
mov dword [esi + 0x3d8], eax
mov ecx, dword [0x4e78e4]
mov dword [esi + 0x3dc], ecx
mov edx, dword [0x4e78e8]
mov dword [esi + 0x3e0], edx
mov eax, dword [esi + 0x3cc]
push eax
lea ecx, [esi + 0x3f4]
push 0x4e78dc
push ecx
call fcn.00498770
mov eax, dword [esi + 0x3c8]
add esp, 0xc
cmp eax, edi
je 0x485a4d
cmp eax, 0x18
je 0x485a35
mov dword [esi + 0x3d0], 0xe
jmp 0x485a70
xor edx, edx
cmp dword [esi + 0x3cc], 0x20
sete dl
lea edx, [edx + edx + 0xc]
mov dword [esi + 0x3d0], edx
jmp 0x485a70
mov eax, dword [esi + 0x3cc]
cmp eax, edi
jne 0x485a5e
mov eax, 0xa
jmp 0x485a6a
xor ecx, ecx
cmp eax, 0x18
setne cl
lea eax, [ecx + ecx + 0xc]
mov dword [esi + 0x3d0], eax
mov eax, dword [esi + 0x3cc]
cdq
and edx, 3
lea edi, [edx + eax]
push 0x1e0
lea edx, [esi + 8]
push 0
sar edi, 2
push edx
mov dword [ebp - 0x10], edi
call fcn.00497ad0
push 0x1e0
lea eax, [esi + 0x1e8]
push 0
push eax
call fcn.00497ad0
mov eax, dword [esi + 0x3d0]
inc eax
imul eax, edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x3c8]
cdq
and edx, 3
lea edi, [edx + eax]
sar edi, 2
add esp, 0x18
mov dword [ebp - 0x18], edi
lea ecx, [esi + 0x414]
mov eax, ebx
test edi, edi
jle 0x485b00
mov edx, edi
movzx ebx, byte [eax]
shl ebx, 0x18
mov dword [ecx], ebx
movzx ebx, byte [eax + 1]
shl ebx, 0x10
or dword [ecx], ebx
movzx ebx, byte [eax + 2]
shl ebx, 8
or dword [ecx], ebx
movzx ebx, byte [eax + 3]
or dword [ecx], ebx
add eax, 4
add ecx, 4
dec edx
jne 0x485ad7
xor ebx, ebx
mov dword [ebp - 4], ebx
test edi, edi
jle 0x485b52
lea eax, [esi + 0x414]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 8]
jge 0x485b4f
mov eax, ebx
cdq
idiv dword [ebp - 0x10]
inc ebx
lea ecx, [edx + eax*8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [esi + ecx*4 + 8], eax
mov ecx, dword [esi + 0x3d0]
sub ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
lea edx, [edx + ecx*8]
mov ecx, dword [eax]
add eax, 4
mov dword [esi + edx*4 + 0x1e8], ecx
mov dword [ebp - 4], eax
cmp ebx, edi
jl 0x485b12
mov dword [ebp - 4], ebx
cmp ebx, dword [ebp - 8]
jge 0x485cda
mov dword [ebp - 0xc], 0x4e1e98
mov eax, dword [esi + edi*4 + 0x410]
mov edx, eax
sar edx, 0x10
and edx, 0xff
movsx ecx, byte [edx + 0x4dec98]
mov edx, dword [ebp - 0xc]
movsx edx, byte [edx]
xor ecx, edx
inc dword [ebp - 0xc]
mov edx, eax
sar edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x4dec98]
shl ecx, 8
xor ecx, edx
mov edx, eax
and edx, 0xff
movzx edx, byte [edx + 0x4dec98]
sar eax, 0x18
shl ecx, 8
and eax, 0xff
movzx eax, byte [eax + 0x4dec98]
xor ecx, edx
shl ecx, 8
xor ecx, eax
xor dword [esi + 0x414], ecx
cmp edi, 8
je 0x485bf2
cmp edi, 1
jle 0x485c7e
lea eax, [esi + 0x418]
lea ecx, [edi - 1]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x485be2
jmp 0x485c7e
lea eax, [esi + 0x418]
mov ecx, 3
lea ecx, [ecx]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x485c00
mov eax, dword [esi + 0x420]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x4dec98]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + 0x4dec98]
shl edx, 8
xor edx, ecx
mov ecx, eax
sar ecx, 8
and ecx, 0xff
movzx ecx, byte [ecx + 0x4dec98]
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + 0x4dec98]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x424], edx
lea eax, [esi + 0x428]
mov ecx, 3
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
dec ecx
jne 0x485c73
mov dword [ebp - 0x14], 0
test edi, edi
jle 0x485cd1
lea ecx, [esi + 0x414]
nop
cmp ebx, dword [ebp - 8]
jge 0x485cda
mov eax, ebx
cdq
idiv dword [ebp - 0x10]
mov ebx, dword [ecx]
add ecx, 4
lea edi, [edx + eax*8]
mov dword [esi + edi*4 + 8], ebx
mov edi, dword [esi + 0x3d0]
mov ebx, dword [ebp - 4]
sub edi, eax
lea eax, [edx + edi*8]
mov edx, dword [ecx - 4]
mov edi, dword [ebp - 0x18]
mov dword [esi + eax*4 + 0x1e8], edx
mov eax, dword [ebp - 0x14]
inc eax
inc ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
cmp eax, edi
jl 0x485c90
cmp ebx, dword [ebp - 8]
jl 0x485b62
mov eax, 1
mov dword [ebp - 0x14], eax
cmp dword [esi + 0x3d0], eax
jle 0x485d65
lea ecx, [esi + 0x208]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
test edx, edx
jle 0x485d4d
mov edi, edi
mov eax, dword [ecx]
mov edi, eax
sar edi, 0x18
and edi, 0xff
mov edi, dword [edi*4 + 0x4e0e98]
mov ebx, eax
sar ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4e1298]
mov ebx, eax
sar ebx, 8
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4e1698]
and eax, 0xff
xor edi, dword [eax*4 + 0x4e1a98]
add ecx, 4
dec edx
mov dword [ecx - 4], edi
jne 0x485d00
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
inc eax
add ecx, 0x20
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [esi + 0x3d0]
jl 0x485cf7
pop edi
mov byte [esi + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret