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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax + 4]
test eax, eax
jne 0x416e6c
jmp 0x417445
push 0x20
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 8]
mov dword [ebp - 0x18], eax
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
or eax, dword [ebp - 0xc]
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, 8
or eax, dword [ebp - 0xc]
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]
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
xor edx, dword [ecx + eax]
mov dword [ebp - 0xc], edx
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
or eax, dword [ebp - 0x10]
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, 8
or eax, dword [ebp - 0x10]
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]
or eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
xor edx, dword [ecx + eax]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov dword [ebp - 0x14], 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
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 8
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
or eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
xor edx, dword [ecx + eax]
mov dword [ebp - 0x14], edx
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
or eax, dword [ebp - 8]
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, 8
or eax, dword [ebp - 8]
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]
or eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
xor edx, dword [ecx + eax]
mov dword [ebp - 8], edx
mov dword [ebp - 0x20], 1
jmp 0x41701b
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x3d0]
jge 0x4171b5
mov eax, dword [ebp - 0x20]
shl eax, 5
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x10]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x6d8210]
xor eax, dword [ecx*4 + 0x6d8610]
mov ecx, dword [ebp - 0x14]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6d8a10]
mov ecx, dword [ebp - 8]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6d8e10]
push 4
pop ecx
imul ecx, ecx, 0
mov edx, dword [ebp - 0x18]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0x14]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x6d8210]
xor eax, dword [ecx*4 + 0x6d8610]
mov ecx, dword [ebp - 8]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6d8a10]
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6d8e10]
push 4
pop ecx
shl ecx, 0
mov edx, dword [ebp - 0x18]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 8]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x6d8210]
xor eax, dword [ecx*4 + 0x6d8610]
mov ecx, dword [ebp - 0xc]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6d8a10]
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6d8e10]
push 4
pop ecx
shl ecx, 1
mov edx, dword [ebp - 0x18]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
sar eax, 0x18
and eax, 0xff
mov ecx, dword [ebp - 0xc]
sar ecx, 0x10
and ecx, 0xff
mov eax, dword [eax*4 + 0x6d8210]
xor eax, dword [ecx*4 + 0x6d8610]
mov ecx, dword [ebp - 0x10]
sar ecx, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6d8a10]
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
xor eax, dword [ecx*4 + 0x6d8e10]
push 4
pop ecx
imul ecx, ecx, 3
mov edx, dword [ebp - 0x18]
xor eax, dword [edx + ecx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
jmp 0x417014
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax + 8]
mov dword [ebp - 0x18], eax
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 0x18
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x10]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x14]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 1
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 8]
and eax, 0xff
movsx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
imul ecx, ecx, 3
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 0x18
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 2
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x14]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 5
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 8]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 6
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0xc]
and eax, 0xff
movsx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
imul ecx, ecx, 7
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 0x18
xor eax, ecx
xor ecx, ecx
inc ecx
shl ecx, 3
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 8]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 9
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0xc]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xa
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x10]
and eax, 0xff
movsx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xb
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
push 4
pop eax
imul eax, eax, 3
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 0x18
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xc
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0xc]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 0x10
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xd
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x10]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + str.cw]
mov ecx, dword [ebp - 4]
sar ecx, 8
xor eax, ecx
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xe
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov eax, dword [ebp - 0x14]
and eax, 0xff
movsx eax, byte [eax + str.cw]
xor eax, dword [ebp - 4]
xor ecx, ecx
inc ecx
imul ecx, ecx, 0xf
mov edx, dword [ebp + 0xc]
mov byte [edx + ecx], al
mov esp, ebp
pop ebp
ret 8