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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
movzx eax, byte [edx]
mov byte [ecx], al
movzx eax, byte [edx + 1]
mov byte [ecx + 1], al
movzx eax, byte [edx + 2]
mov byte [ecx + 2], al
movzx eax, byte [edx + 3]
mov byte [ecx + 3], al
movzx eax, byte [edx + 4]
mov byte [ecx + 4], al
movzx eax, byte [edx + 5]
mov byte [ecx + 5], al
movzx eax, byte [edx + 6]
mov byte [ecx + 6], al
movzx eax, byte [edx + 7]
mov byte [ecx + 7], al
movzx eax, byte [edx + 8]
mov byte [ecx + 8], al
movzx eax, byte [edx + 9]
mov byte [ecx + 9], al
movzx eax, byte [edx + 0xa]
mov byte [ecx + 0xa], al
movzx eax, byte [edx + 0xb]
mov byte [ecx + 0xb], al
movzx eax, byte [edx + 0xc]
mov byte [ecx + 0xc], al
movzx eax, byte [edx + 0xd]
mov byte [ecx + 0xd], al
movzx eax, byte [edx + 0xe]
mov byte [ecx + 0xe], al
movzx eax, byte [edx + 0xf]
mov byte [ecx + 0xf], al
movzx eax, byte [edx + 0x10]
mov byte [ecx + 0x10], al
movzx eax, byte [edx + 0x11]
mov byte [ecx + 0x11], al
movzx eax, byte [edx + 0x12]
mov byte [ecx + 0x12], al
movzx eax, byte [edx + 0x13]
mov byte [ecx + 0x13], al
movzx eax, byte [edx + 0x14]
mov byte [ecx + 0x14], al
movzx eax, byte [edx + 0x15]
mov byte [ecx + 0x15], al
movzx eax, byte [edx + 0x16]
mov byte [ecx + 0x16], al
movzx eax, byte [edx + 0x17]
mov byte [ecx + 0x17], al
movzx eax, byte [edx + 0x18]
mov byte [ecx + 0x18], al
movzx eax, byte [edx + 0x19]
mov byte [ecx + 0x19], al
movzx eax, byte [edx + 0x1a]
mov byte [ecx + 0x1a], al
movzx eax, byte [edx + 0x1b]
mov byte [ecx + 0x1b], al
movzx eax, byte [edx + 0x1c]
mov byte [ecx + 0x1c], al
mov esi, 8
mov bh, byte [edx + 0x1d]
lea edi, [ecx + 0x1d]
mov dword [ebp - 8], 0
mov byte [edi], bh
movzx eax, byte [edx + 0x1e]
mov byte [ecx + 0x1e], al
movzx eax, byte [edx + 0x1f]
mov byte [ecx + 0x1f], al
nop
mov dl, byte ds:[edi + 1]
lea eax, [edi]
mov dh, byte [eax + 2]
mov ecx, esi
mov bl, byte [eax - 1]
mov byte [ebp - 8], bl
mov byte [ebp - 7], bh
mov byte [ebp - 0xa], dl
mov byte [ebp - 6], dl
mov byte [ebp - 9], dh
mov byte [ebp - 5], dh
and ecx, 7
jne 0x4012cd
lfence
movzx ecx, byte [ebp - 0xa]
movzx edx, bh
mov bh, byte [ecx + str.cw]
movzx ecx, byte [ebp - 9]
mov cl, byte [ecx + str.cw]
mov byte [ebp - 0xa], cl
mov byte [ebp - 6], cl
movzx ecx, bl
mov cl, byte [ecx + str.cw]
mov byte [ebp - 9], cl
mov byte [ebp - 5], cl
mov ecx, esi
shr ecx, 3
mov bl, byte [ecx + 0x44a7b8]
xor bl, byte [edx + str.cw]
mov dl, byte [ebp - 0xa]
mov dh, byte [ebp - 9]
jmp 0x4012ff
cmp ecx, 4
jne 0x401305
lfence
movzx ecx, bl
mov bl, byte [ecx + str.cw]
movzx ecx, bh
mov bh, byte [ecx + str.cw]
movzx ecx, dl
mov dl, byte [ecx + str.cw]
movzx ecx, dh
mov byte [ebp - 6], dl
mov dh, byte [ecx + str.cw]
mov byte [ebp - 5], dh
mov byte [ebp - 7], bh
mov byte [ebp - 8], bl
movzx ecx, byte [eax - 0x1d]
lea edi, [eax + 4]
xor cl, bl
inc esi
mov byte [eax + 3], cl
mov cl, byte [eax - 0x1c]
xor cl, bh
mov byte [ebp - 9], cl
mov bh, byte [ebp - 9]
mov byte [edi], cl
movzx ecx, byte [eax - 0x1b]
xor cl, dl
mov byte [eax + 5], cl
movzx ecx, byte [eax - 0x1a]
xor cl, dh
mov byte [eax + 6], cl
cmp esi, 0x3c
jb 0x401260
pop edi
pop esi
pop ebx
push 4
lea eax, [ebp - 8]
push 0
push eax
call fcn.00440bb0
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
call fcn.0041b32c
mov esp, ebp
pop ebp
ret