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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x20
mov dword [ebp - 8], 0
jmp 0x4017dd
mov eax, dword [ebp - 8]
lea edx, [eax*4]
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 8]
lea ecx, [edx*4]
mov edx, dword [ebp + 8]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov eax, dword [ebp - 8]
shl eax, 2
lea edx, [eax + 1]
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 8]
shl edx, 2
lea ecx, [edx + 1]
mov edx, dword [ebp + 8]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov eax, dword [ebp - 8]
shl eax, 2
lea edx, [eax + 2]
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 8]
shl edx, 2
lea ecx, [edx + 2]
mov edx, dword [ebp + 8]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
mov eax, dword [ebp - 8]
shl eax, 2
lea edx, [eax + 3]
mov eax, dword [ebp + 0xc]
add eax, edx
mov edx, dword [ebp - 8]
shl edx, 2
lea ecx, [edx + 3]
mov edx, dword [ebp + 8]
add edx, ecx
movzx eax, byte [eax]
mov byte [edx], al
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jbe 0x401753
mov dword [ebp - 8], 4
jmp 0x401966
mov eax, dword [ebp - 8]
sub eax, 1
shl eax, 2
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x17], al
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x16], al
mov eax, dword [ebp - 0xc]
lea edx, [eax + 3]
mov eax, dword [ebp + 8]
add eax, edx
movzx eax, byte [eax]
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 8]
and eax, 3
test eax, eax
jne 0x4018c7
movzx eax, byte [ebp - 0x18]
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0x17]
mov byte [ebp - 0x18], al
movzx eax, byte [ebp - 0x16]
mov byte [ebp - 0x17], al
movzx eax, byte [ebp - 0x15]
mov byte [ebp - 0x16], al
movzx eax, byte [ebp - 0xd]
mov byte [ebp - 0x15], al
movzx eax, byte [ebp - 0x18]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x18], al
movzx eax, byte [ebp - 0x17]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x17], al
movzx eax, byte [ebp - 0x16]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x16], al
movzx eax, byte [ebp - 0x15]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x15], al
movzx edx, byte [ebp - 0x18]
mov eax, dword [ebp - 8]
shr eax, 2
movzx eax, byte [eax + 0x4122e0]
xor eax, edx
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 8]
shl eax, 2
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
sub eax, 4
shl eax, 2
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx ebx, byte [eax]
movzx ecx, byte [ebp - 0x18]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx ebx, byte [eax]
movzx ecx, byte [ebp - 0x17]
mov eax, dword [ebp - 0x14]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
add eax, edx
movzx ebx, byte [eax]
movzx ecx, byte [ebp - 0x16]
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edx, [eax + 3]
mov eax, dword [ebp + 8]
add eax, edx
movzx ebx, byte [eax]
movzx ecx, byte [ebp - 0x15]
mov eax, dword [ebp - 0x14]
lea edx, [eax + 3]
mov eax, dword [ebp + 8]
add eax, edx
xor ebx, ecx
mov edx, ebx
mov byte [eax], dl
add dword [ebp - 8], 1
cmp dword [ebp - 8], 0x2b
jbe 0x4017f3
nop
nop
mov ebx, dword [ebp - 4]
leave
ret