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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 4], 0
jmp 0x10040509
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jae 0x1004055f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov al, byte [esi + eax*4]
mov byte [edx + ecx*4], al
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov al, byte [esi + eax*4 + 1]
mov byte [edx + ecx*4 + 1], al
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov al, byte [esi + eax*4 + 2]
mov byte [edx + ecx*4 + 2], al
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov al, byte [esi + eax*4 + 3]
mov byte [edx + ecx*4 + 3], al
jmp 0x10040500
mov dword [ebp - 4], 8
jmp 0x10040571
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x3c
jae 0x100406f1
mov edx, dword [ebp - 4]
lea eax, [edx*4 - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov dl, byte [ecx]
mov byte [ebp - 0xc], dl
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov cl, byte [eax + 1]
mov byte [ebp - 0xb], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx + 2]
mov byte [ebp - 0xa], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov dl, byte [ecx + 3]
mov byte [ebp - 9], dl
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 8
div ecx
test edx, edx
jne 0x1004062f
mov dl, byte [ebp - 0xc]
mov byte [ebp - 0x11], dl
mov al, byte [ebp - 0xb]
mov byte [ebp - 0xc], al
mov cl, byte [ebp - 0xa]
mov byte [ebp - 0xb], cl
mov dl, byte [ebp - 9]
mov byte [ebp - 0xa], dl
mov al, byte [ebp - 0x11]
mov byte [ebp - 9], al
movzx ecx, byte [ebp - 0xc]
mov dl, byte [ecx + 0x1005f028]
mov byte [ebp - 0xc], dl
movzx eax, byte [ebp - 0xb]
mov cl, byte [eax + 0x1005f028]
mov byte [ebp - 0xb], cl
movzx edx, byte [ebp - 0xa]
mov al, byte [edx + 0x1005f028]
mov byte [ebp - 0xa], al
movzx ecx, byte [ebp - 9]
mov dl, byte [ecx + 0x1005f028]
mov byte [ebp - 9], dl
movzx eax, byte [ebp - 0xc]
mov ecx, dword [ebp - 4]
shr ecx, 3
movzx edx, byte [ecx + 0x1005ed9c]
xor eax, edx
mov byte [ebp - 0xc], al
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 8
div ecx
cmp edx, 4
jne 0x10040674
movzx edx, byte [ebp - 0xc]
mov al, byte [edx + 0x1005f028]
mov byte [ebp - 0xc], al
movzx ecx, byte [ebp - 0xb]
mov dl, byte [ecx + 0x1005f028]
mov byte [ebp - 0xb], dl
movzx eax, byte [ebp - 0xa]
mov cl, byte [eax + 0x1005f028]
mov byte [ebp - 0xa], cl
movzx edx, byte [ebp - 9]
mov al, byte [edx + 0x1005f028]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 4]
shl ecx, 2
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
lea eax, [edx*4 - 0x20]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx]
movzx eax, byte [ebp - 0xc]
xor edx, eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov byte [ecx], dl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx + 1]
movzx ecx, byte [ebp - 0xb]
xor eax, ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov byte [edx + 1], al
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
movzx ecx, byte [eax + 2]
movzx edx, byte [ebp - 0xa]
xor ecx, edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov byte [eax + 2], cl
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movzx edx, byte [ecx + 3]
movzx eax, byte [ebp - 9]
xor edx, eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov byte [ecx + 3], dl
jmp 0x10040568
pop esi
mov esp, ebp
pop ebp
ret 8