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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 4]
test eax, eax
jne 0x417e2c
jmp 0x4181c8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3cc], 0x10
jne 0x417e4b
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00417450
jmp 0x4181c8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 4
jne 0x417e6c
and dword [ebp - 0x2c], 0
jmp 0x417e88
cmp dword [ebp - 0xc], 6
jne 0x417e7b
mov dword [ebp - 0x28], 1
jmp 0x417e82
mov dword [ebp - 0x28], 2
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
shl eax, 5
push 8
pop ecx
shl ecx, 0
lea eax, [eax + ecx + 0x6db230]
push 4
pop ecx
shl ecx, 0
mov eax, dword [eax + ecx]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
shl eax, 5
push 8
pop ecx
shl ecx, 1
lea eax, [eax + ecx + 0x6db230]
push 4
pop ecx
shl ecx, 0
mov eax, dword [eax + ecx]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
shl eax, 5
push 8
pop ecx
imul ecx, ecx, 3
lea eax, [eax + ecx + 0x6db230]
push 4
pop ecx
shl ecx, 0
mov eax, dword [eax + ecx]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 8]
add eax, 0x454
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
jmp 0x417f02
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x417fa2
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
shl eax, 0x18
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 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 - 0x14]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], 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
mov ecx, dword [ebp - 0x14]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov ecx, dword [ebp - 0x18]
or eax, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
push 0x20
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 0x1e8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, dword [ecx]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x417efb
mov dword [ebp - 0x1c], 1
jmp 0x417fb2
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x3d0]
jge 0x4180ae
and dword [ebp - 4], 0
jmp 0x417fd1
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x418088
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + eax*4 + 0x454]
sar ecx, 0x18
and ecx, 0xff
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 0x10
and eax, 0xff
mov ecx, dword [ecx*4 + 0x6d9210]
xor ecx, dword [eax*4 + 0x6d9610]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x6d9a10]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
and eax, 0xff
xor ecx, dword [eax*4 + 0x6d9e10]
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov edx, dword [ebp - 8]
lea eax, [edx + eax + 0x1e8]
mov edx, dword [ebp - 4]
xor ecx, dword [eax + edx*4]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [edx + eax*4 + 0x434], ecx
jmp 0x417fca
mov eax, dword [ebp - 0xc]
shl eax, 2
push eax
mov eax, dword [ebp - 8]
add eax, 0x434
push eax
mov eax, dword [ebp - 8]
add eax, 0x454
push eax
call fcn.006871c0
add esp, 0xc
jmp 0x417fab
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
jmp 0x4180bf
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x4181c8
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 0x1e8]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + eax*4 + 0x454]
sar eax, 0x18
and eax, 0xff
movsx eax, byte [eax + 0x6d8110]
mov ecx, dword [ebp - 0x20]
sar ecx, 0x18
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x30]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 0x10
and eax, 0xff
movsx eax, byte [eax + 0x6d8110]
mov ecx, dword [ebp - 0x20]
sar ecx, 0x10
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
sar eax, 8
and eax, 0xff
movsx eax, byte [eax + 0x6d8110]
mov ecx, dword [ebp - 0x20]
sar ecx, 8
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x38]
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov eax, dword [eax + edx*4 + 0x454]
and eax, 0xff
movsx eax, byte [eax + 0x6d8110]
xor eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x4180b8
mov esp, ebp
pop ebp
ret 8