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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x18], ebx
test esi, esi
je 0x411061
push edi
push 0x20
pop edi
push edi
push dword [ebp + 0xc]
lea eax, [ebx + 0x3d4]
mov dword [ebx + 0x3c8], edi
push eax
mov dword [ebx + 0x3cc], edi
call fcn.00628060
push dword [ebx + 0x3cc]
lea eax, [ebx + 0x3f4]
push dword [ebp + 0xc]
push eax
call fcn.00628060
mov eax, dword [ebx + 0x3c8]
add esp, 0x18
cmp eax, 0x10
je 0x410d07
cmp eax, 0x18
je 0x410cf6
mov dword [ebx + 0x3d0], 0xe
jmp 0x410d29
cmp dword [ebx + 0x3cc], edi
push 0xe
pop eax
push 0xc
pop ecx
cmovne eax, ecx
jmp 0x410d23
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x410d17
push 0xa
pop eax
jmp 0x410d23
push 0xe
pop eax
push 0xc
cmp ecx, 0x18
pop edx
cmove eax, edx
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
lea edi, [edx + eax]
xor eax, eax
sar edi, 2
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], eax
cmp dword [ebx + 0x3d0], eax
jl 0x410d6d
lea edx, [ebx + 8]
test edi, edi
jle 0x410d5e
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc eax
add edx, 0x20
mov dword [ebp + 8], eax
cmp eax, dword [ebx + 0x3d0]
jle 0x410d4c
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x410da2
lea eax, [ebx + 0x1e8]
mov dword [ebp + 8], eax
test edi, edi
jle 0x410d93
mov ecx, edi
xor eax, eax
mov edi, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc edx
add eax, 0x20
mov dword [ebp + 8], eax
cmp edx, dword [ebx + 0x3d0]
jle 0x410d80
mov eax, dword [ebx + 0x3d0]
inc eax
imul eax, edi
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
add edx, eax
lea eax, [ebx + 0x414]
sar edx, 2
mov ecx, eax
mov dword [ebp - 4], edx
test edx, edx
jle 0x410e01
mov edi, edx
movzx eax, byte [esi]
lea esi, [esi + 4]
shl eax, 0x18
mov dword [ecx], eax
movzx eax, byte [esi - 3]
shl eax, 0x10
or dword [ecx], eax
movzx eax, byte [esi - 2]
shl eax, 8
or dword [ecx], eax
movzx eax, byte [esi - 1]
or dword [ecx], eax
lea ecx, [ecx + 4]
dec edi
jne 0x410dcf
mov edi, dword [ebp + 0xc]
lea eax, [ebx + 0x414]
xor esi, esi
mov dword [ebp + 8], esi
test edx, edx
jle 0x410e54
mov ecx, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x410fdd
mov eax, esi
mov ecx, dword [ecx]
cdq
idiv edi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp + 8]
sub ecx, eax
mov eax, dword [ebp - 0xc]
inc esi
mov dword [ebp + 8], esi
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0xc], ecx
cmp esi, edx
jl 0x410e0f
cmp esi, dword [ebp - 8]
jge 0x410fdd
mov dword [ebp - 0xc], 0x6c66e0
mov edx, dword [ebx + edx*4 + 0x410]
mov eax, edx
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + 0x6c9800]
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x6c9800]
xor ecx, eax
movzx eax, dl
sar edx, 0x18
shl ecx, 8
and edx, 0xff
movzx eax, byte [eax + 0x6c9800]
xor ecx, eax
movzx eax, byte [edx + 0x6c9800]
mov edx, dword [ebp - 4]
shl ecx, 8
xor ecx, eax
lea eax, [ebx + 0x414]
xor dword [eax], ecx
inc dword [ebp - 0xc]
cmp edx, 8
je 0x410ef6
cmp edx, 1
jle 0x410f7f
lea ecx, [ebx + 0x418]
lea edi, [edx - 1]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edi
jne 0x410ee3
mov edi, dword [ebp + 0xc]
jmp 0x410f79
push 3
lea ecx, [ebx + 0x418]
pop edx
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x410eff
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
and eax, 0xff
push 3
movsx ecx, byte [eax + 0x6c9800]
mov eax, edx
sar eax, 0x10
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x6c9800]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x6c9800]
xor ecx, eax
movzx eax, dl
shl ecx, 8
pop edx
movzx eax, byte [eax + 0x6c9800]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x410f6b
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x414]
and dword [ebp - 0x14], 0
test edx, edx
jle 0x410fd4
mov ecx, eax
mov dword [ebp - 0x10], eax
cmp esi, dword [ebp - 8]
jge 0x410fdd
mov eax, esi
mov ecx, dword [ecx]
cdq
idiv edi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp + 8]
sub ecx, eax
mov eax, dword [ebp - 0x10]
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
inc eax
add ecx, 4
mov dword [ebp - 0x14], eax
inc esi
mov dword [ebp - 0x10], ecx
mov dword [ebp + 8], esi
cmp eax, edx
jl 0x410f8c
cmp esi, dword [ebp - 8]
jl 0x410e64
xor esi, esi
inc esi
cmp dword [ebx + 0x3d0], esi
jle 0x41105c
lea eax, [ebx + 0x208]
mov dword [ebp + 8], eax
test edi, edi
jle 0x41104d
mov ebx, edi
mov dword [ebp - 0x14], eax
mov edi, eax
mov edx, dword [edi]
mov ecx, edx
sar ecx, 0x18
mov eax, edx
sar eax, 0x10
and ecx, 0xff
and eax, 0xff
mov ecx, dword [ecx*4 + 0x6c7300]
xor ecx, dword [eax*4 + 0x6c6f00]
mov eax, edx
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x6c6b00]
movzx eax, dl
xor ecx, dword [eax*4 + 0x6c6700]
mov dword [edi], ecx
lea edi, [edi + 4]
dec ebx
jne 0x410ffc
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
inc esi
add eax, 0x20
mov dword [ebp + 8], eax
cmp esi, dword [ebx + 0x3d0]
jl 0x410ff1
mov byte [ebx + 4], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10