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

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1c]
mov dword [esi + 0x3c8], eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esi + 0x3d4]
push edi
push ecx
mov dword [esi + 0x3cc], eax
call fcn.004903d0
mov edx, dword [esi + 0x3cc]
push edx
lea eax, [esi + 0x3f4]
push edi
push eax
call fcn.004903d0
mov eax, dword [esi + 0x3c8]
add esp, 0x18
cmp eax, 0x10
je 0x416e78
cmp eax, 0x18
je 0x416e60
mov dword [esi + 0x3d0], 0xe
jmp 0x416e9e
xor ecx, ecx
cmp dword [esi + 0x3cc], 0x20
sete cl
lea ecx, [ecx + ecx + 0xc]
mov dword [esi + 0x3d0], ecx
jmp 0x416e9e
mov eax, dword [esi + 0x3cc]
cmp eax, 0x10
jne 0x416e8a
mov eax, 0xa
jmp 0x416e98
xor edx, edx
cmp eax, 0x18
setne dl
lea edx, [edx + edx + 0xc]
mov eax, edx
mov dword [esi + 0x3d0], eax
mov eax, dword [esi + 0x3cc]
cdq
and edx, 3
add eax, edx
mov ebp, eax
sar ebp, 2
xor edx, edx
cmp dword [esi + 0x3d0], edx
mov dword [esp + 0x20], ebp
jl 0x416eda
lea ebx, [esi + 8]
test ebp, ebp
jle 0x416ecc
mov ecx, ebp
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
add edx, 1
add ebx, 0x20
cmp edx, dword [esi + 0x3d0]
jle 0x416ec0
xor edx, edx
cmp dword [esi + 0x3d0], edx
jl 0x416f0a
lea ebx, [esi + 0x1e8]
lea ebx, [ebx]
test ebp, ebp
jle 0x416efc
mov ecx, ebp
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
add edx, 1
add ebx, 0x20
cmp edx, dword [esi + 0x3d0]
jle 0x416ef0
mov eax, dword [esi + 0x3d0]
add eax, 1
imul eax, ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x3c8]
cdq
and edx, 3
add eax, edx
mov edi, eax
mov eax, dword [esp + 0x18]
sar edi, 2
test edi, edi
lea ecx, [esi + 0x414]
jle 0x416f77
mov ebp, edi
jmp 0x416f40
movzx edx, byte [eax]
shl edx, 0x18
mov dword [ecx], edx
movzx edx, byte [eax + 1]
add eax, 1
shl edx, 0x10
or dword [ecx], edx
add eax, 1
xor edx, edx
mov dh, byte [eax]
add eax, 1
add eax, 1
add ecx, 4
or dword [ecx - 4], edx
movzx edx, byte [eax - 1]
or dword [ecx - 4], edx
sub ebp, 1
jne 0x416f40
mov ebp, dword [esp + 0x20]
xor ebx, ebx
test edi, edi
mov dword [esp + 0x24], ebx
jle 0x416fd2
lea ecx, [esi + 0x414]
mov dword [esp + 0x24], ecx
jmp 0x416f90
cmp ebx, dword [esp + 0x1c]
jge 0x416fce
mov eax, ebx
cdq
idiv ebp
mov ecx, dword [ecx]
add ebx, 1
lea ebp, [edx + eax*8]
mov dword [esi + ebp*4 + 8], ecx
mov ecx, dword [esi + 0x3d0]
mov ebp, dword [esp + 0x20]
sub ecx, eax
lea edx, [edx + ecx*8]
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
add ecx, 4
cmp ebx, edi
mov dword [esi + edx*4 + 0x1e8], eax
mov dword [esp + 0x24], ecx
jl 0x416f90
mov dword [esp + 0x24], ebx
cmp ebx, dword [esp + 0x1c]
jge 0x417164
mov dword [esp + 0x18], 0x4b4ea0
mov eax, dword [esi + edi*4 + 0x410]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov ecx, dword [esp + 0x18]
movsx ecx, byte [ecx]
xor edx, ecx
add dword [esp + 0x18], 1
movzx ecx, ah
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
mov ecx, eax
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
sar eax, 0x18
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x414], edx
cmp edi, 8
je 0x417072
cmp edi, 1
jle 0x4170fd
lea eax, [esi + 0x418]
lea ecx, [edi - 1]
nop
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x417060
jmp 0x4170fd
lea eax, [esi + 0x418]
mov ecx, 3
lea ecx, [ecx]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x417080
mov eax, dword [esi + 0x420]
mov ecx, eax
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
mov ecx, eax
sar ecx, 0x10
and ecx, 0xff
movzx ecx, byte [ecx + str.cw]
shl edx, 8
xor edx, ecx
movzx ecx, ah
movzx ecx, byte [ecx + str.cw]
shl edx, 8
and eax, 0xff
movzx eax, byte [eax + str.cw]
xor edx, ecx
shl edx, 8
xor edx, eax
xor dword [esi + 0x424], edx
lea eax, [esi + 0x428]
mov ecx, 3
lea ecx, [ecx]
mov edx, dword [eax - 4]
xor dword [eax], edx
add eax, 4
sub ecx, 1
jne 0x4170f0
test edi, edi
mov dword [esp + 0x10], 0
jle 0x41715a
lea ecx, [esi + 0x414]
nop
cmp ebx, dword [esp + 0x1c]
jge 0x417164
mov eax, ebx
cdq
idiv ebp
mov ebp, dword [ecx]
add ecx, 4
lea ebx, [edx + eax*8]
mov dword [esi + ebx*4 + 8], ebp
mov ebx, dword [esi + 0x3d0]
mov ebp, dword [esp + 0x20]
sub ebx, eax
lea eax, [edx + ebx*8]
mov edx, dword [ecx - 4]
mov ebx, dword [esp + 0x24]
mov dword [esi + eax*4 + 0x1e8], edx
mov eax, dword [esp + 0x10]
add eax, 1
add ebx, 1
cmp eax, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ebx
jl 0x417110
cmp ebx, dword [esp + 0x1c]
jl 0x416fe4
mov eax, 1
cmp dword [esi + 0x3d0], eax
mov dword [esp + 0x20], eax
jle 0x417201
lea ecx, [esi + 0x208]
mov dword [esp + 0x24], ecx
test ebp, ebp
jle 0x4171d7
mov edx, ebp
lea esp, [esp]
mov eax, dword [ecx]
mov edi, eax
sar edi, 0x18
and edi, 0xff
mov edi, dword [edi*4 + 0x4b3ea0]
mov ebx, eax
sar ebx, 0x10
and ebx, 0xff
xor edi, dword [ebx*4 + 0x4b42a0]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x4b46a0]
and eax, 0xff
xor edi, dword [eax*4 + 0x4b4aa0]
add ecx, 4
sub edx, 1
mov dword [ecx - 4], edi
jne 0x417190
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add eax, 1
add ecx, 0x20
cmp eax, dword [esi + 0x3d0]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
jl 0x417183
pop edi
mov byte [esi + 4], 1
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
pop edi
mov byte [esi + 4], al
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10