Function at 0x1000ac09
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
cmp dword [ebp + 8], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
je 0x1000afd4
mov esi, dword [ebp + 0xc]
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 [ebp + 0xc]
push eax
call fcn.1004e760
mov eax, dword [ebx + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x1000ac88
cmp eax, 0x18
je 0x1000ac76
mov dword [ebx + 0x3d0], 0xe
jmp 0x1000acaa
cmp dword [ebx + 0x3cc], 0x20
push 0xe
pop eax
push 0xc
pop ecx
cmovne eax, ecx
jmp 0x1000aca4
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x1000ac98
push 0xa
pop eax
jmp 0x1000aca4
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 [ebp - 8], edi
cmp dword [ebx + 0x3d0], esi
jl 0x1000ace5
lea edx, [ebx + 8]
test edi, edi
jle 0x1000acd9
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
inc esi
add edx, 0x20
cmp esi, dword [ebx + 0x3d0]
jle 0x1000acca
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x1000ad10
lea esi, [ebx + 0x1e8]
test edi, edi
jle 0x1000ad04
mov ecx, edi
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 8]
inc edx
add esi, 0x20
cmp edx, dword [ebx + 0x3d0]
jle 0x1000acf5
mov ecx, dword [ebx + 0x3d0]
mov eax, dword [ebx + 0x3c8]
inc ecx
imul ecx, edi
cdq
and edx, 3
mov dword [ebp - 4], ecx
lea esi, [edx + eax]
sar esi, 2
mov dword [ebp - 0x14], esi
lea edx, [ebx + 0x414]
test esi, esi
jle 0x1000ad6e
mov ecx, dword [ebp + 8]
mov edi, esi
movzx eax, byte [ecx]
shl eax, 0x18
mov dword [edx], eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
or dword [edx], eax
movzx eax, byte [ecx + 2]
shl eax, 8
or dword [edx], eax
movzx eax, byte [ecx + 3]
or dword [edx], eax
lea ecx, [ecx + 4]
lea edx, [edx + 4]
dec edi
jne 0x1000ad3f
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ebp + 0xc], eax
test esi, esi
jle 0x1000adc5
lea edx, [ebx + 0x414]
mov dword [ebp + 8], edx
cmp eax, ecx
jge 0x1000af4a
cdq
idiv edi
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [ebp - 0x14]
sub ecx, eax
lea ecx, [edx + ecx*8]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
inc eax
add edx, 4
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edx
cmp eax, esi
jl 0x1000ad80
cmp eax, ecx
jge 0x1000af4a
mov dword [ebp + 8], 0x10093380
mov edx, dword [ebx + esi*4 + 0x410]
mov eax, edx
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + 0x10095100]
mov eax, 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 + 0x10095100]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x10095100]
sar edx, 0x18
xor ecx, eax
and edx, 0xff
shl ecx, 8
movzx eax, byte [edx + 0x10095100]
xor ecx, eax
lea eax, [ebx + 0x414]
xor dword [eax], ecx
inc dword [ebp + 8]
cmp esi, 8
je 0x1000ae60
cmp esi, 1
jle 0x1000aee6
lea ecx, [ebx + 0x418]
lea edx, [esi - 1]
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x1000ae50
jmp 0x1000aee0
push 3
lea ecx, [ebx + 0x418]
pop edx
mov eax, dword [ecx - 4]
xor dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x1000ae69
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
and eax, 0xff
push 3
movsx ecx, byte [eax + 0x10095100]
mov eax, edx
sar eax, 0x10
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x10095100]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x10095100]
xor ecx, eax
movzx eax, dl
shl ecx, 8
movzx eax, byte [eax + 0x10095100]
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 0x1000aed5
lea eax, [ebx + 0x414]
and dword [ebp - 0x10], 0
test esi, esi
jle 0x1000af3e
mov ecx, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jge 0x1000af4a
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 [ebp - 0x14]
sub ecx, eax
mov eax, dword [ebp - 0xc]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x10]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
inc edx
add ecx, 4
inc eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], eax
cmp edx, esi
jl 0x1000aef6
jmp 0x1000af41
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jl 0x1000add4
xor esi, esi
inc esi
cmp dword [ebx + 0x3d0], esi
jle 0x1000afc9
lea eax, [ebx + 0x208]
mov dword [ebp + 0xc], eax
test edi, edi
jle 0x1000afba
mov ebx, edi
mov dword [ebp + 8], eax
mov edi, eax
mov edx, dword [edi]
mov ecx, edx
sar ecx, 0x18
and ecx, 0xff
mov eax, edx
mov ecx, dword [ecx*4 + 0x10095e00]
sar eax, 0x10
and eax, 0xff
xor ecx, dword [eax*4 + 0x10093fa0]
mov eax, edx
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x10095200]
movzx eax, dl
xor ecx, dword [eax*4 + 0x10094d00]
mov dword [edi], ecx
lea edi, [edi + 4]
dec ebx
jne 0x1000af69
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
inc esi
add eax, 0x20
mov dword [ebp + 0xc], eax
cmp esi, dword [ebx + 0x3d0]
jl 0x1000af5e
pop edi
pop esi
mov byte [ebx + 4], 1
pop ebx
leave
ret 0x10
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp + 0xc], str.Empty_key
call fcn.1004c06f
push 0x10098cb0
lea eax, [ebp - 0x24]
push eax
call fcn.10053a9b
int3