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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 0x10]
xor ecx, dword [eax]
mov edx, dword [edi + 0x18]
xor edx, dword [eax + 8]
mov ebx, dword [edi + 0x14]
xor ebx, dword [eax + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [edi + 0x1c]
xor ecx, dword [eax + 0xc]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [ebp - 0x14], ecx
shr ecx, 0x18
add edi, 0x20
mov ecx, dword [ecx*4 + 0x430318]
xor ecx, dword [eax*4 + 0x42ff18]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42fb18]
mov eax, dword [ebp - 4]
movzx eax, al
xor ecx, dword [eax*4 + 0x42f718]
mov eax, dword [ebp - 0x14]
xor ecx, dword [edi]
shr eax, 0x10
mov dword [ebp - 0xc], ecx
movzx ecx, al
mov eax, edx
mov ecx, dword [ecx*4 + 0x42ff18]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42fb18]
mov eax, dword [ebp - 4]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x430318]
movzx eax, bl
xor ecx, dword [eax*4 + 0x42f718]
mov eax, dword [ebp - 0x14]
xor ecx, dword [edi + 4]
shr eax, 8
movzx eax, al
mov dword [ebp + 0x10], ecx
mov eax, dword [eax*4 + 0x42fb18]
mov ecx, ebx
shr ecx, 0x18
shr ebx, 0x10
xor eax, dword [ecx*4 + 0x430318]
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shr ecx, 8
xor esi, dword [eax*4 + 0x42ff18]
movzx eax, dl
shr edx, 0x18
xor esi, dword [eax*4 + 0x42f718]
mov eax, esi
xor eax, dword [edi + 8]
mov dword [ebp + 8], esi
mov dword [ebp + 8], eax
movzx eax, bl
mov ebx, dword [edx*4 + 0x430318]
xor ebx, dword [eax*4 + 0x42ff18]
movzx eax, cl
xor ebx, dword [eax*4 + 0x42fb18]
mov eax, dword [ebp - 0x14]
movzx eax, al
jmp 0x412b40
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
mov edx, dword [ebp - 0xc]
mov ecx, ebx
shr ecx, 0x18
add edi, 0x20
mov ecx, dword [ecx*4 + 0x430318]
xor ecx, dword [eax*4 + 0x42ff18]
mov eax, dword [ebp + 0x10]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42fb18]
movzx eax, dl
xor ecx, dword [eax*4 + 0x42f718]
mov eax, dword [ebp - 4]
xor ecx, dword [edi - 0x10]
shr eax, 0x10
mov dword [ebp - 0x10], ecx
movzx ecx, al
mov eax, dword [ebp + 8]
mov ecx, dword [ecx*4 + 0x42ff18]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42fb18]
mov eax, edx
mov edx, dword [ebp + 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x430318]
movzx eax, dl
xor ecx, dword [eax*4 + 0x42f718]
mov eax, dword [ebp - 4]
xor ecx, dword [edi - 0xc]
shr eax, 8
movzx eax, al
mov dword [ebp - 0x14], ecx
mov ebx, dword [eax*4 + 0x42fb18]
mov ecx, edx
shr ecx, 0x18
shr edx, 0x10
xor ebx, dword [ecx*4 + 0x430318]
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shr ecx, 8
xor ebx, dword [eax*4 + 0x42ff18]
mov eax, dword [ebp + 8]
shr dword [ebp + 8], 0x18
mov esi, dword [ebp + 8]
movzx eax, al
xor ebx, dword [eax*4 + 0x42f718]
movzx eax, dl
mov edx, dword [esi*4 + 0x430318]
xor edx, dword [eax*4 + 0x42ff18]
xor ebx, dword [edi - 8]
movzx eax, cl
xor edx, dword [eax*4 + 0x42fb18]
mov eax, dword [ebp - 4]
movzx eax, al
xor edx, dword [eax*4 + 0x42f718]
mov eax, ebx
xor edx, dword [edi - 4]
shr eax, 0x10
movzx eax, al
mov ecx, edx
shr ecx, 0x18
mov ecx, dword [ecx*4 + 0x430318]
xor ecx, dword [eax*4 + 0x42ff18]
mov eax, dword [ebp - 0x14]
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42fb18]
mov eax, dword [ebp - 0x10]
movzx eax, al
xor ecx, dword [eax*4 + 0x42f718]
mov eax, edx
xor ecx, dword [edi]
shr eax, 0x10
mov dword [ebp - 0xc], ecx
movzx ecx, al
mov ecx, dword [ecx*4 + 0x42ff18]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x42fb18]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x430318]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp + 0x10]
movzx eax, cl
shr ecx, 0x18
xor esi, dword [eax*4 + 0x42f718]
mov eax, esi
xor eax, dword [edi + 4]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x10], eax
mov eax, edx
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x42fb18]
xor eax, dword [ecx*4 + 0x430318]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov esi, dword [ebp + 8]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shr ecx, 8
xor esi, dword [eax*4 + 0x42ff18]
movzx eax, bl
shr ebx, 0x18
xor esi, dword [eax*4 + 0x42f718]
mov ebx, dword [ebx*4 + 0x430318]
mov eax, esi
xor eax, dword [edi + 8]
mov dword [ebp + 8], esi
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
shr eax, 0x10
movzx eax, al
xor ebx, dword [eax*4 + 0x42ff18]
movzx eax, cl
xor ebx, dword [eax*4 + 0x42fb18]
movzx eax, dl
xor ebx, dword [eax*4 + 0x42f718]
xor ebx, dword [edi + 0xc]
dec dword [ebp - 8]
mov dword [ebp - 4], ebx
jne 0x412953
mov eax, ebx
shr eax, 0x18
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp + 0x10]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov edx, dword [ebp + 0xc]
shl ecx, 8
movzx eax, bl
movzx eax, byte [eax + str.cw]
or ecx, eax
xor ecx, dword [edi + 0x10]
mov eax, ebx
shr eax, 0x18
mov dword [edx], ecx
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp + 0x10]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
xor ecx, dword [edi + 0x14]
mov eax, dword [ebp + 0x10]
shr eax, 0x18
mov dword [edx + 4], ecx
movzx ecx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp - 4]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp + 8]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
xor ecx, dword [edi + 0x18]
mov eax, dword [ebp + 8]
shr eax, 0x18
mov dword [edx + 8], ecx
movzx ecx, byte [eax + str.cw]
mov eax, dword [ebp + 0x10]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
shr ebx, 8
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, dword [ebp - 4]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
xor ecx, dword [edi + 0x1c]
pop edi
pop esi
mov dword [edx + 0xc], ecx
pop ebx
leave
ret