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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x3c]
movzx eax, byte [eax + 4]
test eax, eax
jne 0x405cde
push 0x41ae2c
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
push 0x40d880
lea eax, [ebp - 0x38]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x3c]
add eax, 0x1e8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x10
mov ecx, dword [ebp - 8]
or ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
mov ecx, dword [ebp - 8]
or ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov ecx, dword [ebp - 8]
or ecx, eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
xor ecx, dword [eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x10
mov ecx, dword [ebp - 0xc]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
mov ecx, dword [ebp - 0xc]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0xc]
or ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x10
mov ecx, dword [ebp - 0x10]
or ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
mov ecx, dword [ebp - 0x10]
or ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x10]
or ecx, eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
xor ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x10
mov ecx, dword [ebp - 0x18]
or ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
mov ecx, dword [ebp - 0x18]
or ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x18]
or ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
xor ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 1
jmp 0x405e88
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x3d0]
jge 0x40600d
mov eax, dword [ebp - 4]
shl eax, 5
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx + eax + 0x1e8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x40ab70]
xor eax, dword [ecx*4 + 0x40af70]
mov ecx, dword [ebp - 0x10]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x40b370]
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x40b770]
mov ecx, dword [ebp - 0x24]
xor eax, dword [ecx]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 8]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x40ab70]
xor eax, dword [ecx*4 + 0x40af70]
mov ecx, dword [ebp - 0x18]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x40b370]
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x40b770]
mov ecx, dword [ebp - 0x24]
xor eax, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x40ab70]
xor eax, dword [ecx*4 + 0x40af70]
mov ecx, dword [ebp - 8]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x40b370]
mov ecx, dword [ebp - 0x18]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x40b770]
mov ecx, dword [ebp - 0x24]
xor eax, dword [ecx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x10]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x40ab70]
xor eax, dword [ecx*4 + 0x40af70]
mov ecx, dword [ebp - 0xc]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x40b370]
mov ecx, dword [ebp - 8]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x40b770]
mov ecx, dword [ebp - 0x24]
xor eax, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
jmp 0x405e81
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 0x3c]
lea eax, [ecx + eax + 0x1e8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x18
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov eax, dword [ebp - 0x18]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x10
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x10]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 8
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 2], al
mov eax, dword [ebp - 0xc]
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 3], al
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x18
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 4], al
mov eax, dword [ebp - 8]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x10
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 5], al
mov eax, dword [ebp - 0x18]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 8
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 6], al
mov eax, dword [ebp - 0x10]
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 7], al
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x18
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 8], al
mov eax, dword [ebp - 0xc]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x10
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 9], al
mov eax, dword [ebp - 8]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 8
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xa], al
mov eax, dword [ebp - 0x18]
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xb], al
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x18
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xc], al
mov eax, dword [ebp - 0x10]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 0x10
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xd], al
mov eax, dword [ebp - 0xc]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
mov ecx, dword [ebp - 0x1c]
sar ecx, 8
xor eax, ecx
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xe], al
mov eax, dword [ebp - 8]
and eax, 0xff
movsx eax, byte [eax + 0x409a70]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 0xf], al
leave
ret 8