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

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov ebx, ecx
test ebp, ebp
je 0x415b03
push esi
mov esi, dword [esp + 0x2c]
lea eax, [ebx + 0x3d4]
push edi
push 0x20
push esi
push eax
mov dword [ebx + 0x3c8], 0x20
mov dword [ebx + 0x3cc], 0x20
call fcn.005dc7f0
push dword [ebx + 0x3cc]
lea eax, [ebx + 0x3f4]
push esi
push eax
call fcn.005dc7f0
mov eax, dword [ebx + 0x3c8]
add esp, 0x18
cmp eax, 0x10
je 0x41577c
cmp eax, 0x18
je 0x41576e
mov dword [ebx + 0x3d0], 0xe
jmp 0x4157a1
xor eax, eax
cmp dword [ebx + 0x3cc], 0x20
sete al
jmp 0x415794
mov ecx, dword [ebx + 0x3cc]
cmp ecx, 0x10
jne 0x41578c
lea eax, [ecx - 6]
jmp 0x41579b
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
lea esi, [edx + eax]
xor edx, edx
sar esi, 2
mov dword [esp + 0x10], esi
cmp dword [ebx + 0x3d0], edx
jl 0x4157de
lea ebp, [ebx + 8]
test esi, esi
jle 0x4157ce
mov ecx, esi
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
inc edx
add ebp, 0x20
cmp edx, dword [ebx + 0x3d0]
jle 0x4157c2
mov ebp, dword [esp + 0x2c]
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x41580c
lea ebp, [ebx + 0x1e8]
mov edi, edi
test esi, esi
jle 0x4157fc
mov ecx, esi
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
inc edx
add ebp, 0x20
cmp edx, dword [ebx + 0x3d0]
jle 0x4157f0
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebx + 0x3d0]
inc eax
imul eax, esi
mov dword [esp + 0x30], 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 [esp + 0x2c], edx
test edx, edx
jle 0x415874
mov edi, edx
jmp 0x415840
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
shl eax, 0x18
lea ecx, [ecx + 4]
mov dword [ecx - 4], eax
movzx eax, byte [ebp - 3]
shl eax, 0x10
or dword [ecx - 4], eax
movzx eax, byte [ebp - 2]
shl eax, 8
or dword [ecx - 4], eax
movzx eax, byte [ebp - 1]
or dword [ecx - 4], eax
dec edi
jne 0x415840
lea eax, [ebx + 0x414]
mov ebp, dword [esp + 0x30]
xor edi, edi
test edx, edx
jle 0x4158c8
mov ecx, eax
mov dword [esp + 0x14], ecx
cmp edi, ebp
jge 0x415a63
mov eax, edi
mov ecx, dword [ecx]
cdq
inc edi
idiv esi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [esp + 0x14]
lea ecx, [edx + ecx*8]
mov eax, dword [eax]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov ecx, dword [esp + 0x14]
add ecx, 4
mov dword [esp + 0x14], ecx
cmp edi, dword [esp + 0x2c]
jl 0x415884
cmp edi, ebp
jge 0x415a63
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x14], 0x6526b0
lea esp, [esp]
mov edx, dword [ebx + ebp*4 + 0x410]
mov eax, edx
sar eax, 0x10
and eax, 0xff
movsx ecx, byte [eax + 0x6557d0]
mov eax, dword [esp + 0x14]
inc dword [esp + 0x14]
movsx eax, byte [eax]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x6557d0]
xor ecx, eax
movzx eax, dl
sar edx, 0x18
shl ecx, 8
and edx, 0xff
movzx eax, byte [eax + 0x6557d0]
xor ecx, eax
movzx eax, byte [edx + 0x6557d0]
shl ecx, 8
xor ecx, eax
lea eax, [ebx + 0x414]
xor dword [eax], ecx
cmp ebp, 8
je 0x415971
cmp ebp, 1
jle 0x415a02
lea ecx, [ebx + 0x418]
lea edx, [ebp - 1]
mov edi, edi
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
dec edx
jne 0x415960
jmp 0x4159fc
lea eax, [ebx + 0x418]
mov edx, 3
lea esp, [esp]
mov ecx, dword [eax - 4]
lea eax, [eax + 4]
xor dword [eax - 4], ecx
dec edx
jne 0x415980
mov edx, dword [ebx + 0x420]
mov eax, edx
sar eax, 0x18
and eax, 0xff
movsx ecx, byte [eax + 0x6557d0]
mov eax, edx
sar eax, 0x10
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x6557d0]
xor ecx, eax
mov eax, edx
sar eax, 8
and eax, 0xff
shl ecx, 8
movzx eax, byte [eax + 0x6557d0]
xor ecx, eax
movzx eax, dl
shl ecx, 8
mov edx, 3
movzx eax, byte [eax + 0x6557d0]
xor ecx, eax
xor dword [ebx + 0x424], ecx
lea ecx, [ebx + 0x428]
nop
mov eax, dword [ecx - 4]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
dec edx
jne 0x4159f0
lea eax, [ebx + 0x414]
mov dword [esp + 0x18], 0
test ebp, ebp
jle 0x415a55
mov ebp, eax
cmp edi, dword [esp + 0x30]
jge 0x415a63
mov eax, edi
mov ecx, dword [ebp]
cdq
inc edi
idiv esi
lea esi, [edx + eax*8]
mov dword [ebx + esi*4 + 8], ecx
mov ecx, dword [ebx + 0x3d0]
mov esi, dword [esp + 0x10]
sub ecx, eax
mov eax, dword [ebp]
add ebp, 4
lea ecx, [edx + ecx*8]
mov dword [ebx + ecx*4 + 0x1e8], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x2c]
jl 0x415a10
mov ebp, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
cmp edi, dword [esp + 0x30]
jl 0x4158e0
mov eax, 1
mov dword [esp + 0x2c], eax
cmp dword [ebx + 0x3d0], eax
jle 0x415af5
mov ebp, dword [esp + 0x10]
lea ecx, [ebx + 0x208]
mov dword [esp + 0x30], ecx
test ebp, ebp
jle 0x415ae1
mov esi, ecx
mov edi, ebp
mov edi, edi
mov edx, dword [esi]
lea esi, [esi + 4]
mov ecx, edx
mov eax, edx
sar ecx, 0x18
sar eax, 0x10
and ecx, 0xff
and eax, 0xff
mov ecx, dword [ecx*4 + 0x6532d0]
xor ecx, dword [eax*4 + 0x652ed0]
mov eax, edx
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x652ad0]
movzx eax, dl
xor ecx, dword [eax*4 + 0x6526d0]
mov dword [esi - 4], ecx
dec edi
jne 0x415a90
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
inc eax
add ecx, 0x20
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
cmp eax, dword [ebx + 0x3d0]
jl 0x415a86
pop edi
pop esi
pop ebp
mov byte [ebx + 4], 1
pop ebx
add esp, 0x18
ret 0x10
lea eax, [esp + 0x24]
mov dword [esp + 0x24], str.Empty_key
push eax
lea ecx, [esp + 0x18]
call fcn.005d5ad4
push 0x692b58
lea eax, [esp + 0x18]
push eax
call fcn.005d9e70
int3