Function at 0x1005ae60
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
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
test esi, esi
je 0x1005b279
mov dword [ebx + 0x3cc], 0x10
mov dword [ebx + 0x3c8], 0x10
movq xmm0, qword [0x100b73c4]
movq qword [ebx + 0x3d4], xmm0
movq xmm0, qword [0x100b73cc]
movq qword [ebx + 0x3dc], xmm0
push dword [ebx + 0x3cc]
lea eax, [ebx + 0x3f4]
push 0x100b73c4
push eax
call sub.MSVCR110.dll_memcpy
mov eax, dword [ebx + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x1005aeee
cmp eax, 0x18
je 0x1005aee0
mov dword [ebx + 0x3d0], 0xe
jmp 0x1005af13
xor eax, eax
cmp dword [ebx + 0x3cc], 0x20
sete al
jmp 0x1005af06
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x1005aefe
lea eax, [ecx - 6]
jmp 0x1005af0d
xor eax, eax
cmp ecx, 0x18
setne al
lea eax, [eax*2 + 0xc]
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
xor edx, edx
mov dword [ebp - 4], eax
cmp dword [ebx + 0x3d0], edx
jl 0x1005af56
lea edi, [ebx + 8]
mov dword [ebp - 0x10], edi
mov esi, eax
test esi, esi
jle 0x1005af44
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x10]
inc edx
add edi, 0x20
mov dword [ebp - 0x10], edi
cmp edx, dword [ebx + 0x3d0]
jle 0x1005af37
mov esi, dword [ebp + 8]
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x1005af8f
mov esi, dword [ebp - 4]
lea edi, [ebx + 0x1e8]
mov dword [ebp - 0x10], edi
lea esp, [esp]
test esi, esi
jle 0x1005af7d
mov ecx, esi
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x10]
inc edx
add edi, 0x20
mov dword [ebp - 0x10], edi
cmp edx, dword [ebx + 0x3d0]
jle 0x1005af70
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x3d0]
inc eax
imul eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
add edx, eax
sar edx, 2
lea eax, [ebx + 0x414]
mov dword [ebp + 8], edx
mov ecx, eax
test edx, edx
jle 0x1005afef
mov edi, edx
lea ecx, [ecx]
movzx eax, byte [esi]
shl eax, 0x18
mov dword [ecx], eax
movzx eax, byte [esi + 1]
shl eax, 0x10
or dword [ecx], eax
movzx eax, byte [esi + 2]
shl eax, 8
or dword [ecx], eax
movzx eax, byte [esi + 3]
or dword [ecx], eax
lea esi, [esi + 4]
lea ecx, [ecx + 4]
dec edi
jne 0x1005afc0
lea eax, [ebx + 0x414]
xor edi, edi
test edx, edx
jle 0x1005b03c
mov ecx, eax
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp edi, dword [ebp - 0x10]
jge 0x1005b03c
mov eax, edi
cdq
idiv dword [ebp - 4]
mov ecx, dword [ecx]
inc edi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
sub ecx, eax
mov eax, dword [ebp - 8]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
cmp edi, edx
jl 0x1005b000
mov esi, dword [ebp - 0x10]
cmp edi, esi
jge 0x1005b1e2
lea eax, [ebx + 0x410]
mov dword [ebp - 8], 0x100a3100
lea eax, [eax + edx*4]
mov dword [ebp - 0x18], eax
lea ebx, [ebx]
mov edx, dword [eax]
mov eax, edx
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + 0x100a5220]
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x100a5220]
xor ecx, eax
movzx eax, dl
sar edx, 0x18
movzx eax, byte [eax + 0x100a5220]
shl ecx, 8
xor ecx, eax
and edx, 0xff
shl ecx, 8
movzx eax, byte [edx + 0x100a5220]
xor ecx, eax
mov eax, dword [ebp + 8]
xor dword [ebx + 0x414], ecx
lea edx, [ebx + 0x414]
cmp eax, 8
je 0x1005b0f0
cmp eax, 1
jle 0x1005b184
lea ecx, [ebx + 0x418]
lea edx, [eax - 1]
mov edi, edi
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x1005b0e0
jmp 0x1005b17b
lea eax, [ebx + 0x418]
mov edx, 3
jmp 0x1005b100
mov ecx, dword [eax - 4]
xor dword [eax], ecx
lea eax, [eax + 4]
dec edx
jne 0x1005b100
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
and eax, 0xff
movsx ecx, byte [eax + 0x100a5220]
mov eax, edx
sar eax, 0x10
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x100a5220]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x100a5220]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x100a5220]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
mov edx, 3
mov edi, edi
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x1005b170
mov eax, dword [ebp + 8]
lea edx, [ebx + 0x414]
mov dword [ebp - 0x14], 0
test eax, eax
jle 0x1005b1d7
mov ecx, edx
mov dword [ebp - 0xc], edx
cmp edi, esi
jge 0x1005b1e2
mov eax, edi
cdq
idiv dword [ebp - 4]
mov ecx, dword [ecx]
inc edi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 0x10]
sub ecx, eax
mov eax, dword [ebp - 0xc]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 0xc]
inc edx
add ecx, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ecx
cmp edx, dword [ebp + 8]
jl 0x1005b194
mov eax, dword [ebp - 0x18]
cmp edi, esi
jl 0x1005b060
mov ecx, 1
mov dword [ebp + 8], ecx
cmp dword [ebx + 0x3d0], ecx
jle 0x1005b26c
mov eax, dword [ebp - 4]
lea edx, [ebx + 0x208]
mov dword [ebp - 0x14], edx
mov edi, edi
test eax, eax
jle 0x1005b25a
mov esi, edx
mov edi, eax
mov edx, dword [esi]
mov ecx, edx
sar ecx, 0x18
and ecx, 0xff
mov eax, edx
mov ecx, dword [ecx*4 + 0x100a3d20]
sar eax, 0x10
and eax, 0xff
lea esi, [esi + 4]
xor ecx, dword [eax*4 + 0x100a3920]
mov eax, edx
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x100a2ca0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x100a28a0]
mov dword [esi - 4], ecx
dec edi
jne 0x1005b208
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
inc ecx
add edx, 0x20
mov dword [ebp + 8], ecx
mov dword [ebp - 0x14], edx
cmp ecx, dword [ebx + 0x3d0]
jl 0x1005b200
pop edi
pop esi
mov byte [ebx + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp + 8], str.Empty_key
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x100bd79c
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR110.dll__CxxThrowException
int3