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

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
mov ebx, ecx
mov dword [esp + 0x18], ebx
test ebp, ebp
je 0x100100bb
push esi
mov esi, dword [esp + 0x34]
push edi
mov dword [ebx + 0x3cc], 0x10
mov dword [ebx + 0x3c8], 0x20
lea edi, [ebx + 0x3d4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebx + 0x3cc]
lea eax, [ebx + 0x3f4]
push dword [esp + 0x3c]
push eax
call fcn.1005b1c0
mov eax, dword [ebx + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x1000fd71
cmp eax, 0x18
je 0x1000fd5f
mov dword [ebx + 0x3d0], 0xe
jmp 0x1000fd93
cmp dword [ebx + 0x3cc], 0x20
push 0xe
pop eax
push 0xc
pop ecx
cmovne eax, ecx
jmp 0x1000fd8d
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x1000fd81
push 0xa
pop eax
jmp 0x1000fd8d
push 0xe
pop eax
push 0xc
pop edx
cmp ecx, 0x18
cmove eax, edx
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
xor esi, esi
lea edi, [edx + eax]
sar edi, 2
mov dword [esp + 0x14], edi
cmp dword [ebx + 0x3d0], esi
jl 0x1000fdd0
lea edx, [ebx + 8]
test edi, edi
jle 0x1000fdc4
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
inc esi
add edx, 0x20
cmp esi, dword [ebx + 0x3d0]
jle 0x1000fdb4
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x1000fdfc
lea esi, [ebx + 0x1e8]
test edi, edi
jle 0x1000fdf0
mov ecx, edi
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
inc edx
add esi, 0x20
cmp edx, dword [ebx + 0x3d0]
jle 0x1000fde0
mov eax, dword [ebx + 0x3d0]
inc eax
imul eax, edi
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
lea esi, [edx + eax]
sar esi, 2
lea eax, [ebx + 0x414]
mov dword [esp + 0x1c], esi
mov ecx, eax
test esi, esi
jle 0x1000fe5c
mov edx, esi
movzx eax, byte [ebp]
shl eax, 0x18
mov dword [ecx], eax
movzx eax, byte [ebp + 1]
shl eax, 0x10
or dword [ecx], eax
movzx eax, byte [ebp + 2]
shl eax, 8
or dword [ecx], eax
movzx eax, byte [ebp + 3]
or dword [ecx], eax
lea ebp, [ebp + 4]
lea ecx, [ecx + 4]
dec edx
jne 0x1000fe2c
lea eax, [ebx + 0x414]
xor ebp, ebp
test esi, esi
jle 0x1000feac
mov ecx, eax
mov dword [esp + 0x34], eax
cmp ebp, dword [esp + 0x38]
jge 0x10010034
mov eax, ebp
cdq
idiv edi
mov ecx, dword [ecx]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [esp + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x34]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [esp + 0x34]
inc ebp
add ecx, 4
mov dword [esp + 0x34], ecx
cmp ebp, esi
jl 0x1000fe68
cmp ebp, dword [esp + 0x38]
jge 0x10010034
mov dword [esp + 0x34], 0x100840d8
mov edx, dword [ebx + esi*4 + 0x410]
mov eax, edx
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + 0x10085e58]
mov eax, dword [esp + 0x34]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x10085e58]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x10085e58]
sar edx, 0x18
xor ecx, eax
and edx, 0xff
shl ecx, 8
movzx eax, byte [edx + 0x10085e58]
xor ecx, eax
lea eax, [ebx + 0x414]
xor dword [eax], ecx
inc dword [esp + 0x34]
cmp esi, 8
je 0x1000ff4c
cmp esi, 1
jle 0x1000ffd2
lea ecx, [ebx + 0x418]
lea edx, [esi - 1]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x1000ff3c
jmp 0x1000ffcc
push 3
lea ecx, [ebx + 0x418]
pop edx
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x1000ff55
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
and eax, 0xff
push 3
movsx ecx, byte [eax + 0x10085e58]
mov eax, edx
sar eax, 0x10
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x10085e58]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x10085e58]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x10085e58]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
pop edx
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x1000ffc1
lea eax, [ebx + 0x414]
and dword [esp + 0x18], 0
test esi, esi
jle 0x1001002a
mov ecx, eax
mov dword [esp + 0x10], eax
cmp ebp, dword [esp + 0x38]
jge 0x10010034
mov eax, ebp
cdq
idiv edi
mov ecx, dword [ecx]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [esp + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x10]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
inc eax
add ecx, 4
inc ebp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
cmp eax, esi
jl 0x1000ffe1
cmp ebp, dword [esp + 0x38]
jl 0x1000febe
xor esi, esi
inc esi
cmp dword [ebx + 0x3d0], esi
jle 0x100100ad
lea ebp, [ebx + 0x208]
test edi, edi
jle 0x100100a1
mov ebx, edi
mov dword [esp + 0x38], ebp
mov edi, ebp
mov edx, dword [edi]
mov ecx, edx
sar ecx, 0x18
and ecx, 0xff
mov eax, edx
mov ecx, dword [ecx*4 + 0x10086b58]
sar eax, 0x10
and eax, 0xff
xor ecx, dword [eax*4 + 0x10084cf8]
mov eax, edx
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x10085f58]
movzx eax, dl
xor ecx, dword [eax*4 + 0x10085a58]
mov dword [edi], ecx
lea edi, [edi + 4]
dec ebx
jne 0x10010051
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
inc esi
add ebp, 0x20
cmp esi, dword [ebx + 0x3d0]
jl 0x10010045
pop edi
pop esi
pop ebp
mov byte [ebx + 4], 1
pop ebx
add esp, 0x20
ret 0x10
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], str.Empty_key
call fcn.1005850b
push 0x100887f8
lea eax, [esp + 0x20]
push eax
call fcn.1005ff7b
int3