Function at 0x415ed4
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [ebp + 8], 0
jne 0x415f01
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp + 8], str.Empty_key
call fcn.0044fc10
push 0x487da8
lea eax, [ebp - 0x24]
push eax
call fcn.00452616
push esi
push edi
mov dword [ebx + 0x3cc], 0x10
mov eax, 0x4757ec
mov dword [ebx + 0x3c8], 0x20
mov esi, eax
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]
push eax
lea eax, [ebx + 0x3f4]
push eax
call fcn.00456cf0
mov eax, dword [ebx + 0x3c8]
add esp, 0xc
cmp eax, 0x10
je 0x415f6c
cmp eax, 0x18
je 0x415f5a
mov dword [ebx + 0x3d0], 0xe
jmp 0x415f90
xor eax, eax
cmp dword [ebx + 0x3cc], 0x20
sete al
lea eax, [eax + eax + 0xc]
jmp 0x415f8a
mov eax, dword [ebx + 0x3cc]
cmp eax, 0x10
jne 0x415f7c
push 0xa
pop eax
jmp 0x415f8a
xor ecx, ecx
cmp eax, 0x18
setne cl
lea ecx, [ecx + ecx + 0xc]
mov eax, ecx
mov dword [ebx + 0x3d0], eax
mov eax, dword [ebx + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
xor edx, edx
cmp dword [ebx + 0x3d0], edx
mov dword [ebp - 4], eax
jl 0x415fca
lea esi, [ebx + 8]
test eax, eax
jle 0x415fbe
mov ecx, eax
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
inc edx
add esi, 0x20
cmp edx, dword [ebx + 0x3d0]
jle 0x415faf
xor edx, edx
cmp dword [ebx + 0x3d0], edx
jl 0x415ff5
lea esi, [ebx + 0x1e8]
test eax, eax
jle 0x415fe9
mov ecx, eax
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
inc edx
add esi, 0x20
cmp edx, dword [ebx + 0x3d0]
jle 0x415fda
mov esi, dword [ebx + 0x3d0]
mov ecx, dword [ebp + 8]
inc esi
imul esi, eax
mov eax, dword [ebx + 0x3c8]
cdq
and edx, 3
add eax, edx
mov edi, eax
sar edi, 2
test edi, edi
mov dword [ebp - 0x18], esi
lea eax, [ebx + 0x414]
jle 0x41604a
mov dword [ebp + 8], edi
movzx edx, byte [ecx]
shl edx, 0x18
mov dword [eax], edx
inc ecx
movzx edx, byte [ecx]
shl edx, 0x10
or dword [eax], edx
xor edx, edx
inc ecx
mov dh, byte [ecx]
or dword [eax], edx
inc ecx
movzx edx, byte [ecx]
or dword [eax], edx
inc ecx
add eax, 4
dec dword [ebp + 8]
jne 0x416023
and dword [ebp + 8], 0
test edi, edi
jle 0x416099
lea eax, [ebx + 0x414]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp eax, esi
jge 0x416099
cdq
idiv dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov dword [ebp - 0x10], eax
lea eax, [edx + eax*8]
mov dword [ebx + eax*4 + 8], ecx
mov eax, dword [ebx + 0x3d0]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
inc dword [ebp + 8]
add dword [ebp - 8], 4
cmp dword [ebp + 8], edi
lea eax, [edx + eax*8]
mov dword [ebx + eax*4 + 0x1e8], ecx
jl 0x41605b
cmp dword [ebp + 8], esi
mov ecx, 0xff
jge 0x4161f9
mov dword [ebp - 0xc], 0x47cc90
mov eax, dword [ebx + edi*4 + 0x410]
mov esi, dword [ebp - 0xc]
movsx esi, byte [esi]
mov edx, eax
sar edx, 0x10
and edx, ecx
movsx edx, byte [edx + str.cw]
xor edx, esi
movzx esi, ah
movzx esi, byte [esi + str.cw]
shl edx, 8
xor edx, esi
mov esi, eax
and esi, ecx
movzx esi, byte [esi + str.cw]
sar eax, 0x18
shl edx, 8
and eax, ecx
movzx eax, byte [eax + str.cw]
xor edx, esi
shl edx, 8
xor edx, eax
xor dword [ebx + 0x414], edx
inc dword [ebp - 0xc]
cmp edi, 8
je 0x416128
cmp edi, 1
jle 0x41619a
lea eax, [ebx + 0x418]
lea edx, [edi - 1]
mov esi, dword [eax - 4]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x41611b
jmp 0x41619a
push 3
lea eax, [ebx + 0x418]
pop edx
mov esi, dword [eax - 4]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x416131
mov eax, dword [ebx + 0x420]
mov edx, eax
sar edx, 0x18
and edx, ecx
movsx edx, byte [edx + str.cw]
mov esi, eax
sar esi, 0x10
and esi, ecx
movzx esi, byte [esi + str.cw]
shl edx, 8
xor edx, esi
movzx esi, ah
movzx esi, byte [esi + str.cw]
shl edx, 8
and eax, ecx
movzx eax, byte [eax + str.cw]
xor edx, esi
shl edx, 8
xor edx, eax
xor dword [ebx + 0x424], edx
push 3
lea eax, [ebx + 0x428]
pop edx
mov esi, dword [eax - 4]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x41618f
and dword [ebp - 0x14], 0
test edi, edi
jle 0x4161ed
lea eax, [ebx + 0x414]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x18]
jge 0x4161f9
cdq
idiv dword [ebp - 4]
mov esi, dword [ebp - 8]
mov esi, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [edx + eax*8]
mov dword [ebx + eax*4 + 8], esi
mov eax, dword [ebx + 0x3d0]
sub eax, dword [ebp - 0x10]
inc dword [ebp - 0x14]
lea eax, [edx + eax*8]
mov edx, dword [ebp - 8]
add dword [ebp - 8], 4
mov edx, dword [edx]
inc dword [ebp + 8]
cmp dword [ebp - 0x14], edi
mov dword [ebx + eax*4 + 0x1e8], edx
jl 0x4161ab
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x18]
jl 0x4160ae
xor eax, eax
inc eax
cmp dword [ebx + 0x3d0], eax
mov dword [ebp - 0x14], eax
jle 0x41626a
lea eax, [ebx + 0x208]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
test eax, eax
jle 0x416258
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx]
mov esi, eax
sar esi, 0x18
and esi, ecx
mov esi, dword [esi*4 + 0x47bc90]
mov edi, eax
sar edi, 0x10
and edi, ecx
xor esi, dword [edi*4 + 0x47c090]
movzx edi, ah
xor esi, dword [edi*4 + 0x47c490]
and eax, ecx
xor esi, dword [eax*4 + 0x47c890]
mov dword [edx], esi
add edx, 4
dec dword [ebp - 0x18]
jne 0x41621d
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp + 8], 0x20
cmp eax, dword [ebx + 0x3d0]
jl 0x416210
pop edi
mov byte [ebx + 4], 1
pop esi
leave
ret 4