Function at 0x401480
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x14], 1
mov eax, dword [edi + 0x18]
mov edx, dword [eax]
xor edx, dword [esi]
mov dword [esi], edx
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], edx
shr dword [ebp - 8], 8
mov eax, dword [eax + 4]
xor eax, dword [esi + 4]
mov dword [esi + 4], eax
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x18]
mov ecx, dword [eax + 8]
xor ecx, dword [esi + 8]
mov dword [esi + 8], ecx
mov eax, dword [edi + 0x18]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
xor ebx, dword [esi + 0xc]
shr eax, 8
mov dword [ebp - 0x18], eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, ebx
shr eax, 0x18
mov dword [ebp - 0x20], eax
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x24], eax
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0x2c], eax
mov eax, ebx
shr eax, 8
mov dword [ebp - 0x30], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
shr dword [ebp - 4], 0x18
shr eax, 0x10
mov dword [ebp - 0xc], eax
mov eax, ecx
shr eax, 0x18
mov dword [esi + 0xc], ebx
cmp dword [edi + 8], 1
mov dword [ebp - 0x38], eax
jle 0x4015f0
mov ebx, 0x10
mov dword [ebp - 0x10], ebx
jmp 0x401543
mov ebx, dword [ebp - 0x10]
push esi
mov ecx, edi
call fcn.004020c0
mov eax, dword [edi + 0x18]
add dword [ebp - 0x10], 0x10
mov edx, dword [ebx + eax]
xor edx, dword [esi]
mov eax, edx
mov dword [esi], edx
shr eax, 8
mov dword [ebp - 8], eax
mov eax, edx
shr eax, 0x10
mov dword [ebp - 0x34], eax
mov eax, edx
shr eax, 0x18
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x18]
mov eax, dword [ebx + eax + 4]
xor eax, dword [esi + 4]
mov ecx, eax
mov dword [esi + 4], eax
shr eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], ecx
shr ecx, 0x18
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + eax + 8]
xor ecx, dword [esi + 8]
mov eax, ecx
shr dword [ebp - 0xc], 0x10
shr eax, 0x18
mov dword [ebp - 0x38], eax
mov eax, ecx
shr eax, 8
mov dword [ebp - 0x24], eax
mov eax, ecx
shr eax, 0x10
mov dword [ebp - 0x1c], eax
mov dword [esi + 8], ecx
mov eax, dword [edi + 0x18]
mov ebx, dword [ebx + eax + 0xc]
xor ebx, dword [esi + 0xc]
mov eax, ebx
mov dword [esi + 0xc], ebx
shr eax, 8
mov dword [ebp - 0x30], eax
mov eax, ebx
shr eax, 0x10
mov dword [ebp - 0x28], eax
mov eax, ebx
shr eax, 0x18
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [edi + 8]
jl 0x401540
movzx eax, dl
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x48], al
mov eax, dword [ebp - 0x18]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x47], al
mov eax, dword [ebp - 0x1c]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x46], al
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x45], al
mov eax, dword [ebp + 8]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x44], al
mov eax, dword [ebp - 0x24]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x43], al
mov eax, dword [ebp - 0x28]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x42], al
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x41], al
movzx eax, cl
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x40], al
mov eax, dword [ebp - 0x30]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x3f], al
mov eax, dword [ebp - 0x34]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x3e], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x3d], al
movzx eax, bl
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x3c], al
mov eax, dword [ebp - 8]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x3b], al
mov eax, dword [ebp - 0xc]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x3a], al
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x39], al
movups xmm0, xmmword [ebp - 0x48]
movups xmmword [esi], xmm0
mov ecx, dword [edi + 8]
mov eax, dword [edi + 0x18]
add ecx, ecx
mov eax, dword [eax + ecx*8]
xor dword [esi], eax
mov eax, dword [edi + 0x18]
mov eax, dword [eax + ecx*8 + 4]
xor dword [esi + 4], eax
mov eax, dword [edi + 0x18]
mov eax, dword [eax + ecx*8 + 8]
xor dword [esi + 8], eax
mov eax, dword [edi + 0x18]
pop edi
mov eax, dword [eax + ecx*8 + 0xc]
xor dword [esi + 0xc], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4