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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
jmp 0x401bb8
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], 7
jbe 0x401b2e
mov dword [ebp - 4], 8
jmp 0x401d8c
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, 7
test eax, eax
jne 0x401ca4
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 + str.cw]
mov byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x13]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x12]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x11]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x11], al
movzx edx, byte [ebp - 0x14]
mov eax, dword [ebp - 4]
shr eax, 3
movzx eax, byte [eax + 0x521500]
xor eax, edx
mov byte [ebp - 0x14], al
mov eax, dword [ebp - 4]
and eax, 7
cmp eax, 4
jne 0x401cf3
movzx eax, byte [ebp - 0x14]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x14], al
movzx eax, byte [ebp - 0x13]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x13], al
movzx eax, byte [ebp - 0x12]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x12], al
movzx eax, byte [ebp - 0x11]
movzx eax, al
movzx eax, byte [eax + str.cw]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 4]
shl eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, 0x3ffffff8
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], 0x3b
jbe 0x401bce
nop
leave
ret