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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
jmp 0x401830
mov eax, dword [ebp - 4]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp - 4]
lea ecx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov eax, dword [ebp - 4]
shl eax, 2
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp - 4]
shl eax, 2
lea ecx, [eax + 1]
mov eax, dword [ebp + 0xc]
add eax, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov eax, dword [ebp - 4]
shl eax, 2
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp - 4]
shl eax, 2
lea ecx, [eax + 2]
mov eax, dword [ebp + 0xc]
add eax, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov eax, dword [ebp - 4]
shl eax, 2
lea edx, [eax + 3]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp - 4]
shl eax, 2
lea ecx, [eax + 3]
mov eax, dword [ebp + 0xc]
add eax, ecx
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 4], 1
cmp dword [ebp - 4], 3
jbe 0x4017a6
mov dword [ebp - 4], 4
jmp 0x4019b5
mov eax, dword [ebp - 4]
add eax, 0x3fffffff
shl eax, 2
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 8]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x13], al
mov eax, dword [ebp - 8]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x12], al
mov eax, dword [ebp - 8]
lea edx, [eax + 3]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 4]
and eax, 3
test eax, eax
jne 0x40191c
movzx eax, byte [ebp - 0x14]
mov byte [ebp - 9], al
movzx eax, byte [ebp - 0x13]
mov byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x12]
mov byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x11]
mov byte [ebp - 0x12], al
movzx eax, byte [ebp - 9]
mov byte [ebp - 0x11], al
movzx eax, byte [ebp - 0x14]
movzx eax, al
movzx eax, byte [eax + 0x403020]
mov byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x13]
movzx eax, al
movzx eax, byte [eax + 0x403020]
mov byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x12]
movzx eax, al
movzx eax, byte [eax + 0x403020]
mov byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x11]
movzx eax, al
movzx eax, byte [eax + 0x403020]
mov byte [ebp - 0x11], al
movzx edx, byte [ebp - 0x14]
mov eax, dword [ebp - 4]
shr eax, 2
movzx eax, byte [eax + 0x403220]
xor eax, edx
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 4]
shl eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x3ffffffc
shl eax, 2
mov dword [ebp - 8], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
add eax, edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
add edx, ecx
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x14]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
add eax, edx
mov edx, dword [ebp - 8]
lea ecx, [edx + 1]
mov edx, dword [ebp + 8]
add edx, ecx
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x13]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
add eax, edx
mov edx, dword [ebp - 8]
lea ecx, [edx + 2]
mov edx, dword [ebp + 8]
add edx, ecx
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x12]
xor edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0x10]
lea edx, [eax + 3]
mov eax, dword [ebp + 8]
add eax, edx
mov edx, dword [ebp - 8]
lea ecx, [edx + 3]
mov edx, dword [ebp + 8]
add edx, ecx
movzx ecx, byte [edx]
movzx edx, byte [ebp - 0x11]
xor edx, ecx
mov byte [eax], dl
add dword [ebp - 4], 1
cmp dword [ebp - 4], 0x2b
jbe 0x401846
nop
leave
ret