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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x607ba4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax + 4]
test ecx, ecx
jne 0x41015b
mov edx, dword [str.Object_not_Initialized]
push edx
lea ecx, [ebp - 0x40]
call fcn.00415cd0
push 0x5f3398
lea eax, [ebp - 0x40]
push eax
call fcn.00561f56
mov ecx, 0x20
imul edx, ecx, 0
mov eax, dword [ebp - 0x20]
lea ecx, [eax + edx + 8]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 0x18
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 0x10
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
shl eax, 8
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
xor edx, dword [ecx + eax]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x18
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x10
or ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 8
or ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
or ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
xor edx, dword [ecx + eax]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x18
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x10
or ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 8
or ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
or ecx, dword [ebp - 0x14]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
xor edx, dword [ecx + eax]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x18
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 0x10
or ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
shl ecx, 8
or ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, dword [ebp + 8]
movzx ecx, byte [eax]
or ecx, dword [ebp - 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
add edx, 1
mov dword [ebp + 8], edx
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
xor eax, dword [edx + ecx]
mov dword [ebp - 8], eax
mov dword [ebp - 0x24], 1
jmp 0x410336
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x3d0]
jge 0x4104d8
mov ecx, dword [ebp - 0x24]
shl ecx, 5
mov edx, dword [ebp - 0x20]
lea eax, [edx + ecx + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0xc]
sar ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 0x10]
sar edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x5ad8a8]
xor eax, dword [edx*4 + 0x5adca8]
mov ecx, dword [ebp - 0x14]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5ae0a8]
mov edx, dword [ebp - 8]
and edx, 0xff
xor eax, dword [edx*4 + 0x5ae4a8]
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp - 0x1c]
xor eax, dword [ecx + edx]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x10]
sar edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x14]
sar eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x5ad8a8]
xor ecx, dword [eax*4 + 0x5adca8]
mov edx, dword [ebp - 8]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x5ae0a8]
mov eax, dword [ebp - 0xc]
and eax, 0xff
xor ecx, dword [eax*4 + 0x5ae4a8]
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0x1c]
xor ecx, dword [eax + edx]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x14]
sar ecx, 0x18
and ecx, 0xff
mov edx, dword [ebp - 8]
sar edx, 0x10
and edx, 0xff
mov eax, dword [ecx*4 + 0x5ad8a8]
xor eax, dword [edx*4 + 0x5adca8]
mov ecx, dword [ebp - 0xc]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x5ae0a8]
mov edx, dword [ebp - 0x10]
and edx, 0xff
xor eax, dword [edx*4 + 0x5ae4a8]
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 0x1c]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
and ecx, 0xff
mov edx, dword [eax*4 + 0x5ad8a8]
xor edx, dword [ecx*4 + 0x5adca8]
mov eax, dword [ebp - 0x10]
sar eax, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x5ae0a8]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
xor edx, dword [ecx*4 + 0x5ae4a8]
mov eax, 4
imul ecx, eax, 3
mov eax, dword [ebp - 0x1c]
xor edx, dword [eax + ecx]
mov dword [ebp - 0x34], edx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 8], ecx
jmp 0x41032d
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax + 8]
mov dword [ebp - 0x1c], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0xc]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x5ad6a8]
mov eax, dword [ebp - 0x18]
sar eax, 0x18
xor edx, eax
mov ecx, 1
imul eax, ecx, 0
mov ecx, dword [ebp + 0xc]
mov byte [ecx + eax], dl
mov edx, dword [ebp - 0x10]
sar edx, 0x10
and edx, 0xff
movsx eax, byte [edx + 0x5ad6a8]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
xor eax, ecx
mov edx, 1
shl edx, 0
mov ecx, dword [ebp + 0xc]
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x14]
sar edx, 8
and edx, 0xff
movsx eax, byte [edx + 0x5ad6a8]
mov ecx, dword [ebp - 0x18]
sar ecx, 8
xor eax, ecx
mov edx, 1
shl edx, 1
mov ecx, dword [ebp + 0xc]
mov byte [ecx + edx], al
mov edx, dword [ebp - 8]
and edx, 0xff
movsx eax, byte [edx + 0x5ad6a8]
xor eax, dword [ebp - 0x18]
mov ecx, 1
imul edx, ecx, 3
mov ecx, dword [ebp + 0xc]
mov byte [ecx + edx], al
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
sar edx, 0x18
and edx, 0xff
movsx eax, byte [edx + 0x5ad6a8]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x18
xor eax, ecx
mov edx, 1
shl edx, 2
mov ecx, dword [ebp + 0xc]
mov byte [ecx + edx], al
mov edx, dword [ebp - 0x14]
sar edx, 0x10
and edx, 0xff
movsx eax, byte [edx + 0x5ad6a8]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
xor eax, ecx
mov edx, 1
imul ecx, edx, 5
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 8]
sar eax, 8
and eax, 0xff
movsx ecx, byte [eax + 0x5ad6a8]
mov edx, dword [ebp - 0x18]
sar edx, 8
xor ecx, edx
mov eax, 1
imul edx, eax, 6
mov eax, dword [ebp + 0xc]
mov byte [eax + edx], cl
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
movsx edx, byte [ecx + 0x5ad6a8]
xor edx, dword [ebp - 0x18]
mov eax, 1
imul ecx, eax, 7
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], dl
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x5ad6a8]
mov eax, dword [ebp - 0x18]
sar eax, 0x18
xor edx, eax
mov ecx, 1
shl ecx, 3
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], dl
mov ecx, dword [ebp - 8]
sar ecx, 0x10
and ecx, 0xff
movsx edx, byte [ecx + 0x5ad6a8]
mov eax, dword [ebp - 0x18]
sar eax, 0x10
xor edx, eax
mov ecx, 1
imul eax, ecx, 9
mov ecx, dword [ebp + 0xc]
mov byte [ecx + eax], dl
mov edx, dword [ebp - 0xc]
sar edx, 8
and edx, 0xff
movsx eax, byte [edx + 0x5ad6a8]
mov ecx, dword [ebp - 0x18]
sar ecx, 8
xor eax, ecx
mov edx, 1
imul ecx, edx, 0xa
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x10]
and eax, 0xff
movsx ecx, byte [eax + 0x5ad6a8]
xor ecx, dword [ebp - 0x18]
mov edx, 1
imul eax, edx, 0xb
mov edx, dword [ebp + 0xc]
mov byte [edx + eax], cl
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + 0x5ad6a8]
mov eax, dword [ebp - 0x18]
sar eax, 0x18
xor edx, eax
mov ecx, 1
imul eax, ecx, 0xc
mov ecx, dword [ebp + 0xc]
mov byte [ecx + eax], dl
mov edx, dword [ebp - 0xc]
sar edx, 0x10
and edx, 0xff
movsx eax, byte [edx + 0x5ad6a8]
mov ecx, dword [ebp - 0x18]
sar ecx, 0x10
xor eax, ecx
mov edx, 1
imul ecx, edx, 0xd
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x10]
sar eax, 8
and eax, 0xff
movsx ecx, byte [eax + 0x5ad6a8]
mov edx, dword [ebp - 0x18]
sar edx, 8
xor ecx, edx
mov eax, 1
imul edx, eax, 0xe
mov eax, dword [ebp + 0xc]
mov byte [eax + edx], cl
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
movsx edx, byte [ecx + 0x5ad6a8]
xor edx, dword [ebp - 0x18]
mov eax, 1
imul ecx, eax, 0xf
mov eax, dword [ebp + 0xc]
mov byte [eax + ecx], dl
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055fe73
mov esp, ebp
pop ebp
ret 8