Function at 0x417a58
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 0x417a73
jmp 0x417e06
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3cc], 0x10
jne 0x417a92
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00416e51
jmp 0x417e06
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 0x417ab3
and dword [ebp - 0x2c], 0
jmp 0x417acf
cmp dword [ebp - 0xc], 6
jne 0x417ac2
mov dword [ebp - 0x28], 1
jmp 0x417ac9
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
imul ecx, 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
imul ecx, 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
imul ecx, 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 0x417b49
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x417be6
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 + 8]
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 0x417b42
mov dword [ebp - 0x1c], 1
jmp 0x417bf6
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 0x417cef
and dword [ebp - 4], 0
jmp 0x417c15
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x417cc9
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 + 0x6d8210]
xor ecx, dword [eax*4 + 0x6d8610]
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 + 0x6d8a10]
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 + 0x6d8e10]
mov eax, dword [ebp - 0x1c]
shl eax, 5
mov edx, dword [ebp - 8]
lea eax, [edx + eax + 8]
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 0x417c0e
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 0x417bef
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
jmp 0x417d00
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jge 0x417e06
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3d0]
shl eax, 5
mov ecx, dword [ebp - 8]
lea eax, [ecx + eax + 8]
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 + str.cw]
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 + str.cw]
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 + str.cw]
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 + str.cw]
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 0x417cf9
mov esp, ebp
pop ebp
ret 8