Function at 0x402070
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 0x40210d
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 0x402083
mov dword [ebp - 8], 4
jmp 0x40228e
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 0x4021f7
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 + 0x407d60]
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 ecx, byte [eax]
movzx edx, byte [ebp - 0x18]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x14]
add eax, ebx
xor edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
add eax, edx
movzx ecx, byte [eax]
movzx edx, byte [ebp - 0x17]
mov eax, dword [ebp - 0x14]
lea ebx, [eax + 1]
mov eax, dword [ebp + 8]
add eax, ebx
xor edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edx, [eax + 2]
mov eax, dword [ebp + 8]
add eax, edx
movzx ecx, byte [eax]
movzx edx, byte [ebp - 0x16]
mov eax, dword [ebp - 0x14]
lea ebx, [eax + 2]
mov eax, dword [ebp + 8]
add eax, ebx
xor edx, ecx
mov byte [eax], dl
mov eax, dword [ebp - 0xc]
lea edx, [eax + 3]
mov eax, dword [ebp + 8]
add eax, edx
movzx ecx, byte [eax]
movzx edx, byte [ebp - 0x15]
mov eax, dword [ebp - 0x14]
lea ebx, [eax + 3]
mov eax, dword [ebp + 8]
add eax, ebx
xor edx, ecx
mov byte [eax], dl
add dword [ebp - 8], 1
cmp dword [ebp - 8], 0x2b
jbe 0x402123
nop
nop
mov ebx, dword [ebp - 4]
leave
ret